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. "differ b/w viewstate and hidden fields"

"differ b/w viewstate and hidden fields"

Scheduled Pinned Locked Moved ASP.NET
3 Posts 3 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.
  • R Offline
    R Offline
    ravikiranreddydharmannagari
    wrote on last edited by
    #1

    may i know the diff b/w view state and hidden fields

    I 1 Reply Last reply
    0
    • R ravikiranreddydharmannagari

      may i know the diff b/w view state and hidden fields

      I Offline
      I Offline
      iamrashida83
      wrote on last edited by
      #2

      view state is the property of asp.net's pages and controls which can be enabled or disabled but is enable by default. The purpose of enabling view state is to maintain the user's input on controls after the post back which was not available in ASP's post backs. In ASP when page is post back all the inputs on form are lost and we need to enter all the values or input again but its not the case with ASP.NET after the post back all the user input or values remain on the form and are not lost. Hidden field is a simple input control put is hidden. Suppose if u dont want to show user some values dat you may be using in ur client side scripting then u can store these values in hidden fields and can get using javascript

      Regards, Rashida Jabeen http://www.akaas.net[^]

      S 1 Reply Last reply
      0
      • I iamrashida83

        view state is the property of asp.net's pages and controls which can be enabled or disabled but is enable by default. The purpose of enabling view state is to maintain the user's input on controls after the post back which was not available in ASP's post backs. In ASP when page is post back all the inputs on form are lost and we need to enter all the values or input again but its not the case with ASP.NET after the post back all the user input or values remain on the form and are not lost. Hidden field is a simple input control put is hidden. Suppose if u dont want to show user some values dat you may be using in ur client side scripting then u can store these values in hidden fields and can get using javascript

        Regards, Rashida Jabeen http://www.akaas.net[^]

        S Offline
        S Offline
        sam L 0
        wrote on last edited by
        #3

        Yeah, that's absolutely correct...but just to emphasize the main point here, view state IS one of the three hidden fields available in ASP.Net. sam

        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