Novice: Login control & DestinationPageURL?

P

Peter

Hello,

Thanks for reviewing my question. I have created a page with the Login
control and I have the DestinationPageURL page set to go to another page in
my website. However, after succesully logging in, it just returns to the
home page (or previous page). What gives? I checked the online help and it
seems that I have done everything correctly. In addition, my config.web does
not contain a defaultURL.

Many Thanks in advance
Peter
 
S

Sean Smith

Hi Peter

I've seen posts from people that have had the same problem in the past. If
you want to redirect to a certain page no matter what page they came from
previously, you could use something like:

Protected Sub <controlname>_LoggedIn(ByVal sender As Object, ByVal e As
System.EventArgs)

Response.Redirect(<LoginControlName>.DestinationPageUrl)

End Sub


Hope this helps

Sean
 

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

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top