Last post Feb 23, 2008 10:12 AM by talha83
Feb 22, 2008 07:09 AM|sanju baba|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 09:06 AM|talha83|LINK
Since it's not a function, it should get executed by itself.
Feb 22, 2008 09:08 AM|talha83|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 09:33 AM|NC01|LINK
Try adding this to your HTML after the controls are declared.
window.onload = function ()
// Your code goes here...
Feb 23, 2008 06:32 AM|sanju baba|LINK
thanks very much. that solved my problem.
Feb 23, 2008 10:12 AM|talha83|LINK
Mark it as answered please.