Click here to Skip to main content
15,884,425 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am working on a e-commerce website in asp.net. My problem is that i have used a user control for login and linked that one with all the pages in order to avoid page refresh. But the problem is that when i am pressing the login button it is taking so much long time to log in. Can any one please help me in this regard. If javascript is required please elaborate me the process as i am totally blank about javascript. Thanks in advance.
Posted
Comments
R. Giskard Reventlov 24-Apr-11 4:12am    
You sure it's not a database issue?
Subhabrata Bose 24-Apr-11 4:22am    
yah, as i have checked that one in debugging...
Ed Nutting 24-Apr-11 5:39am    
This looks more like you just have a slow connection to your page or a very slow/long loop in your code somehow. Go to w3schools.com and learn about Ajax which is what you want to be able to do login without a page refresh. It is just a use of javascript and very simple. However, do remember that requests are not encrypted unless requesting a page over SSL so if you're doing login via Javascript, remember to request an SSL encrypted page.
Sandeep Mewara 24-Apr-11 6:03am    
Difficult to comment without looking at it.

If you DEBUG, it still takes long time? Did you find it a normal flow?
Subhabrata Bose 24-Apr-11 7:25am    
yah its a normal flow, but its also taking long time during dubug.

1 solution

Try using ajax. put you usercontrol inside an update panel, and thats it you are ready.
For better result in terms of performance Json could be used, but it brings security issues, you must be aware about it.

For more information visit http://msdn.microsoft.com/en-us/library/bb398780.aspx
 
Share this answer
 
v2
Comments
Subhabrata Bose 6-May-11 6:05am    
Thanks man..
Ra-one 1-Jun-11 4:56am    
Welcome

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