Wednesday, March 28, 2012

Updatepanel

hello,

i made alogin form wich is wrapped by an updatepanel.

it includes the usual stuff..

the thing is when i click the login button , it takes something like 10 seconds till the asyncPostBack is done.

you can imagine that not much work is done in the code behind function.. (it uses membership provider and all it does is validaing and set cookie)

can anybody please think of a reason for this delay ? (my tests are on localhost..)

thank u .

are you running in debug mode? on the form, click the script manager and goto the property "script mode" and set it to release :), that should speed it up. if not then you should post some code so we can see if you are doing anything wrong


I am not sure how does it working. It is specified in the documentation that the Login control is not compaitable in partial rendering unless it is converted to template. Check it out
http://ajax.asp.net/docs/overview/UpdatePanelOverview.aspx Control that are not compatible.


Documentation says that Login controls are not compatible with partial-page updates.

Set <compilation debug = "false" /> in web.config, so it will improve your application performance.

See for more details.

http://ajax.asp.net/docs/overview/UpdatePanelOverview.aspx

No comments:

Post a Comment