L
Lloyd Dupont
I'm trying to create a 'back' link
basically it's displayed only on the 'login' page, where (to test) I've put
all the
asp:login, asp:loginview, asp:CreateUserWizard, etc.. control.
in my Back link, in the OnInit I have written (for my 1st atempt)
if(!Page.IsPostBack)
{
ViewSate["url"] = backurl;
}
the problem is, when the user click the login button (of the login control),
the page, somehow, get constructed twice, and the second time
Page.IsPostback is false.
So I tryed something like that:
if(ViewState["url"] == null)
{
ViewState["url"] = backurl;
}
but, for some reason, ViewState["url"] is null on the second build....
why is there 2 build of the page? and why the viewstate get dismissed? and
what can I do?
thanks.....
basically it's displayed only on the 'login' page, where (to test) I've put
all the
asp:login, asp:loginview, asp:CreateUserWizard, etc.. control.
in my Back link, in the OnInit I have written (for my 1st atempt)
if(!Page.IsPostBack)
{
ViewSate["url"] = backurl;
}
the problem is, when the user click the login button (of the login control),
the page, somehow, get constructed twice, and the second time
Page.IsPostback is false.
So I tryed something like that:
if(ViewState["url"] == null)
{
ViewState["url"] = backurl;
}
but, for some reason, ViewState["url"] is null on the second build....
why is there 2 build of the page? and why the viewstate get dismissed? and
what can I do?
thanks.....