Right now I am using the code below to make my textbox readonly once the date passes the 20th.
if (Datetime.Now.Day > 20)
{
Textbox1.ReadOnly = true;
}
What do I have to do if I have lets say 12 textboxes in my webform and I have to make them readonly in a monthly basis? For example, if it 21st of Feb, then I will make textbox2 readonly and if it is March 21st, then textbox3 readonly and so on.
Our community of experts have been thoroughly vetted for their expertise and industry experience.