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. ASP.NET
  4. Hidden Fields

Hidden Fields

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nettutorial
6 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.
  • M Offline
    M Offline
    Mkanchha
    wrote on last edited by
    #1

    How to Transfer Value from One Page to another Page Using Hidden Fields. I am using ASP.NET 1.1 Mkanchha

    S P K 3 Replies Last reply
    0
    • M Mkanchha

      How to Transfer Value from One Page to another Page Using Hidden Fields. I am using ASP.NET 1.1 Mkanchha

      S Offline
      S Offline
      Sherin Iranimose
      wrote on last edited by
      #2

      in terms of vb.net Response.Redirect("MyForm.asp?hiddenvalue=" & HiddenField1.value)

      Sherin Iranimose

      1 Reply Last reply
      0
      • M Mkanchha

        How to Transfer Value from One Page to another Page Using Hidden Fields. I am using ASP.NET 1.1 Mkanchha

        P Offline
        P Offline
        PSK_
        wrote on last edited by
        #3

        1->If you are using Server.Transfer method then you can get it from Request.Form object by specifying the Hidden field name. 2-> You can user session variable to pass the value, set it before redirecting. 3-> Or you can pass it in query string.

        Regards, Prakash Kalakoti

        M 1 Reply Last reply
        0
        • M Mkanchha

          How to Transfer Value from One Page to another Page Using Hidden Fields. I am using ASP.NET 1.1 Mkanchha

          K Offline
          K Offline
          Khan Bangash
          wrote on last edited by
          #4

          Use the following example.

          1 Reply Last reply
          0
          • P PSK_

            1->If you are using Server.Transfer method then you can get it from Request.Form object by specifying the Hidden field name. 2-> You can user session variable to pass the value, set it before redirecting. 3-> Or you can pass it in query string.

            Regards, Prakash Kalakoti

            M Offline
            M Offline
            Mkanchha
            wrote on last edited by
            #5

            Thanks for Your Reply. But Still I am not getting the values. BackendCode--First Form Hidden1.Value =TxtName.Text Server.Transfer("abc.aspx") BackendCode--Second Form dim Name as string Name=Request.Form("Hidden1") Please Tell Me where I made Mistake. Mkanchha

            S 1 Reply Last reply
            0
            • M Mkanchha

              Thanks for Your Reply. But Still I am not getting the values. BackendCode--First Form Hidden1.Value =TxtName.Text Server.Transfer("abc.aspx") BackendCode--Second Form dim Name as string Name=Request.Form("Hidden1") Please Tell Me where I made Mistake. Mkanchha

              S Offline
              S Offline
              Sherin Iranimose
              wrote on last edited by
              #6

              You should pass the value from first page to another. In ur code u are not doing that.

              Sherin Iranimose

              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