Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using TypeOf in a Select Case
Message
From
11/12/2012 09:25:18
 
 
To
11/12/2012 09:06:36
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01559289
Message ID:
01559293
Views:
52
>Thread #1559234 discusses a better approach to determine the type of a HTML control. I have been wondering if such approach can be used in a Select Case.
>
>
>                            ' Based on the control
>                            Select Case loControl.GetType().ToString
>
>                                ' Textbox
>                                Case "System.Web.UI.WebControls.TextBox"
>
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
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform