Click here to Skip to main content
15,891,821 members
Please Sign up or sign in to vote.
4.67/5 (3 votes)
See more:
I am using a Modal popup extender of Ajax control toolkit for users to login to the site.

I have included the modalpopup in update panel. On clicking login button in the popup after entering username and password, the event is fired which has authentication code to retrieve the username and password and compare with that entered. And according to that, the user will be logged in or else nothing will happen.

I want to know whether I should use ajax for this authentication purpose or use complete postback without ajax???

I have this doubt as I have googled and found somewhere that updatepanels are dangerous.

Please help and guide me

:confused:

.....................
Posted
Updated 5-Aug-11 4:45am
v2

1 solution

updatepanels are dangerous
Actually, update panel is easy to use and configure. You mentioned that you already goggled regarding this issue, so I think you acquired some basic information regarding update panel(disadvantage and advantage).

Well, if you can manage your problem using JQuery or any other client side scripting language that will be plus.

If i misunderstand, please feel free to correct me.
 
Share this answer
 
Comments
Tech Code Freak 27-Apr-11 7:05am    
thnx for reply.

I want to know whether i can use login authentication code with ajax or not.

i.e. can I include authentication code in update panel or not.

I also found (while Googling) that while using update panels, the no. of bytes sent and received is much more than a web service or simple ajax.
check out the following links.

http://www.codewrecks.com/blog/index.php/2011/04/15/risk-of-using-ajaxcontroltoolkit/
http://www.softworkr.com/why-aspnet-ajax-updatepanels-are-dangerous

Monjurul Habib 27-Apr-11 12:06pm    
http://www.codeproject.com/KB/webservices/aspwebsvr.aspx
http://www.codeproject.com/KB/webservices/myservice.aspx
http://www.techbubbles.com/wcf/wcf-vs-aspnet-web-services/
Tech Code Freak 27-Apr-11 13:40pm    
thnx for links but I just wanted to know about update panels..and authentication using them.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900