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. Problem in getting The Value of Dynamic created TextBox in asp.net?

Problem in getting The Value of Dynamic created TextBox in asp.net?

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-nettutorialquestion
5 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.
  • A Offline
    A Offline
    aeku
    wrote on last edited by
    #1

    Hello all, How we get The Value of Dynamic created TextBox in asp.net? i have a web form and in which i want to create textbox dynamically by click on Button ...Now,on another button click I want to retrieve the value of dynamically created textbox. Please help me.If possible,try to explain me with example. Thanks, aekta

    K A S 3 Replies Last reply
    0
    • A aeku

      Hello all, How we get The Value of Dynamic created TextBox in asp.net? i have a web form and in which i want to create textbox dynamically by click on Button ...Now,on another button click I want to retrieve the value of dynamically created textbox. Please help me.If possible,try to explain me with example. Thanks, aekta

      K Offline
      K Offline
      kubben
      wrote on last edited by
      #2

      You need to know the name of the textbox so that you can do a findcontrol to retreive the textbox. Unless you are doing this in javascript in which case you need to know the textbox.ClientId. Hope that helps. Ben

      1 Reply Last reply
      0
      • A aeku

        Hello all, How we get The Value of Dynamic created TextBox in asp.net? i have a web form and in which i want to create textbox dynamically by click on Button ...Now,on another button click I want to retrieve the value of dynamically created textbox. Please help me.If possible,try to explain me with example. Thanks, aekta

        A Offline
        A Offline
        anuj_24mar yahoo com
        wrote on last edited by
        #3

        to create dynamic textbox use html input type=text because i think u can't create asp.net control at runtime. i create dynamic textbox but i m not able to retrive the value of that. to create dynamic text box. string strHTML = ""; strHTML += " "; tdimage.InnerHtml = strHTML; for create more text box use loop. in HTML if u r able to retrive the value of these text box on button click then reply me <

        anujsharma

        1 Reply Last reply
        0
        • A aeku

          Hello all, How we get The Value of Dynamic created TextBox in asp.net? i have a web form and in which i want to create textbox dynamically by click on Button ...Now,on another button click I want to retrieve the value of dynamically created textbox. Please help me.If possible,try to explain me with example. Thanks, aekta

          S Offline
          S Offline
          Sun Rays
          wrote on last edited by
          #4

          u can do this dim text1 as Textbox text1 = ctype(me.findcontrol(IDofTextbox),textbox) dim str as string str = text1.text

          Thanks, Sun Rays

          A 1 Reply Last reply
          0
          • S Sun Rays

            u can do this dim text1 as Textbox text1 = ctype(me.findcontrol(IDofTextbox),textbox) dim str as string str = text1.text

            Thanks, Sun Rays

            A Offline
            A Offline
            aeku
            wrote on last edited by
            #5

            Thanks for ur help.it's really useful.

            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