c# - ASP.NET - how to make AJAX request to the server without getting response with the information for all the update panels I have? -
for example, have 3 updatepanels on page. click button, , pretty long response, contains data 3 updatepanels, viewstate string.
i want optimize query , receive response "ok" or "not ok". how can that?
the short answer ms ajax , updatepanels, can't.
the long answer:
the core of updatepanels full post, , full page lifecycle runs whatever controls contain, , able parse out portions of reponse pertain individual viewports on page , update portions.
you can reduce amount of data turning off viewstate controls don't need it. tip set updatemode
property of panels "conditional
", update panels on page aren't involved in every post. if posting 1 panel , response updates panel, there no need transfer data controls in other panels.
read here update panel tips , tricks better performance out of them.
if want simple messages posts, @ using jquery , ajax/post methods post alternate pages or webservices. ms ajax designed around postback architecture though, while it's convienent, can't escape overhead of easily.
Comments
Post a Comment