diff options
author | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2003-05-06 05:31:40 +0400 |
---|---|---|
committer | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2003-05-06 05:31:40 +0400 |
commit | 44e72453ac11d7c38642af99e34796853d2a9b01 (patch) | |
tree | cdf2af1b8e7e40a585d41f888d9f07320690734f /mcs/class/System.Web/System.Web.UI/RootBuilder.cs | |
parent | b2e008962d776995b7b0fbeb907a4726a22c01a9 (diff) |
2003-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* System.Web/HttpException.cs: encode as HTML the inner exception that
is appended as a comment at the end of error pages.
* System.Web.Compilation/AspGenerator.cs: fully support including files,
ie., treat them just as C treats #includes.
* System.Web.UI/RootBuilder.cs: throw exception when the tagprefix
is not valid or not found.
svn path=/trunk/mcs/; revision=14316
Diffstat (limited to 'mcs/class/System.Web/System.Web.UI/RootBuilder.cs')
-rw-r--r-- | mcs/class/System.Web/System.Web.UI/RootBuilder.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mcs/class/System.Web/System.Web.UI/RootBuilder.cs b/mcs/class/System.Web/System.Web.UI/RootBuilder.cs index e2d96015d40..133ce52b5c8 100644 --- a/mcs/class/System.Web/System.Web.UI/RootBuilder.cs +++ b/mcs/class/System.Web/System.Web.UI/RootBuilder.cs @@ -65,6 +65,9 @@ namespace System.Web.UI string cname; int colon = tagName.IndexOf (':'); if (colon != -1) { + if (colon == 0) + throw new Exception ("Empty TagPrefix is not valid"); + if (colon + 1 == tagName.Length) return null; @@ -78,6 +81,8 @@ namespace System.Web.UI Type t = foundry.GetComponentType (prefix, cname); if (t != null) return t; + else if (prefix != "") + throw new Exception ("TagPrefix " + prefix + " not registered"); return LookupHtmlControls (tagName, attribs); } |