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. How to get the Hidden Text Box value using 2.0

How to get the Hidden Text Box value using 2.0

Scheduled Pinned Locked Moved ASP.NET
helpcsharpjavavisual-studiosysadmin
3 Posts 2 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.
  • V Offline
    V Offline
    VenkataRamana Gali
    wrote on last edited by
    #1

    Hi, I am using VS.NET 2005, in my webform1 im storing some value in Hidden Text Box using java script. Now from Server side code I am used to acces with following code. string str = Request.Form["Hidden1"]; but this str is always showing null. Here Hidden Control is storing the properly, but is unable to get from severside code. Is there any other way to access the Hiddent control value? Earlier VS.2003 it is worked fine. problem with 2005? plz help ASAP? regards GV Ramana

    F 1 Reply Last reply
    0
    • V VenkataRamana Gali

      Hi, I am using VS.NET 2005, in my webform1 im storing some value in Hidden Text Box using java script. Now from Server side code I am used to acces with following code. string str = Request.Form["Hidden1"]; but this str is always showing null. Here Hidden Control is storing the properly, but is unable to get from severside code. Is there any other way to access the Hiddent control value? Earlier VS.2003 it is worked fine. problem with 2005? plz help ASAP? regards GV Ramana

      F Offline
      F Offline
      fluxtah
      wrote on last edited by
      #2

      Need more information, is the hidden field a server control or ordinary html hidden field. If its a server control you should be able to access it as normal string str = Hidden1.Text; if the field is not a server control then make sure the hidden field tags name attribute is Hidden1 -- modified at 15:05 Friday 27th January, 2006 Corrrection: string str = Hidden1.Value; regards Fluxtah

      V 1 Reply Last reply
      0
      • F fluxtah

        Need more information, is the hidden field a server control or ordinary html hidden field. If its a server control you should be able to access it as normal string str = Hidden1.Text; if the field is not a server control then make sure the hidden field tags name attribute is Hidden1 -- modified at 15:05 Friday 27th January, 2006 Corrrection: string str = Hidden1.Value; regards Fluxtah

        V Offline
        V Offline
        VenkataRamana Gali
        wrote on last edited by
        #3

        Thx fluxtah, OK, I am taken html hidden control, I forgot to give the Name of it. regards GV Ramana

        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