ultraman Posted October 6, 2003 Posted October 6, 2003 I know this question will make me look like a complete idiot to all of you, but client side internet programming is so new to me.... So, here's the question : How do I use a script written in a js file ? I tried puting it in the html within <script> tags with src="myfile.js".... doesn't work. But it works fine if the page is a plain html file. If would like to use it in the server side in the Load event. I would test the IsPostBack and then register the script. Is it possible ? Quote Now go on, boy, and pay attention. Because if you do, someday, you may achieve something that we Simpsons have dreamed about for generations: You may outsmart someone! --Homer Simpson
Moderators Robby Posted October 7, 2003 Moderators Posted October 7, 2003 If you want to register it on the server (side) then "<script> tags with src="myfile.js".... " is useless. You would need to read the js file as you would any other file and then use RegisterClientScriptBlock to assign the streaming string. Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.