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