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. ASP.NET Login

ASP.NET Login

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelpquestion
3 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.
  • C Offline
    C Offline
    Chrispie123
    wrote on last edited by
    #1

    Good Morning, Space (actual width and hight) on my screen is an issue and we need to keep it to the bare minimum. I am using normal login controls. I have come accross a site where the label in front of the edit box... e.g. "User name" and "Password" is inside the box where you type when it is empty and as soon as you start typing the values disappear. if you clear what you inserted and tab of it sets the values back. It is like the null value is set. Does anyone know how i should do that? Thanks Christiaan

    D A 2 Replies Last reply
    0
    • C Chrispie123

      Good Morning, Space (actual width and hight) on my screen is an issue and we need to keep it to the bare minimum. I am using normal login controls. I have come accross a site where the label in front of the edit box... e.g. "User name" and "Password" is inside the box where you type when it is empty and as soon as you start typing the values disappear. if you clear what you inserted and tab of it sets the values back. It is like the null value is set. Does anyone know how i should do that? Thanks Christiaan

      D Offline
      D Offline
      Dinesh Mani
      wrote on last edited by
      #2

      I'm not sure how exactly it has been achieved but a simple javascript implementation can do this. On load set the required text in the text box and have a javascript to check the textbox's value onblur and if it is empty then reset it to the original text. This might not be "THE BEST" solution, but would work!

      1 Reply Last reply
      0
      • C Chrispie123

        Good Morning, Space (actual width and hight) on my screen is an issue and we need to keep it to the bare minimum. I am using normal login controls. I have come accross a site where the label in front of the edit box... e.g. "User name" and "Password" is inside the box where you type when it is empty and as soon as you start typing the values disappear. if you clear what you inserted and tab of it sets the values back. It is like the null value is set. Does anyone know how i should do that? Thanks Christiaan

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        Chris Tiaan wrote:

        Does anyone know how i should do that?

        You can do it using JAVA Script easily. Or you can look for AJAX TextBoxWaterMark Control. TextBoxWatermark Demonstration[^]

        Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

        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