CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 Adding URL Path in Browser When user Logs In CCSB4

Print topic Send  topic

Author Message
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
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.