request a post method

Last post 02-15-2007 1:13 PM by tfsmag. 1 replies.

Sort Posts:

  • request a post method

    02-15-2007, 12:20 PM
    • Member
      262 point Member
    • NightFlash
    • Member since 02-07-2006, 9:34 AM
    • Posts 95

    Hey,

    I have a form with a POST method, in this form there is a hidden field with a lot information.
    When they press submit, they go to my Save.aspx page.

    How can I get the information in the POST method on my next page?

    thank you very much already!

    greetz Kevin

  • Re: request a post method

    02-15-2007, 1:13 PM
    • Contributor
      3,477 point Contributor
    • tfsmag
    • Member since 01-06-2006, 12:58 PM
    • Danville, Illinois
    • Posts 686

    what is the reasoning for needing it on the next page?

    What I would do is do the actions in the button_click event on the first page, then stuff whatever you need to carry over into session variables that could be picked up by what ever page you redirected to at the end of your click event.

        Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
                'get form stuff

                Dim var1 as string=textbox1.text

                Session("var1")=var1

                response.redirect "save.aspx"
        End Sub

    This is the way that I would do it.

     

    ------------------------------------------------
    Jeff Turner

    Don't forget to mark the correct answer for your
    question to help out future visitors!
Page 1 of 1 (2 items)