Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I have a text box and a calender control.When I select date in calender control then it is displayed in textbox
but I don't want that anyone can type date in textbox. Only through calender control data should be entered.
This is a web application.

Thanks
Posted
Updated 20-Aug-11 4:59am
v3

Hi,
Set
C#
TextBox.ReadOnly =true

from properties window or in pageload event
 
Share this answer
 
v2
Comments
Аslam Iqbal 20-Aug-11 12:32pm    
good answer. 5
Make the Textbox ReadOnly[^] or Disabled[^]
 
Share this answer
 

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