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. accessing page control in aspx.cs

accessing page control in aspx.cs

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

    Hello..i have a check box on my content page i want to access this in aspx.cs page.. Thanks..

    C 1 Reply Last reply
    0
    • M meghamaharshi

      Hello..i have a check box on my content page i want to access this in aspx.cs page.. Thanks..

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

      buy a book on ASP.NET and follow the examples. Even if I explained this to you in depth, you're going to get stuck again if you don't understand the fundamentals and lose a lot of time waiting for answers here that you can understand. The checkbox has a name property, you access it by it's name.

      Christian Graus Driven to the arms of OSX by Vista.

      M 1 Reply Last reply
      0
      • C Christian Graus

        buy a book on ASP.NET and follow the examples. Even if I explained this to you in depth, you're going to get stuck again if you don't understand the fundamentals and lose a lot of time waiting for answers here that you can understand. The checkbox has a name property, you access it by it's name.

        Christian Graus Driven to the arms of OSX by Vista.

        M Offline
        M Offline
        meghamaharshi
        wrote on last edited by
        #3

        Thanks..in my content page i have table in which i have added checkboxes dynamically..i have used page.findcontrol and form.fincontrol and this.fincontrol but not able to find a check boxes.. Thanks..

        C 1 Reply Last reply
        0
        • M meghamaharshi

          Thanks..in my content page i have table in which i have added checkboxes dynamically..i have used page.findcontrol and form.fincontrol and this.fincontrol but not able to find a check boxes.. Thanks..

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

          When you add controls dynamically, their viewstate is not restored unless you add them before page load, because it's just before page load that viewstate is restored.

          Christian Graus Driven to the arms of OSX by Vista.

          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