I know in VBA how to do a Select..Case comparison for a controls Type, as such:
Select Case TypeName(ctrl)
case is = "ListBox"
...
case is = "ComboBox"
...
...
End Select
In VB.Net, can i use the general value, as above, or will i have to have a Namespace qualifier in the text?
Currently implementation:
public function Validate(byref ctrl as WebControl) as boolean
select case TypeName(ctrl)
case is = "TextBox"
....
case is = "Label"
....
...
End select
End Function
You don’t need the “name” of the type, you can use the type directly: