calling a page in asp

P

Pierre

Hi all,

I have a page wich check a password
if good i want to load a page as in:

If ComparePassword(Request("UID"),Request("PWD")) Then
' If comparison was good, store the user name...
Session("UID") = Request("UID")
Response.redirect "/logon/found.asp"
End If

But it is not working, i still have the logon screen.

how can i call a page within asp code
regards,
pierre
 
T

Thomas A. Rowe

Is this code on a page that is also in the logon folder?

If so then:

Response.Redirect "found.asp"

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
A

Andrew Murray

Thomas A. Rowe said:
Is this code on a page that is also in the logon folder?

If so then:

Response.Redirect "found.asp"
not being an expert I agree, since /logon/found.asp is trying to find a
folder with the name "logon" and within that folder a file called
"found.asp".....is your logon within the logon folder? If so it seems to be
assuming that the found.asp is in logon/logon/found.asp. (if that makes
sense) If you're within the folder called logon and found.asp is inthat
folder, then as Thomas says, that's how it must be.

Or....try putting the double-dot in front of the / so that it back-tracks
from the root folder to the folder with the script/page in it.

as in ../logon/found.asp.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top