This topic is locked
[SOLVED]

 Redirect To Another Page - How To If Have 2 Views?

4/10/2013 1:48:22 PM
ASPRunnerPro General questions
M
mitzi author

Here is my problem:
i have created a simple database with 5 tables, and 3 additional views
I set up the following event code for login "after successful login":
'** Redirect to another page ****

Response.Redirect "Registrations_list.asp"
I also have RegistrationsSME_list.asp

and am stumbled on where to enter the follwoing code:
'** Redirect to another page ****

Response.Redirect "RegistrationsSME_list.asp"
what i want to accomplish:
Admins logs in and after successful login is redirected to the main list page,
user logs in and is redirected to RegistrationsSME_list.asp page
I seem not to find a place where to enter that information....

M
mitzi author 4/12/2013

is this something very difficult to accomplish?

Sergey Kornilov admin 4/12/2013

Something like this might work. Add it to AfterSucessfulLogin event

if Session("UserID")="admin" then

Response.Redirect "Registrations_list.asp"

else

Response.Redirect "RegistrationsSME_list.asp"

end if
M
mitzi author 4/18/2013

perfect - works.thanks