HtmlSelectBuilder.cs 615 B

1234567891011121314151617181920212223242526272829303132
  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. class HtmlSelectBuilder : ControlBuilder
  15. {
  16. public override bool AllowWhitespaceLiterals ()
  17. {
  18. return false;
  19. }
  20. public override Type GetChildControlType (string tagName, IDictionary attribs)
  21. {
  22. if (System.String.Compare (tagName, "option", true) != 0)
  23. return null;
  24. return typeof (ListItem);
  25. }
  26. }
  27. }