Help , Forn Authentication problem

  • Thread starter Thread starter laurence chang
  • Start date Start date
L

laurence chang

I'm trying to use form autentication. I have a login.aspx and a
register.aspx. Register.aspx is for new user. I can set web.config to
redirect to login.aspx and use
FormsAuthentication.RedirectFromLoginPage(txtUserName.Text,true) to go
back the page the want. But for new user they have to go to
register.aspx, after register I want them go to the page they want
instead of login.aspx again, how can I realize it? Thanks ahead.

Laurence
 
You'll have to somehow make your register.aspx know where the user was originally.
If the Register.aspx is accessed from the login.aspx, then I'd suggest you
alter your login.aspx to alter the URL for the register.aspx to pass a querystring
-- the same querystring that's passed to login.aspx. So, IOW, nothing does
this for you, so you'll have to do it yourself.

-Brock
DevelopMentor
http://staff.develop.com/ballen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top