By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,708 Members | 1,456 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,708 IT Pros & Developers. It's quick & easy.

Post Variables to External Script

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.