Click here to Skip to main content
15,887,267 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.

thank's
Posted
Updated 6-Aug-13 0:10am
v4
Comments
Thanks7872 6-Aug-13 5:23am    
Which data base do you use?

1 solution

Use Update panel like below to stop refreshing :


XML
<asp:UpdatePanel ID="panel1" runat="server" UpdateMode="Conditional">
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="Btnlogin" EventName="Click" />
                        </Triggers>
                        <ContentTemplate>
//Your .aspx code
             </ContentTemplate>
                    </asp:UpdatePanel>
 
Share this answer
 
v2
Comments
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 : http://forums.asp.net/t/1927528.aspx/1?Login+Control+and+Update+panel
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