[Mono-dev] Validator controls expected results?
Dieter Bremes
dbjobs at snafu.de
Wed Jan 4 07:04:35 EST 2006
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 />
>
> Thanks
>
> C.
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
Hi Christopher,
.NET 1.1 works as expected + documented. I've attached four files:
- FF_LX_NoJS.txt: EnableClientScript=False for both validators
- FF_LX_NoJS_AfterValidate.txt: HTML after validation
- FF_LX_JS.txt: EnableClientScript=True for both validators
- FF_LX_JS_AfterValidate.txt: HTML after validation
All files were produced using
- VS.NET 2003 / .NET Framework v1.1.4322 + W2K server side
- IE 6.0 + W2K client side (same machine)
I also tried Firefox 1.07 + SUSE 10 OSS client side, HTML looks the same.
Let me know if that's what you need. I will then send results for
different DisplayMode values.
I would not change the elements to xhtml compliance because this should
be compatible with MS' output. They claim to be compliant in ASP.NET 2.0.
Dieter
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: FF_LX_JS_AfterValidate.txt
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060104/2d4682d2/attachment.txt
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: FF_LX_NoJS_AfterValidate.txt
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060104/2d4682d2/attachment-0001.txt
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: FF_LX_JS.txt
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060104/2d4682d2/attachment-0002.txt
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: FF_LX_NoJS.txt
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060104/2d4682d2/attachment-0003.txt
More information about the Mono-devel-list
mailing list