__doPostBack at OnLoad Page

G

Guest

I am attempting to use the ASP.NET generated __doPostBack JavaScript function
in my custom JavaScript and I can use it successfully but only after the web
page is loaded and idle.

I prefer to invoke __doPostBack immediately after web page load. I have
been attempting to use the HTML Body OnLoad event to trigger invoking
__doPostBack without success.

Any idea why __doPostBack can not be invoked at the HTML Body OnLoad event ?
Do you have an alternative suggestion ?
 
B

bruce barker \(sqlwork.com\)

the __doPostBack code calls routines in an included javascript file. these
routines will not be available until pageload fires. but i don't belive the
bowser will allow allow a postback during the onload event, so you need to
schedule it right after.

<body onload="window.setTimeout('myPostback()')" >

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top