Terry

Terry

  • NA
  • 148
  • 0

How to write example text in a TextBox ?

Apr 1 2015 12:34 PM

Hi, 


   In many of my fields I want to write some text (sort of help, format, watermark) type of text in my TextBox. For instance, in a date textbox, I want to show the format "dd/mm/yyyy" and when user in on the textbox it disappears & if the textbox is empty then it appears.


   I believe their is some simple method to do this, but I can't find out. I tried
        [Display(Name = "First Name  *", Prompt = "First Name")]

but it doesn't work. Google'd lot for the same but didn't get any answer as I want to. In Login, in Email box, their should be "[email protected]" text.

Can you help me identify what is the key to achieve this functionality.

Thanks



Answers (8)