>>I suppose so, since the switch/case in C# accepts strings
>>
>>
>>And yes >>
http://msdn.microsoft.com/en-us/library/cy37t14y(v=vs.110).aspx>
>Yes, I mean, that is the code I have right now. I have been wondering if the TypeOf can be used instead in the Select Case.
Google says yes
Select Case True
Case TypeOf (locontrol) is System.Web.UI.WebControls.TextBox
Gregory