Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 23, 2008 02:12 PM by talha83
Feb 22, 2008 11:09 AM|LINK
obj1=(document.all) ? document.all[
the script which is written is supposed to be executed when this aaa.aspx page gets loaded. how to run the script??
Feb 22, 2008 01:06 PM|LINK
Since it's not a function, it should get executed by itself.
Feb 22, 2008 01:08 PM|LINK
Also, for your learning, if it was a function like this:
in your page_load, you would write this script to run it:
Literal l = new Literal();
l.Text = "<script>ShowAlert();</script>";
Feb 22, 2008 01:33 PM|LINK
Try adding this to your HTML after the controls are declared.
window.onload = function ()
// Your code goes here...
Feb 23, 2008 10:32 AM|LINK
thanks very much. that solved my problem.
Feb 23, 2008 02:12 PM|LINK
Mark it as answered please.