Click here to Skip to main content
15,851,319 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all,
i want to know how is it possible to use update panel or ajax for login control with out refresh page.Actually i want to use login control and user login without refreshing page.If logon is not successful page don't refresh or redirect , and error message will be shown.

Updated 6-Aug-13 1:10am
Thanks7872 6-Aug-13 5:23am    
Which data base do you use?

1 solution

Use Update panel like below to stop refreshing :

<asp:UpdatePanel ID="panel1" runat="server" UpdateMode="Conditional">
                            <asp:AsyncPostBackTrigger ControlID="Btnlogin" EventName="Click" />
//Your .aspx code
Share this answer
SadeqHatami 6-Aug-13 5:52am    
this solution is refresh page , i want do not refresh page when user click in login btton
jaideepsinh 6-Aug-13 6:06am    
I have update solution check.
pleas accept as answer and up vote if it is help to you.
SadeqHatami 6-Aug-13 6:19am    
i do it and get this error

A control with ID 'LoginButton' could not be found for the trigger in UpdatePanel 'UpdatePanel1'.
jaideepsinh 6-Aug-13 6:50am    
Solve you problem or not.
jaideepsinh 6-Aug-13 6:26am    
Refer this link :
You have to paste you code in you question not here.
Undo you vote give positive vote not negative.

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