Post Variables to External Script

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Deb M.

    #1

    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.Htt pException: Error executing child
    request"

    Any ideas on how to do this?

    Any help is appreciated!
    Debbie
  • Chris Moore [MSFT]

    #2
    RE: Post Variables to External Script

    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]

    --------------------[color=blue]
    >From: deb_marti@yahoo .com (Deb M.)
    >Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
    >Subject: Post Variables to External Script
    >Date: 11 Jul 2003 07:18:52 -0700
    >Organization : http://groups.google.com/
    >Lines: 14
    >Message-ID: <da8adae8.03071 10618.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[/color]
    14:18:52 GMT)[color=blue]
    >X-Complaints-To: groups-abuse@google.co m
    >NNTP-Posting-Date: 11 Jul 2003 14:18:52 GMT
    >Path:[/color]
    cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!t-onlin
    e.de!news-spur1.maxwell.s yr.edu!news.max well.syr.edu!sn-xit-03!sn-xit-01!sn-
    xit-09!supernews.co m!postnews1.goo gle.com!not-for-mail[color=blue]
    >Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:1585 39
    >X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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.Htt pException: Error executing child
    >request"
    >
    >Any ideas on how to do this?
    >
    >Any help is appreciated!
    >Debbie
    >[/color]


    --

    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.

    Comment

    • David Waz...

      #3
      Re: Post Variables to External Script

      sure,

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


      "Deb M." <deb_marti@yaho o.com> wrote in message
      news:da8adae8.0 307110618.507b9 45b@posting.goo gle.com...[color=blue]
      > 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.Htt pException: Error executing child
      > request"
      >
      > Any ideas on how to do this?
      >
      > Any help is appreciated!
      > Debbie[/color]


      Comment

      Working...