Make Textbox Readonly. If you don't have an initial value you can as well provide only attributes anonymous object with relevant attribute set as. How do I make this a readOnly textBox, and the text inside it appear as gray?
NET to make all text boxes on a page ReadOnly? I show you how to make TextBox Readonly by use property and write code. What i need is to make the textbox readonly.
If you don't have an initial value you can as well provide only attributes anonymous object with relevant attribute set as.
Note: Only text controls can be made read-only, since for other controls (such as checkboxes and buttons) there is no useful distinction between being read-only and being disabled, so the readonly.
The IsReadOnly property of the TextBox sets the text box read only. TextBox("PatientID"). "PatientID" is value from viewbag. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy.