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. creating textbox on fly

creating textbox on fly

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

    Hai Friends, How to create a textbox on fly in asp.net using vb.net. Please provide code for that question. thanks.

    S 1 Reply Last reply
    0
    • H hari4ur

      Hai Friends, How to create a textbox on fly in asp.net using vb.net. Please provide code for that question. thanks.

      S Offline
      S Offline
      Sandeep Akhare
      wrote on last edited by
      #2

      hari4ur wrote:

      How to create a textbox on fly

      Do you want to say dynamically or at run time We can't provide you code Create a Textbox object then give it some meaningfull id Add the Text box Where you want to add on the page better is first add Placeholder then add the textbox in that placeholder

      Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

      H 1 Reply Last reply
      0
      • S Sandeep Akhare

        hari4ur wrote:

        How to create a textbox on fly

        Do you want to say dynamically or at run time We can't provide you code Create a Textbox object then give it some meaningfull id Add the Text box Where you want to add on the page better is first add Placeholder then add the textbox in that placeholder

        Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

        H Offline
        H Offline
        hari4ur
        wrote on last edited by
        #3

        Hai, Thanks for giving. on fly... I mean i want to generate a textbox at runtime. for that i want to write the code in button click.

        S 1 Reply Last reply
        0
        • H hari4ur

          Hai, Thanks for giving. on fly... I mean i want to generate a textbox at runtime. for that i want to write the code in button click.

          S Offline
          S Offline
          Sandeep Akhare
          wrote on last edited by
          #4

          TextBox obj=new TextBox(); obj.Id="GiveMeaningFullId"; This.Page.Controls.Add(obj); // Check for spelling errors if any If you want to add TextBox at specific place Add ASP PlaceHolder Control there (On page) Now instead of adding to page add by PlaceHolder1.Controls.add(obj); // Write whole code in button click event and please first search on google then post

          Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

          H 1 Reply Last reply
          0
          • S Sandeep Akhare

            TextBox obj=new TextBox(); obj.Id="GiveMeaningFullId"; This.Page.Controls.Add(obj); // Check for spelling errors if any If you want to add TextBox at specific place Add ASP PlaceHolder Control there (On page) Now instead of adding to page add by PlaceHolder1.Controls.add(obj); // Write whole code in button click event and please first search on google then post

            Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

            H Offline
            H Offline
            hari4ur
            wrote on last edited by
            #5

            thankyou sandeep.

            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