Last post Feb 23, 2008 02:12 PM by talha83
Feb 22, 2008 11: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 01:06 PM|talha83|LINK
Since it's not a function, it should get executed by itself.
Feb 22, 2008 01: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 01: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 10:32 AM|sanju baba|LINK
thanks very much. that solved my problem.
Feb 23, 2008 02:12 PM|talha83|LINK
Mark it as answered please.