J
Joe Iano
Pease be excuse the poorly phrased question. I'm a bit confused:
I've got a user control that accepts username and password values submitted
from a form and authenticates the user. Originally, the control also
performed the response.redirect to the FormsAuthentication.GetRedirectUrl
when the authentication was successful. Now I want to return to the login
page, and let the page decide where to go next, possibly to the
GetRedirectUrl, possibly not.
The problem I'm having is that the user control doesn't complete it's
authentication until after the page's Page_Load event is finished, so it
seems too late to pick up with any additional steps in the page code. The
user control processes the submission in its own function 'public void
SignInForm_Click( Object sender, EventArgs e )' which is fired by the
OnClick event in the form's submit button.
Basically the sequence of events looks like:
Am I making sense? Can anyone explain how to have the user control do its
postback processing work, but then return control to the page for next
steps. Thanks. Joe
I've got a user control that accepts username and password values submitted
from a form and authenticates the user. Originally, the control also
performed the response.redirect to the FormsAuthentication.GetRedirectUrl
when the authentication was successful. Now I want to return to the login
page, and let the page decide where to go next, possibly to the
GetRedirectUrl, possibly not.
The problem I'm having is that the user control doesn't complete it's
authentication until after the page's Page_Load event is finished, so it
seems too late to pick up with any additional steps in the page code. The
user control processes the submission in its own function 'public void
SignInForm_Click( Object sender, EventArgs e )' which is fired by the
OnClick event in the form's submit button.
Basically the sequence of events looks like:
start Page_Load()
load user control
finish Page_Load()
start SignInForm_Click() (this is inside the user control)
authenticate credentials
finish SignInForm_Click()
I want to do something in the page here...
Am I making sense? Can anyone explain how to have the user control do its
postback processing work, but then return control to the page for next
steps. Thanks. Joe