title: C# ASP.NET GetType() with WebUserControl issue
body: <p>In the project I have some custom WebUserControls for form elements (they encapsulate some standard validators and other system specific functions). My user controls are "DropDownListField" and "TextBoxField". In the code behind of a page I have this code:</p>
  
  <pre><code>string parameterValue = null;
  foreach (object control in myMultiView.Views[myMultiView.ActiveViewIndex].Controls)
  {
      if (control.GetType() == typeof(DropDownListField))
          parameterValue = ((DropDownListField)control).Value;
      if (control.GetType() == typeof(TextBoxField))
          parameterValue = ((TextBoxField)control).Value;
  }
  </code></pre>
  
  <p>For some reason the "if" statements always return false even when I step through the code and see that "control" is getting assigned my web user control. This code is in another place in the project exactly the same except in the other location the standard .net controls "TextBox" and "DropDownList" are used and in the other location the code works.</p>
  
  <p>Does anybody know why this wouldn't work with web user controls?</p>
  
  <p>UPDATE: 
  Hmm so in debugging I found this:</p>
  
  <pre><code>?control.GetType();
  BaseType: {Name = "DropDownListField" FullName = "WebUI.UserControls.Fields.DropDownListField"}
  ?typeof(DropDownListField);
  BaseType: {Name = "UserControl" FullName = "System.Web.UI.UserControl"}
  </code></pre>
  
  <p>So typeof is just recognizing they are user controls not the full type it seems.</p>
  
  <p>Does anybody know how I would check for a specific user control type?</p>