473,785 Members | 2,425 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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?d ay=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 8897
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.P age) and then casting
Context.Handler to your base class type in your second page:

BasePage basePage = (BasePage)Conte xt.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.mi crosoft.com> wrote in
message news:CF******** *************** ***********@mic rosoft.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?d ay=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.asp x

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.mi crosoft.com> wrote in
message news:CF******** *************** ***********@mic rosoft.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?d ay=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.mi crosoft.com> wrote in
message news:CF******** *************** ***********@mic rosoft.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?d ay=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
17491
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 request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.IO.IOException: The directory name is invalid.
8
5483
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 -------------------------------------------------------------------------------- Hello, I have a very simple problem but cannot seem to figure it out. I have a very simple php script that sends a test email to myself. When I debug it in PHP designer, it works with no problems, I get the test email. If
2
324
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: Server.Transfer("../CrystalViewer.aspx?id=" & CrystalFileName) Now it blows with the following error:
0
23511
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) 5: Procedure call or argument is not valid. 6: Overflow. 7: Out of memory.
1
1338
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 '/keyfile' or appropriate project settings instead of 'AssemblyKeyFile'
5
3444
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
4758
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, and .Net2005 code. I'm developing in vb.net 2005. This test sub just reads an input text file, writing out records to another text file, eliminating records that have a '99' in them (it is similar to a CSV file). Some of my concerns are:
1
1857
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 String = txtConnectionStr.Text Dim strConnection As String = "User ID=;DSN=;Cache Authentication=False;Data Source='" & _ Trim(strFoxProDirectory) & "'" & _
0
6547
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 /new_file/prob1.rec started. Please wait.... In while loop of request searching *** glibc detected *** ./a.out: free(): invalid next size (normal): 0x099da890 *** ======= Backtrace: ========= /lib/libc.so.6
0
9646
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9483
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10157
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10096
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9956
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8982
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5514
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3658
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2887
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.