473,406 Members | 2,849 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Help on error : Invalid path for child request ???

Dear all,

I have an ASP 1.1 application wchich need to extract data of a particular
selected day by users. When day has been selected from a calendar control the
following code is run :

Server.Transfer("ReelDay.aspx?day=" & m_day.ToString)

After this the following erro occurs :

Invalid path for child request 'ReelDay.aspx?day=3/2/2006 00:00:00'.
A virtual path is expected.

WHat is going on here, I have use that time of passing querry string in
other place in my code without any problem

thanks for your help
regards
serge
Mar 24 '06 #1
4 8884
Hi Serge,

You can't pass query string values using Server.Transfer - just the
name of the ASPX page which must be in the same web application.

I think the use of "/" characters is making ASP.NET think you're
referring a relative file path.

But don't forget that you can preserve the values of variables between
pages via server.transfer by deriving your pages from the same base
class (rather than System.Web.UI.Page) and then casting
Context.Handler to your base class type in your second page:

BasePage basePage = (BasePage)Context.Handler;

Here you can get the properties/varianles from your basePage

Here's a good article on the subject
http://msdn.microsoft.com/library/de...tweenpages.asp

Mar 24 '06 #2
server transfer work by creating an intance of the page requested, and
running the page cycle on it, the request is the same request as the page
calling transfer. you can not add more request variables to the request (its
readonly), so no url valiables can be added with server transfer.

-- bruce (sqlwork.com)

"serge calderara" <se************@discussions.microsoft.com> wrote in
message news:CF**********************************@microsof t.com...
Dear all,

I have an ASP 1.1 application wchich need to extract data of a particular
selected day by users. When day has been selected from a calendar control
the
following code is run :

Server.Transfer("ReelDay.aspx?day=" & m_day.ToString)

After this the following erro occurs :

Invalid path for child request 'ReelDay.aspx?day=3/2/2006 00:00:00'.
A virtual path is expected.

WHat is going on here, I have use that time of passing querry string in
other place in my code without any problem

thanks for your help
regards
serge

Mar 24 '06 #3
Hi bruce.

I cross check some point . Your are talking about request page called on the
same page.
I have to tell you that the calendar control container is a page named
ReelHistory.aspx

Then when I click on a day of calandr control, I have calling that code:

Server.Transfer("ReelDay.aspx?day=" & m_day.ToString)

to go to page ReelDay. So i am not in the same page request when doing that
????

regards
serge

"Bruce Barker" wrote:
server transfer work by creating an intance of the page requested, and
running the page cycle on it, the request is the same request as the page
calling transfer. you can not add more request variables to the request (its
readonly), so no url valiables can be added with server transfer.

-- bruce (sqlwork.com)

"serge calderara" <se************@discussions.microsoft.com> wrote in
message news:CF**********************************@microsof t.com...
Dear all,

I have an ASP 1.1 application wchich need to extract data of a particular
selected day by users. When day has been selected from a calendar control
the
following code is run :

Server.Transfer("ReelDay.aspx?day=" & m_day.ToString)

After this the following erro occurs :

Invalid path for child request 'ReelDay.aspx?day=3/2/2006 00:00:00'.
A virtual path is expected.

WHat is going on here, I have use that time of passing querry string in
other place in my code without any problem

thanks for your help
regards
serge


Mar 26 '06 #4
Hi bruce, thnaks for your answer but I ma sorry I did not catch at all what
do you mean by instance reques or frirst request. ???

I have used this in many place in my code and did not get that trouble , wht
it occurs now.

Thnaks to be clear I am new in that

regards
serge

"Bruce Barker" wrote:
server transfer work by creating an intance of the page requested, and
running the page cycle on it, the request is the same request as the page
calling transfer. you can not add more request variables to the request (its
readonly), so no url valiables can be added with server transfer.

-- bruce (sqlwork.com)

"serge calderara" <se************@discussions.microsoft.com> wrote in
message news:CF**********************************@microsof t.com...
Dear all,

I have an ASP 1.1 application wchich need to extract data of a particular
selected day by users. When day has been selected from a calendar control
the
following code is run :

Server.Transfer("ReelDay.aspx?day=" & m_day.ToString)

After this the following erro occurs :

Invalid path for child request 'ReelDay.aspx?day=3/2/2006 00:00:00'.
A virtual path is expected.

WHat is going on here, I have use that time of passing querry string in
other place in my code without any problem

thanks for your help
regards
serge


Mar 26 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Glenn A. Harlan | last post by:
Why am I receiving the below error when calling - Path.GetTempFileName() The directory name is invalid. Description: An unhandled exception occurred during the execution of the current web...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
2
by: GaryB | last post by:
I have the following Response.Redirect that works just fine: Response.Redirect("../CrystalViewer.aspx?id=" & CrystalFileName) I changed it to a Server.Transfer like so: ...
0
by: HKSHK | last post by:
This list compares the error codes used in VB.NET 2003 with those used in VB6. Error Codes: ============ 3: This Error number is obsolete and no longer used. (Formerly: Return without GoSub)...
1
by: SenthilVel | last post by:
Hi I am in the Process of conversion of my existing 1.1 Dotnet Code to 2.0 framework. for each project when i compile in VS2005 , i get this error\warning: Use command line option...
5
by: Gaby | last post by:
I made this form with a very basic code <HTML> <HEAD> <TITLE>Submit Papers</TITLE> </HEAD> <BODY> <% If Len(Request.Form("txtEmail")) > 0 then
53
by: Hexman | last post by:
Hello All, I'd like your comments on the code below. The sub does exactly what I want it to do but I don't feel that it is solid as all. It seems like I'm using some VB6 code, .Net2003 code,...
1
by: smtwtfs007 | last post by:
I have an ASP.NET website. I'm trying to connect to a Foxpro database (ADO.NET) with the following connect string: txtConnectionStr.Text = "\\soya4042\Qd\LM\LMS\Data" Dim strFoxProDirectory As...
0
by: shrik | last post by:
I have following error : Total giant files in replay configuration file are : File name : /new_file/prob1.rec Given file /new_file/prob1.rec is successfully verified. Splitting for giant file...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.