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