473,396 Members | 1,726 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,396 software developers and data experts.

Post Variables to External Script

I am trying to find out how I can use the ASP.net framework yet still
post the variables to an external script (not ASPX) after the form has
been submitted. So, the ASPX page will still post to itself, but then
I need to transfer the variables to another page. I need to do this
transfer using the POST method and not the GET method.

I tried user Server.Transfer("http://localhost/test.asp") but it
retuns an error of "System.Web.HttpException: Error executing child
request"

Any ideas on how to do this?

Any help is appreciated!
Debbie
Nov 17 '05 #1
2 4691
There is a Knowledge Base Article (#320439) that may help you with this
issue. The URL is:
http://support.microsoft.com/default...b;en-us;320439

Chris Moore [MSFT]

--------------------
From: de*******@yahoo.com (Deb M.)
Newsgroups: microsoft.public.dotnet.framework.aspnet
Subject: Post Variables to External Script
Date: 11 Jul 2003 07:18:52 -0700
Organization: http://groups.google.com/
Lines: 14
Message-ID: <da**************************@posting.google.com >
NNTP-Posting-Host: 162.39.187.253
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1057933132 24453 127.0.0.1 (11 Jul 2003 14:18:52 GMT)X-Complaints-To: gr**********@google.com
NNTP-Posting-Date: 11 Jul 2003 14:18:52 GMT
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed 00.sul.t-online.de!t-onlin
e.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-01!sn-
xit-09!supernews.com!postnews1.google.com!not-for-mailXref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:158539
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

I am trying to find out how I can use the ASP.net framework yet still
post the variables to an external script (not ASPX) after the form has
been submitted. So, the ASPX page will still post to itself, but then
I need to transfer the variables to another page. I need to do this
transfer using the POST method and not the GET method.

I tried user Server.Transfer("http://localhost/test.asp") but it
retuns an error of "System.Web.HttpException: Error executing child
request"

Any ideas on how to do this?

Any help is appreciated!
Debbie

--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.

Nov 17 '05 #2
sure,

Create a System.Net.WebRequest object, and re-post what you need to the
legacy application from the .Net application.
"Deb M." <de*******@yahoo.com> wrote in message
news:da**************************@posting.google.c om...
I am trying to find out how I can use the ASP.net framework yet still
post the variables to an external script (not ASPX) after the form has
been submitted. So, the ASPX page will still post to itself, but then
I need to transfer the variables to another page. I need to do this
transfer using the POST method and not the GET method.

I tried user Server.Transfer("http://localhost/test.asp") but it
retuns an error of "System.Web.HttpException: Error executing child
request"

Any ideas on how to do this?

Any help is appreciated!
Debbie

Nov 17 '05 #3

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

Similar topics

2
by: Mark Hannon | last post by:
I am trying to wrap my brain around storing form elements inside variables & arrays before I move on to a more complicated project. I created this simple example to experiment and as far as I can...
2
by: Patient Guy | last post by:
I have a library of functions representing a filesystem interface (essentially a file selection interface, to be used in opening/reading/writing/closing files). Heavily scripted HTML document...
6
by: Andrea Williams | last post by:
Where is the best place to put global variables. In traditional ASP I used to put all of them into an include file and include it in every page. Will the Global.aspx.cs do that same thing? ...
24
by: moriman | last post by:
Hi, The script below *used* to work. I have only just set up a server, PHP etc again on my Win98 system and now it doesn't? On first loading this page, you would have $p = and the button...
10
by: Danny | last post by:
Hi all, I am having some odd problems with AJAX on Firefox (1.5). When I use GET as the request method everything works ok, but when I do a POST the remote function doesn't get the parameters I...
3
by: michael.lang | last post by:
I am using PostBuild events in a C# project to run some tasks, but only when in release configuration mode. The build events run perfectly as expected when run. The problem comes when I save the...
1
by: dnn | last post by:
How can I access dynamically loaded variables? I am trying to load an external javascript file dynamically and then access its variables. The script is loaded by the onload handler. The code...
3
by: Yourself | last post by:
Hi, I'm trying to post data to PayPal for a shopping cart, basically I want to replicate a form like the following, but create the variables dynamically from code behind: <form...
11
by: sinbad | last post by:
hi, I've a very large C program consisting of hundred of files; I want to know what are all the global variables defined in the program. how do i do this. thanks
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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,...

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.