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 use Label as a TextBox

How to use Label as a TextBox

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

    I want to use Label as TextBox and when any one enter their password in Label it should display some other character Like('*'). how to do. Plz help me out. Thanks in advance.

    _ M I 3 Replies Last reply
    0
    • I indiaone

      I want to use Label as TextBox and when any one enter their password in Label it should display some other character Like('*'). how to do. Plz help me out. Thanks in advance.

      _ Offline
      _ Offline
      _AK_
      wrote on last edited by
      #2

      Hi, Why you want to use label as textbox? For a textbox you are having a property textmode which you can set to password. Best Regards, Apurva Kaushal

      1 Reply Last reply
      0
      • I indiaone

        I want to use Label as TextBox and when any one enter their password in Label it should display some other character Like('*'). how to do. Plz help me out. Thanks in advance.

        M Offline
        M Offline
        minhpc_bk
        wrote on last edited by
        #3

        The Label control is basically used to display text, and it's not an input control like TextBox, DropDownlist. So I'm curious when you want to make the Label work as a TextBox, in your case you should use the TextBox control and make it look like a Label. To do so, you can set the BorderColor of the textbox to white, and also set the BorderWidth to 0. You can wrap these settings up in a css class.

        1 Reply Last reply
        0
        • I indiaone

          I want to use Label as TextBox and when any one enter their password in Label it should display some other character Like('*'). how to do. Plz help me out. Thanks in advance.

          I Offline
          I Offline
          ice hotty
          wrote on last edited by
          #4

          Must be use label to display * to replace the char. and i wanna ask. how do you enter character "on" label ....... ?_? Study...

          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