This topic is locked
[SOLVED]

 Redirect to edit page

3/13/2012 7:32:33 AM
ASPRunnerPro General questions
A
andolo author

Dear Sirs,
I am running ASP Runner Pro v7. I have two user groups, one called "user" and one called "admin". I redirect the to different pages after successful login using this event code:
if Session("GroupID") = "admin" then

Response.Redirect "Arrang_rer_list.asp"

else Response.Redirect "Utst_llningar_list.asp"

end if
But how can I make the users that are not "admin" be redirected to the edit page "Utst_llningar_list.asp" depending on their customer no (a field called "Kundnr" in the database)?

I have found som suggestions in the PHP forum, but not in the ASP Runner forum.
Best regards,

Anders Olofsson

Sergey Kornilov admin 3/13/2012

You can trying something like this:
Response.Redirect "Utst_llningar_edit.asp?editid1=" & data("Kundnr")
This code assumes that Kundnr field belongs to the login table and at the same time serves as a key column of Utst_llningar table.