Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > __doPostBack at OnLoad Page

Reply
Thread Tools

__doPostBack at OnLoad Page

 
 
=?Utf-8?B?UGhpbGlw?=
Guest
Posts: n/a
 
      09-12-2006
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 ?

--
Philip
 
Reply With Quote
 
 
 
 
bruce barker \(sqlwork.com\)
Guest
Posts: n/a
 
      09-12-2006
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)

"Philip" <> wrote in message
news:141A0A5C-9415-4E99-9095-...
>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 ?
>
> --
> Philip



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
onload -->* no onload marco Javascript 7 06-24-2006 08:39 PM
Why doesn't frameset onload event get called when each of the frames has an onload? adnanx82@gmail.com Javascript 5 05-15-2005 01:58 PM
base.OnLoad called, OnLoad not executed Fabio R. ASP .Net 0 03-25-2005 01:21 PM
window.onload and body.onload differences David Otton Javascript 2 11-04-2004 04:34 PM
__doPostBack code block not being generated by asp.net page E ASP .Net 3 07-31-2003 10:43 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57