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. Viewstate question

Viewstate question

Scheduled Pinned Locked Moved ASP.NET
question
7 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.
  • T Offline
    T Offline
    theJazzyBrain
    wrote on last edited by
    #1

    I noticed that the framework wraps the viewstate hidden input element into a DIV element. Can anyone explain why it is done this way and how and if I can get rid of the div? Can I place the viewstate hidden input at the bottom of the page? Thanking you in advance.

    Jason Kataropoulos

    Excellence is not an act, but a habit!

    Aristotle

    C S 2 Replies Last reply
    0
    • T theJazzyBrain

      I noticed that the framework wraps the viewstate hidden input element into a DIV element. Can anyone explain why it is done this way and how and if I can get rid of the div? Can I place the viewstate hidden input at the bottom of the page? Thanking you in advance.

      Jason Kataropoulos

      Excellence is not an act, but a habit!

      Aristotle

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      No, I don't believe you can ( not easily ). Why do you want to ?

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      T 1 Reply Last reply
      0
      • C Christian Graus

        No, I don't believe you can ( not easily ). Why do you want to ?

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        T Offline
        T Offline
        theJazzyBrain
        wrote on last edited by
        #3

        To be honest I have to serious reason. I just like being in full control of what markup is delivered to the site visitor and little things like this one just annoy me.

        Jason Kataropoulos

        Excellence is not an act, but a habit!

        Aristotle

        N 1 Reply Last reply
        0
        • T theJazzyBrain

          To be honest I have to serious reason. I just like being in full control of what markup is delivered to the site visitor and little things like this one just annoy me.

          Jason Kataropoulos

          Excellence is not an act, but a habit!

          Aristotle

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          Why don't you disable viewstate for the page ?


          printf("Navaneeth!!") www.w3hearts.com

          T 1 Reply Last reply
          0
          • T theJazzyBrain

            I noticed that the framework wraps the viewstate hidden input element into a DIV element. Can anyone explain why it is done this way and how and if I can get rid of the div? Can I place the viewstate hidden input at the bottom of the page? Thanking you in advance.

            Jason Kataropoulos

            Excellence is not an act, but a habit!

            Aristotle

            S Offline
            S Offline
            szukuro
            wrote on last edited by
            #5

            Without this wrapper div ASP.NET wouldn't be able to produce valid XHTML Strict markup. As for the custom viewstate hidden input placing - I don't think it is impossible to do this, but should be complicated enough to not be worth the effort.

            T 1 Reply Last reply
            0
            • N N a v a n e e t h

              Why don't you disable viewstate for the page ?


              printf("Navaneeth!!") www.w3hearts.com

              T Offline
              T Offline
              theJazzyBrain
              wrote on last edited by
              #6

              because i need the viewstate. was just wondering why it is wrapped within a DIV.

              Jason Kataropoulos

              Excellence is not an act, but a habit!

              Aristotle

              1 Reply Last reply
              0
              • S szukuro

                Without this wrapper div ASP.NET wouldn't be able to produce valid XHTML Strict markup. As for the custom viewstate hidden input placing - I don't think it is impossible to do this, but should be complicated enough to not be worth the effort.

                T Offline
                T Offline
                theJazzyBrain
                wrote on last edited by
                #7

                I see... Thank you.

                Jason Kataropoulos

                Excellence is not an act, but a habit!

                Aristotle

                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