This topic is locked

set usergroup implicitly

10/9/2007 11:33:18 AM
ASPRunnerPro General questions
Q
qqqqq author

Hi,
I'm using asp runner 4.1(build 225). What I'd like to do is have the usergroup not be a part of the registration form but have it assigned according to what link a user used to go to the registration form. So there're multiple links and depending on which one the user selects that will set the user group field. Can anyone tell me how to do this?
Thanks.

Sergey Kornilov admin 10/10/2007

Usergroup is stored in Session("GroupID") variable.
I guess this is what you looking for.

Q
qqqqq author 10/10/2007

Usergroup is stored in Session("GroupID") variable.

I guess this is what you looking for.


Thanks for the response. I don't understand how that can be applied to my problem. What I'm trying to do is set the usergroup for a user account at the time of registration, not based on form input but based on the link used to reach the registration page.

Sergey Kornilov admin 10/11/2007

You can pass the Group ID via URL and assign it to Session("GroupID").
i.e. table_name_list.asp?GroupID=admin
In BeforeProcessList event use the following:

Session("GroupID") = Request.QueryString("GroupID")


Please note that this method is not recommended from security point of view.