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
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