Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
AJAX UpdatePanel - IsInAsyncPostBack and IsPostBack returning false
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="bruce barker, post: 3427326"] you are abusing the ajax model. you have a very poor design, and it will probably fail badly if used over a slower connection (say a dsl). you should read the docs on how update panels work. but here is a short summary: 1) a trigger control is clicked. javascript catches the event and decides to do a async postback. 2) all form data on the page is collected and converted into a form post string. 3) via xmlhttprequest (or an iframe) the data is posted to the server as a standard form post, and a response handler is setup. 4) the server process the request. becuase it detects its a async postback, only the update panel html, a scriptmanger declared javascript is passed back to the client. 5) on the client gets the response and calls the updatepanel event handler 6) the event handler parses the response html, calls disponse on all object in the update panel, set the innerhtml to the passed html, then loads any javascript commands passed back. now this all happens async. what happens if you start a second (or more) postback before the first one completes? there is no way to the server processing of the first request, and if there is session the server will not process the second request until the first completes. what the client library does, is if a second request comes before the first on completes, it cancels the first then starts a new one. this means if the users click several of your checkboxes during a postback, once processed it will have to handle the case that several are changed in one post. you should add javascript to disable all the controls in the update panel on postback, then display some animation/essage. the ajaxtoolkit has a control that does this. -- bruce (sqlwork.com) [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
AJAX UpdatePanel - IsInAsyncPostBack and IsPostBack returning false
Top