Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi
I want to display date of today in asp.net text box as water mark. guide me or give me any idea to display date as watermark, please.

thanks!
Posted
Updated 19-Sep-14 0:43am
v2
Comments
Shemeemsha (ഷെമീംഷ) 19-Sep-14 7:13am    
Elaborate your question ..
That text box is editable or not?
You mean place holder? or ??
NIKS SHINE 19-Sep-14 7:23am    
Placeholder- gives me some idea.. actually I have added an ajax date extender. Including to this i want to show date of today in the asp text box. doing this, i m not able to fetch the date that user selects. To avoid using jquery sol I thought if i could use a date as a watermark which i could hide on mouse hover. Hope it will help you to help me. :)

thanks
Shemeemsha (ഷെമീംഷ) 19-Sep-14 7:31am    
You can use "placeholder" attribute in the textbox html tag..
NIKS SHINE 19-Sep-14 7:58am    
thanks for the guidance, but i would ike to know- how I shall be able to show the date in placeholder attribute..?

1 solution

http://stackoverflow.com/questions/17051791/placeholder-example-text-in-textbox-for-user[^]

Click the above link..I think you are looking for this..
 
Share this answer
 
Comments
NIKS SHINE 20-Sep-14 7:00am    
hey, i am not using placeholder, so i have posted my query on stack overflow.com , if possible please visit this and see, if i m doing right or not.. thanks so much!! http://stackoverflow.com/questions/25946178/asp-net-4-0-text-box-doesnt-allow-to-input-javascript-date-in-textbox?noredirect=1#comment40620726_25946178

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900