[Mono-dev] Validator controls expected results?

Christopher Bergström cbergstrom at netsyncro.com
Thu Jan 5 22:24:50 EST 2006

Dieter Bremes wrote:

> Christopher Bergström wrote:
>> Dieter Bremes wrote:
>>> Christopher Bergström wrote:
>>>> Per the documentation.. If I have display="None" and a 
>>>> <asp:ValidationSummary /> control then the validator control should 
>>>> not display results inline, but the JS still executes.  I found a 
>>>> work-around by EnableClientScript="false".. bug?
>>>> This is in Firefox latest version.. (Haven't tested in Safari, IE, 
>>>> Opera.. etc..)
>>>> This works as expected..
>>>> Example :
>>>> <asp:requiredfieldvalidator id="valPhone" runat="server"
>>>>        Controltovalidate="txtPhone"
>>>>        Display="None"
>>>>        EnableClientScript="false"
>>>>        Errormessage="Please enter a phone number." />
>>>> <asp:ValidationSummary id="vsResults" runat="server"
>>>>   DisplayMode="List"
>>>>   EnableClientScript="false"
>>>>   ShowSummary="true"
>>>>   ShowMessageBox="true"
>>>>   HeaderText="Results" />
>>>> If possible can someone send me the actual html output that MS .Net 
>>>> produces and I'll see if I can make a patch.. I'd also like to see 
>>>> the actual html produced in the summary control with DisplayMode="" 
>>>> being changed to each option.. List, BulletList, SingleParagraph
>>>> In my patch should I not change the elements to xhtml compliant?
>>>>    example : <br> to <br />
This guy sums things up pretty well.. "tag soup"... (It applies to 
recent implementations for Ajax, but it's applicable in the regards of 
how MS implemented client side validation and many other things in .Net 1.1)


There are some links on that page that explain the motivation for such 
things as cleaning up the rendered html/xhtml..

I'll see what I can do..

Thanks again!


More information about the Mono-devel-list mailing list