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. How to Generate controls in web page ASP.NET 2.0?

How to Generate controls in web page ASP.NET 2.0?

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

    Dear Friends, I want to generate controls Textbox, Checkbox, Label etc... programaticaly.. pls help me Dear Friends.....

    Haridas.R harisofttech@gmail.com harisofttech@hotmail.com (online) harizeenet@yahoo.co.in(online) "Achievement is not a destination, its a journey "

    V T 2 Replies Last reply
    0
    • H Haridas R

      Dear Friends, I want to generate controls Textbox, Checkbox, Label etc... programaticaly.. pls help me Dear Friends.....

      Haridas.R harisofttech@gmail.com harisofttech@hotmail.com (online) harizeenet@yahoo.co.in(online) "Achievement is not a destination, its a journey "

      V Offline
      V Offline
      VenkataRamana Gali
      wrote on last edited by
      #2

      do one thing use placeholder control where you want to display. create conrols ex: TextBox txtName = new TextBox(); txtName.Name = "txtName"; Add to the placeholder conrtol. placeholder1.Conrols.Add(txtName); whenever u dont want remove or Hide //Removing placeholder1.Conrols.Remove(txtName);

      regards GV Ramana

      H 1 Reply Last reply
      0
      • H Haridas R

        Dear Friends, I want to generate controls Textbox, Checkbox, Label etc... programaticaly.. pls help me Dear Friends.....

        Haridas.R harisofttech@gmail.com harisofttech@hotmail.com (online) harizeenet@yahoo.co.in(online) "Achievement is not a destination, its a journey "

        T Offline
        T Offline
        ToddHileHoffer
        wrote on last edited by
        #3

        Generating controls is possible but mainting the state is tricky. If you can't use a dataRepeater (even with your own custom XML or dataset) or gridview you may have to. TextBox txt = new TextBox(); txt.Text = "Dynamically added to Page"; this.Controls.Add(txt); You will find that the value in the control will disappear on each postback. Please refer to this link for more information about the page lifecycle.

        how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things --thedailywtf 3/21/06

        H 1 Reply Last reply
        0
        • T ToddHileHoffer

          Generating controls is possible but mainting the state is tricky. If you can't use a dataRepeater (even with your own custom XML or dataset) or gridview you may have to. TextBox txt = new TextBox(); txt.Text = "Dynamically added to Page"; this.Controls.Add(txt); You will find that the value in the control will disappear on each postback. Please refer to this link for more information about the page lifecycle.

          how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things --thedailywtf 3/21/06

          H Offline
          H Offline
          Haridas R
          wrote on last edited by
          #4

          Thanks for the information, How we can manage this State.. pls inform me

          Haridas.R harisofttech@gmail.com harisofttech@hotmail.com (online) harizeenet@yahoo.co.in(online) "Achievement is not a destination, its a journey "

          1 Reply Last reply
          0
          • V VenkataRamana Gali

            do one thing use placeholder control where you want to display. create conrols ex: TextBox txtName = new TextBox(); txtName.Name = "txtName"; Add to the placeholder conrtol. placeholder1.Conrols.Add(txtName); whenever u dont want remove or Hide //Removing placeholder1.Conrols.Remove(txtName);

            regards GV Ramana

            H Offline
            H Offline
            Haridas R
            wrote on last edited by
            #5

            Thanks for the infromation...

            Haridas.R harisofttech@gmail.com harisofttech@hotmail.com (online) harizeenet@yahoo.co.in(online) "Achievement is not a destination, its a journey "

            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