|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
Reading current URL
Originally posted by : Steve Roberts Jr (racegene@yahoo.com)I am doing a little password script and it is just an include on the page with protected content. However, to verify the user/pass, I need it to redirect to the same page after submitting the login form. I currently just use a variable as such: so that the included file knows where to go back to.I know this can be done with javascript, but i would prefer to use asp if possible. Any assistance is much appriciated.
|
|
#2
|
|||
|
|||
|
Originally posted by : steve schofield (steve@aspfree.com)try in your include file use the PATH_INFO variable to capture it and pass to the logon page.if LogonVariable = "" Thenresponse.redirect "logon.asp?referpage=" & request.servervariables("PATH_INFO ")End IfOn the logon pageform method="post" action="logon.asp?Referpage="------------Steve Roberts Jr at 1/3/2002 1:48:22 PMI am doing a little password script and it is just an include on the page with protected content. However, to verify the user/pass, I need it to redirect to the same page after submitting the login form. I currently just use a variable as such: so that the included file knows where to go back to.I know this can be done with javascript, but i would prefer to use asp if possible. Any assistance is much appriciated.
|
|
#3
|
|||
|
|||
|
Originally posted by : Steve Roberts (racegene@yahoo.com)Thanks, it works like a charm!!
|
![]() |
| Viewing: ASP Free Forums > Programming > .NET Development > Reading current URL |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|