Hi,
I need to enumerate all controls in a ASP.NET Form and make them read-only. In old VB6 I do it by following code:
Dim t As Control
For Each t In Form1.Controls
If TypeOf t Is TextBox Then
t.Locked = True
End If
Next
But how to do it in ASP.NET?
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 3 of 3
Threaded View
|
Click Here to Expand Forum to Full Width |