Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. How to "post " form variable to another windows ?

How to "post " form variable to another windows ?

Scheduled Pinned Locked Moved Web Development
questioncsharphelptutoriallearning
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    neo_6053
    wrote on last edited by
    #1

    hi, i'm a beginner in .net. recently, i'm facing the problem of passing variable using post method... *** Response.Redirect("webForm2.aspx?id=01&name=neo") *** dim id as string = Request.Form("id") dim name as string = Request.Form("name") this is the sample. now, in webForm2.aspx, i would like to retrieve the value using request.Form. automatically, .net will use "get" method to send the value(coz the data is append at the end of the url). but i would like to hide my data.. how can i do that ?

    E G G 3 Replies Last reply
    0
    • N neo_6053

      hi, i'm a beginner in .net. recently, i'm facing the problem of passing variable using post method... *** Response.Redirect("webForm2.aspx?id=01&name=neo") *** dim id as string = Request.Form("id") dim name as string = Request.Form("name") this is the sample. now, in webForm2.aspx, i would like to retrieve the value using request.Form. automatically, .net will use "get" method to send the value(coz the data is append at the end of the url). but i would like to hide my data.. how can i do that ?

      E Offline
      E Offline
      enjoycrack
      wrote on last edited by
      #2

      neo_6053 wrote: but i would like to hide my data.. yep, u can use hidden html controls to store ur data... << >>

      1 Reply Last reply
      0
      • N neo_6053

        hi, i'm a beginner in .net. recently, i'm facing the problem of passing variable using post method... *** Response.Redirect("webForm2.aspx?id=01&name=neo") *** dim id as string = Request.Form("id") dim name as string = Request.Form("name") this is the sample. now, in webForm2.aspx, i would like to retrieve the value using request.Form. automatically, .net will use "get" method to send the value(coz the data is append at the end of the url). but i would like to hide my data.. how can i do that ?

        G Offline
        G Offline
        Gavin Jeffrey
        wrote on last edited by
        #3

        You can use the Server.Transfer method to hide variables between pages check out - http://www.dotnetbips.com/displayarticle.aspx?id=79 for an example

        1 Reply Last reply
        0
        • N neo_6053

          hi, i'm a beginner in .net. recently, i'm facing the problem of passing variable using post method... *** Response.Redirect("webForm2.aspx?id=01&name=neo") *** dim id as string = Request.Form("id") dim name as string = Request.Form("name") this is the sample. now, in webForm2.aspx, i would like to retrieve the value using request.Form. automatically, .net will use "get" method to send the value(coz the data is append at the end of the url). but i would like to hide my data.. how can i do that ?

          G Offline
          G Offline
          Guffa
          wrote on last edited by
          #4

          To post the data, you need a form. To have a form you need a page, so you have to output a page to the browser, containing a form. In the form you put hidden fields with the data you want to send. Then you need to put a javascript in the page, that posts the form. Some users has disabled javascript, if you need to support them also, you would have to put a submit button in the form also, or they would just face a blank page. --- b { font-weight: normal; }

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups