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
Pankaj Kumar ChoudharyPosted Apr 1, 2015, 9:40 PM
like
Jaipal ReddyPosted Jun 20, 2015, 2:03 AM
TerryPosted Apr 2, 2015, 2:18 AM
Thanks.
TerryPosted Apr 2, 2015, 2:12 AM
You all have provided the correct answer. As Pankaj has provided with code, so am accepting his reply as answer. Please.
Thanks to all of you.
TerryPosted Apr 2, 2015, 2:12 AM
Don't want to add so many images.
Khargesh RajputPosted Apr 1, 2015, 11:43 PM
Placeholder="your watermark text"
Rahul PrajapatPosted Apr 1, 2015, 9:29 PM
Akhil GargPosted Apr 1, 2015, 12:54 PM