[Mono-bugs] [Bug 652568] New: Validator state persistence inconsistency between Mono and MS.NET

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Nov 10 06:29:53 EST 2010


https://bugzilla.novell.com/show_bug.cgi?id=652568

https://bugzilla.novell.com/show_bug.cgi?id=652568#c0


           Summary: Validator state persistence inconsistency between Mono
                    and MS.NET
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: x86-64
        OS/Version: Windows 7
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: sergey.hakobyan at gaiaware.net
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.10)
Gecko/20100914 Firefox/3.6.10

Any validator inheriting from BaseValidator, such as RequiredFieldValidator,
does not keep the value of the ForeColor property when it is changed during a
postback.

The issue is valid only for Mono, it works as expected on MS.NET.

Reproducible: Always

Steps to Reproduce:
1. Add a RequiredFieldValidator, TextBox and a Button to the Page.
2. Create Click event handler for the Button.
3. Modify the value of the ForeColor property of the validator.
Actual Results:  
The value of the ForeColor property is always Color.Red, even if it was changed
during a postback.

Expected Results:  
The value of the ForeColor property should be the one set during a postback.

The issue seems to be related to the line 134 in BaseValidator.cs:
https://github.com/mono/mono/blob/master/mcs/class/System.Web/System.Web.UI.WebControls/BaseValidator.cs#L134

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list