| 123456789101112131415161718192021222324252627282930313233343536 |
- /**
- * Namespace: System.Web.UI.WebControls
- * Class: LiteralControlBuilder
- *
- * Author: Gaurav Vaish
- * Maintainer: [email protected]
- * Contact: <[email protected]>, <[email protected]>
- * Implementation: yes
- * Status: 100%
- *
- * (C) Gaurav Vaish (2001)
- */
- using System;
- using System.Web;
- using System.Web.UI;
- namespace System.Web.UI.WebControls
- {
- public class LiteralControlBuilder : ControlBuilder
- {
- public LiteralControlBuilder(): base()
- {
- }
-
- public override bool AllowWhitespaceLiterals()
- {
- return false;
- }
-
- public override void AppendSubBuilder(ControlBuilder subBuilder)
- {
- throw new HttpException(HttpRuntime.FormatResourceString("Control_does_not_allow_children",(typeof(Literal)).ToString()));
- }
- }
- }
|