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. Add Control

Add Control

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

    i am doing this but not getting the textbox in the form.What to do please help me out dear. Txt.ID = "SubmitBtn" Txt.TextMode = TextBoxMode.MultiLine Txt.Height = New Unit(UnitType.Pixel, 24.0) Txt.Width = New Unit(UnitType.Pixel, 250) PlaceHolder1.Controls.Add(Txt) PlaceHolder1.Controls.Add(New LiteralControl("   **")) PlaceHolder1.Controls.Add(New LiteralControl("
    ")) PlaceHolder1.Controls.Add(New LiteralControl("
    "))

    Mohinder Singh

    **

    K 1 Reply Last reply
    0
    • V vengaqua

      i am doing this but not getting the textbox in the form.What to do please help me out dear. Txt.ID = "SubmitBtn" Txt.TextMode = TextBoxMode.MultiLine Txt.Height = New Unit(UnitType.Pixel, 24.0) Txt.Width = New Unit(UnitType.Pixel, 250) PlaceHolder1.Controls.Add(Txt) PlaceHolder1.Controls.Add(New LiteralControl("   **")) PlaceHolder1.Controls.Add(New LiteralControl("
      ")) PlaceHolder1.Controls.Add(New LiteralControl("
      "))

      Mohinder Singh

      **

      K Offline
      K Offline
      Kunal P
      wrote on last edited by
      #2

      Textbox Txt = new Textbox(); in c# or Dim Txt as new Textbox in VB try these... else drag and drop one..

      Kunal

      V 1 Reply Last reply
      0
      • K Kunal P

        Textbox Txt = new Textbox(); in c# or Dim Txt as new Textbox in VB try these... else drag and drop one..

        Kunal

        V Offline
        V Offline
        vengaqua
        wrote on last edited by
        #3

        i am doing this at runtime. Now Tell me ????

        Mohinder Singh

        K 1 Reply Last reply
        0
        • V vengaqua

          i am doing this at runtime. Now Tell me ????

          Mohinder Singh

          K Offline
          K Offline
          Kunal P
          wrote on last edited by
          #4

          did u create a new instance of a textbox as i told you..

          Kunal

          V 1 Reply Last reply
          0
          • K Kunal P

            did u create a new instance of a textbox as i told you..

            Kunal

            V Offline
            V Offline
            vengaqua
            wrote on last edited by
            #5

            yes i did this way only. But when i give the height and width of the text box then textbox does not appear.

            Mohinder Singh

            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