PC Review


Reply
Thread Tools Rate Thread

calling a page in asp

 
 
Pierre
Guest
Posts: n/a
 
      15th Jul 2005
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


 
Reply With Quote
 
 
 
 
Thomas A. Rowe
Guest
Posts: n/a
 
      15th Jul 2005
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.
==============================================

"Pierre" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
Andrew Murray
Guest
Posts: n/a
 
      15th Jul 2005

"Thomas A. Rowe" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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.


> --
> ==============================================
> 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.
> ==============================================
>
> "Pierre" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> 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
>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling Page.UICulture / Page.Culture from MasterPage code Savvoulidis Iordanis Microsoft ASP .NET 2 30th Jun 2009 08:04 AM
Calling usercontrol methods in master page from content page Chevron Boyde Microsoft ASP .NET 1 8th Dec 2008 03:18 PM
Calling Master Page methods directly from Content Page inline code(.aspx file) DevNll2002@gmail.com Microsoft ASP .NET 1 9th Apr 2008 01:51 AM
Calling Page in VB.NET class? and Forcing a page error? jobs Microsoft ASP .NET 1 14th Nov 2007 01:17 AM
Injecting image page element without calling ASPX page? Christopher Ambler Microsoft ASP .NET 2 27th Aug 2003 05:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:22 PM.