[Mono-devel-list] ASP.NET: Patch for BaseValidator
Juraj Skripsky
js at hotfeet.ch
Fri Sep 12 07:50:56 EDT 2003
Hello everyone,
Thanks a lot for all the great work on mono!
The attached patch fixes a bug in BaseValidator:
If the text attribute was set in a validator control, the RenderEndTag
method got called twice in succession.
---
Juraj Skripsky (juraj at hotfeet.ch)
HotFeet - developing the web
Technopark Zurich
Switzerland
-------------- next part --------------
? BaseValidator.diff
Index: BaseValidator.cs
===================================================================
RCS file: /mono/mcs/class/System.Web/System.Web.UI.WebControls/BaseValidator.cs,v
retrieving revision 1.21
diff -u -r1.21 BaseValidator.cs
--- BaseValidator.cs 1 Aug 2003 08:03:59 -0000 1.21
+++ BaseValidator.cs 12 Sep 2003 10:26:59 -0000
@@ -408,12 +408,10 @@
if (!valid) {
RenderBeginTag (writer);
- if (Text.Trim ().Length > 0 || HasControls ()) {
+ if (Text.Trim ().Length > 0 || HasControls ())
RenderContents (writer);
- RenderEndTag (writer);
- } else {
+ else
writer.Write (ErrorMessage);
- }
RenderEndTag (writer);
return;
}
More information about the Mono-devel-list
mailing list