Sunday, March 11, 2012

Login control inside an UpdadatePanel

Hi,

I've blogged about the redirection feature in the past:http://aspadvice.com/blogs/joteke/archive/2007/06/28/Login-control-and-ViewState-on-successful-logon.aspx

I think you can't avoid that. E.g you need to write the login yourself in that case. it's not difficult though since you need to call basically onlyMembership.ValidateUser and if that returns true (logon credentials are ok), callFormsAuthentication.SetAuthCookieafter which your user is authenticated and can access the application.


UpatePanel hide the postback page with in same page only.

If you redirected to other page, UpdatePanel doesn't hide postback.

If you want certain functionalaity check it here

http://mattberseth.com/blog/2007/06/aspnet_ajax_canceling_an_async_1.html


UpdatePanel doesnt hide the postback when you redirected to other page

Check it here

http://mattberseth.com/blog/2007/06/aspnet_ajax_canceling_an_async_1.html


yeah, I know.

I was hoping to find a way for the login control not to redirect after login.

No comments:

Post a Comment