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