Post Variables to External Script

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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
    Deb M. Guest

  2. Similar Questions and Discussions

    1. Variables in PayPal post
      The following code posts information to PayPal: <td><form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden"...
    2. Apache/PHP Post Variables
      I'm working with someone on a PHP project. The other person is doing testing of scripts on their personal machine using Apache as a web server....
    3. How do I POST variables to a php script ON A LOCALSERVER - I AM PULLING MY HAIR OUT
      Hi everyone and anyone I am running Apache2, Mysql and php on my P4. When I run a simple php script that inserts new data into a database...
    4. Problem with the post variables.
      Guys I have a problem here. I'm using PHP 4.3.2 and httpd 1.3.28. Look my exemple. I have a page whith a Form method post, and I submit this page...
    5. [PHP] Problem with the post variables.
      ooooooops .. my mistake .. Usually I check thing before I post, forget it once .. that's how I make mistakes.. Anyways, I still am pretty sure...
  3. #2

    Default RE: Post Variables to External Script

    There is a Knowledge Base Article (#320439) that may help you with this
    issue. The URL is:
    [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;320439[/url]

    Chris Moore [MSFT]

    --------------------
    >From: [email]deb_marti@yahoo.com[/email] (Deb M.)
    >Newsgroups: microsoft.public.dotnet.framework.aspnet
    >Subject: Post Variables to External Script
    >Date: 11 Jul 2003 07:18:52 -0700
    >Organization: [url]http://groups.google.com/[/url]
    >Lines: 14
    >Message-ID: <da8adae8.0307110618.507b945b@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: [email]groups-abuse@google.com[/email]
    >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-mail
    >Xref: 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
    [url]http://www.microsoft.com/info/cpyright.htm[/url]

    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.

    Chris Moore [MSFT] Guest

  4. #3

    Default Re: Post Variables to External Script

    sure,

    Create a System.Net.WebRequest object, and re-post what you need to the
    legacy application from the .Net application.


    "Deb M." <deb_marti@yahoo.com> wrote in message
    news:da8adae8.0307110618.507b945b@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

    David Waz... Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139