Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > executing a server method after page is rendered

Reply
Thread Tools

executing a server method after page is rendered

 
 
jphaycock@googlemail.com
Guest
Posts: n/a
 
      08-29-2007
Thanks again Mykola

The problem seems to be that each time the page loads the javascript
is executed and this forces a postback so it gets stuck in a loop.

I may have to rethink how I'm going about this

Cheers

John



On 29 Aug, 09:14, marss <marss...@gmail.com> wrote:
> Hi John,
> The method itself does not cause looping. It may be caused by program
> logic. It is hard to me to give more definite advice. Perhaps, if you
> want to call some method in Page_Load (not in textbox's OnTextChanged
> event handler) you have to test whether this postback was caused by
> change in textbox. I mean that if you call __doPostBack('TextBox1','')
> in javascript then you can process this postback in Page_Load
> if (Request.Params["__EVENTTARGET"] == "TextBox1")
> {
> //call some method here
>
> }
>
> Regards,
> Mykolahttp://marss.co.ua



 
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
Using WebRequest to get the rendered HTML of protected page, returns login page Stephen Miller ASP .Net 5 09-17-2009 12:23 PM
background thread after page is being rendered NIan ASP .Net 2 09-15-2005 03:44 PM
Firefox and <body onload=.. > firing after page is rendered usenet@ctoxyeb.com Javascript 3 08-16-2005 10:51 PM
half rendered page on first load :-( after refreshing everything is fine Daniel Walzenbach ASP .Net 7 02-10-2004 09:02 AM
running scrip after the page is rendered. Ed Javascript 1 07-18-2003 02:39 PM



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