troubleshooting Question

make textboxes readonly

Avatar of siddhuoops
siddhuoops asked on
12 Comments2 Solutions397 ViewsLast Modified:
Hello experts,

                    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.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 12 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 12 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros