Sunday, March 11, 2012

Login In in UpdatePanel

I have used the same settings on my host try out what you are saying but unfortunately everything works allright here!

 <form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdateProgress ID="UpdateProgress1" runat="server">
<ProgressTemplate>
Processing
</ProgressTemplate>
</asp:UpdateProgress>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Login ID="Login1" runat="server" OnAuthenticate="Login1_Authenticate">
</asp:Login>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>

You may want to add some "network latency" so that you see if asynchroneous postback is happening by:

Protected Sub Login1_Authenticate(ByVal senderAs Object,ByVal eAs System.Web.UI.WebControls.AuthenticateEventArgs)
System.Threading.Thread.Sleep(5000)
End Sub

Try to put this into a separate page and test it as a stand-alone web application.


Hi,

code above works. But because no actual authentication is happening ( asOnAuthenticateis set latency, rather than authentication).

try taking away and OnAuthenticate and add a text box. add some text to a text box and then authenticate. That's what I am trying to accomplish.

Thanks

No comments:

Post a Comment