Harry Wheat
|
| Posted: 05/26/2002, 8:21 AM |
|
I am trying to add a URL path to the address bar whenever a user logs in so
that I can put the form in Edit Mode Automatically.
My path should look like this. www.domain.com/activate.asp?user_id = 1
If in edit mode automatically the user can then see the button Click here to
activate your Account. Whenever the button is clicked it will then update
the database with a new GroupID.
Thanks
Harry
|
|
|
 |
Robert Rodgers
|
| Posted: 05/26/2002, 10:03 AM |
|
Harry, I don't know if this is the right way to do it but this worked for
me.
In the code after "End Authenticate User" line I added this code.
If Len(Trim(Request.QueryString)) = 0 Then
Redirect = FileName & "?s_AssignedUserSysID=" & CCGetUserID()
Redirect = Redirect & "&s_StatusSysid=" & Session("WQStatusPending")
End IF
Basicly what it does is check to see if the URL string is blank after the
page address. If it is if assigns some values to a variable named Redirect
that the code checks a little later to see if it needs to redirect to a
different page. This code just recalls the current page if the
Request.QueryString is blank. Then my list starts out filtered by User and
Status (showing only pending items)
Your code for the activate.asp would probably look something like this.
If Len(Trim(Request.QueryString)) = 0 Then
Redirect = FileName & "?user_id = 1" 'Or use CCGetUserID() to get the
current user id.
End IF
Rob
"Harry Wheat" <sales@ifixpcs.com> wrote in message
news:acqui9$94o$1@news.codecharge.com...
> I am trying to add a URL path to the address bar whenever a user logs in
so
> that I can put the form in Edit Mode Automatically.
> My path should look like this. www.domain.com/activate.asp?user_id = 1
>
> If in edit mode automatically the user can then see the button Click here
to
> activate your Account. Whenever the button is clicked it will then update
> the database with a new GroupID.
> Thanks
> Harry
>
>
|
|
|
 |
|