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. adding webcontrols at runtime in ASP.Net

adding webcontrols at runtime in ASP.Net

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelp
2 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.
  • A Offline
    A Offline
    AasimBasraa
    wrote on last edited by
    #1

    I want to add a text box when button is clicked. the problem that i am facing is that when i click the add button new textbox is created. but when i try to read the value of the textbox an exceptions occures that no textbox exist. If any one have idea send me a demo code in reply.

    A 1 Reply Last reply
    0
    • A AasimBasraa

      I want to add a text box when button is clicked. the problem that i am facing is that when i click the add button new textbox is created. but when i try to read the value of the textbox an exceptions occures that no textbox exist. If any one have idea send me a demo code in reply.

      A Offline
      A Offline
      ake_krakbar
      wrote on last edited by
      #2

      Hello! Remember that the textbox is created pretty late in the event cycle - in the raise change events phase. The value can´t be accessed until after that. Try accessing the value in onPreRender and you should be fine.:-D

      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