[Mono-bugs] [Bug 470993] [Regression] ASP.NET ignore EnableViewState property on component

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Feb 3 04:08:32 EST 2009


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

User informatique.internet at fiducial.fr added comment
https://bugzilla.novell.com/show_bug.cgi?id=470993#c2





--- Comment #2 from Hubert FONGARNAND <informatique.internet at fiducial.fr>  2009-02-03 02:08:32 MST ---
Hi, the bug is not still fixed... because when a component is
EnableViewState=false, all his children should not save their viewstate too.

New test.aspx

<%@ Page Language="C#" Inherits="testweb.Test" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
    <title>Test</title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:Panel runat="server" EnableViewState="false">
        <asp:Label id="lbl1" runat="server"></asp:Label>
    </asp:Panel>
        <asp:Button  runat="server" Text="PostBack me"></asp:Button>
    </form>
</body>
</html>

In this test asp:Label lbl1 is still saved in the viewstate: it should not...

but if you test lbl1.EnableViewState is should return true (even if his
viewstate is not saved)

-- 
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