Custom login control

Vote:
 
Hi! My customer need to have special login control on main page. My problem is with this code: private void ibLogonButton_Click(object sender, System.Web.UI.ImageClickEventArgs e) { EPiServer.Util.LoginBase.HandleFormsLogin(Username.Text, Password.Text, false); Response.Redirect( EPiServer.Util.UrlUtility.ResolveUrl("//default.aspx",EPiServer.Util.UrlTypes.Auto) ); } After Response.Redirect - page is not loaded but after pressing CTRL+F5 page shows. What I'm missing? Regards Mateusz Kierepka
#12318
Jul 11, 2005 11:27
Vote:
 
Probably because you have the if ( ! IsPostBack) DataBind(); on you control. Then the control will only DataBind when not a PostBack is trigged. /Øyvind Elektropost Norge
#14049
Jul 12, 2005 13:14
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.