Directing link to password protected page

srilatha

New member
Joined
Apr 3, 2009
Messages
1
Programming Experience
1-3
My office is developing a password-protected based site with thousands of pages. I'd like to be able to send an email to a client directing them to a particular page within the site. Assuming they are not already logged in, what happens is that they are directed to the login page, then, regardless of what link I put in the email, they end up at the default start page after the login.

Is there a way that, when clicking on a link to an internal page on a password protected site, the user can be sent directly to that page after the login?
 
Hello and welcome to the forum. :)

Assuming that you are using Forms authentication and Login Controls i would suggest that you set the control's DestinationPageUrl property to the name of the page that the user will be redirected to after they log in.

The DestinationPageUrl property gets or sets the URL of the page displayed to the user when a login attempt is successful.
Means you can set the DestinationPageUrl to DestinationPageUrl="~/Default.aspx"
 
Back
Top