HtmlSelectBuilder.cs 642 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // System.Web.UI.HtmlControls.HtmlSelectBuilder
  3. //
  4. // Authors:
  5. // Gonzalo Paniagua Javier ([email protected])
  6. //
  7. // (C) 2003 Ximian, Inc (http://www.ximian.com)
  8. //
  9. using System.Collections;
  10. using System.Web.UI;
  11. using System.Web.UI.WebControls;
  12. namespace System.Web.UI.HtmlControls
  13. {
  14. #if NET_2_0
  15. public
  16. #endif
  17. class HtmlSelectBuilder : ControlBuilder
  18. {
  19. public override bool AllowWhitespaceLiterals ()
  20. {
  21. return false;
  22. }
  23. public override Type GetChildControlType (string tagName, IDictionary attribs)
  24. {
  25. if (System.String.Compare (tagName, "option", true) != 0)
  26. return null;
  27. return typeof (ListItem);
  28. }
  29. }
  30. }