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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. unable to access htmlinputhidden value b/w postbacks in Content page of a Master

unable to access htmlinputhidden value b/w postbacks in Content page of a Master

Scheduled Pinned Locked Moved ASP.NET
help
10 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.
  • S Offline
    S Offline
    surender m
    wrote on last edited by
    #1

    Hi friends, M working on master pages. i have a content page in which i have a htmlinputhidden control. m assigning a value to hidden control everytime page post backs. i can able to access value till 2 post backs after that m unable to access hidden value. pls help me where m going wrong. Thanks inadvance. Soori

    No Defeat Is Final Until You Stop Trying!.......

    P B 2 Replies Last reply
    0
    • S surender m

      Hi friends, M working on master pages. i have a content page in which i have a htmlinputhidden control. m assigning a value to hidden control everytime page post backs. i can able to access value till 2 post backs after that m unable to access hidden value. pls help me where m going wrong. Thanks inadvance. Soori

      No Defeat Is Final Until You Stop Trying!.......

      P Offline
      P Offline
      Parwej Ahamad
      wrote on last edited by
      #2

      How you are accessing this control ? Could you post here that block of code only.

      Parwej Ahamad

      S 1 Reply Last reply
      0
      • P Parwej Ahamad

        How you are accessing this control ? Could you post here that block of code only.

        Parwej Ahamad

        S Offline
        S Offline
        surender m
        wrote on last edited by
        #3

        hi parwej, I am accessing it like this.Hdncontent.value i can see this value while assigning but m unable to get after post back. soori

        No Defeat Is Final Until You Stop Trying!.......

        P 1 Reply Last reply
        0
        • S surender m

          hi parwej, I am accessing it like this.Hdncontent.value i can see this value while assigning but m unable to get after post back. soori

          No Defeat Is Final Until You Stop Trying!.......

          P Offline
          P Offline
          Parwej Ahamad
          wrote on last edited by
          #4

          Hdncontent Server side control Or Client side control ?

          Parwej Ahamad

          S 1 Reply Last reply
          0
          • P Parwej Ahamad

            Hdncontent Server side control Or Client side control ?

            Parwej Ahamad

            S Offline
            S Offline
            surender m
            wrote on last edited by
            #5

            it is an htmlinputhidden control.

            No Defeat Is Final Until You Stop Trying!.......

            P 1 Reply Last reply
            0
            • S surender m

              Hi friends, M working on master pages. i have a content page in which i have a htmlinputhidden control. m assigning a value to hidden control everytime page post backs. i can able to access value till 2 post backs after that m unable to access hidden value. pls help me where m going wrong. Thanks inadvance. Soori

              No Defeat Is Final Until You Stop Trying!.......

              B Offline
              B Offline
              Brij
              wrote on last edited by
              #6

              where is htmlinputhidden ? masterpage or content page?

              Cheers!! Brij

              S 1 Reply Last reply
              0
              • B Brij

                where is htmlinputhidden ? masterpage or content page?

                Cheers!! Brij

                S Offline
                S Offline
                surender m
                wrote on last edited by
                #7

                htmlinputhidden control is in content page. thank you

                No Defeat Is Final Until You Stop Trying!.......

                B 1 Reply Last reply
                0
                • S surender m

                  it is an htmlinputhidden control.

                  No Defeat Is Final Until You Stop Trying!.......

                  P Offline
                  P Offline
                  Parwej Ahamad
                  wrote on last edited by
                  #8

                  Please refer first below URL: http://dotnet.dzone.com/news/aspnet-client-side-state-manag-0[^]

                  Parwej Ahamad

                  1 Reply Last reply
                  0
                  • S surender m

                    htmlinputhidden control is in content page. thank you

                    No Defeat Is Final Until You Stop Trying!.......

                    B Offline
                    B Offline
                    Brij
                    wrote on last edited by
                    #9

                    Plz check the viewsource and use javascript alert to trace it. and one more thing it's always better to use asphidden control.

                    Cheers!! Brij

                    S 1 Reply Last reply
                    0
                    • B Brij

                      Plz check the viewsource and use javascript alert to trace it. and one more thing it's always better to use asphidden control.

                      Cheers!! Brij

                      S Offline
                      S Offline
                      surender m
                      wrote on last edited by
                      #10

                      m not at all using javascript here. My requirement is i hav to show some value on the content page which will be changed in every postback. first time page loads i will do some processing and store a value in hidden field. and then click on some button this time i will get the value from hidden field and do some processing and store some value again. i can see the value while assigning and in view source too bt i cant see the value after postback. m accessing it like this.hidden1.value thanks

                      No Defeat Is Final Until You Stop Trying!.......

                      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