session mgmt - redirection

F

Fastau B

I'd like to login at one subdomain

www.mywebsite.com

and be redirected based on login ID to a second subdomain

mydomain.mywebsite.com


can asp.net do this?

What is this called?
 
K

Ken Cox - Microsoft MVP

Hi Fastau,

You can redirect to any legal web address. Just get the login ID and do a
test, then use Response.Redirect() as follows...

Protected Sub Page_Load _
(ByVal sender As Object, _
ByVal e As System.EventArgs)
Dim loginid As String = "ken"
Select Case loginid
Case "ken"
Response.Redirect("http://www.kencox.ca")
End Select
End Sub


Is that what you meant?

Ken
Microsoft MVP [ASP.NET]
 

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

Staff online

Members online

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,007
Latest member
obedient dusk

Latest Threads

Top