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

User [email protected] added comment
https://bugzilla.novell.com/show_bug.cgi?id=470993#c2





--- Comment #2 from Hubert FONGARNAND <[email protected]>  
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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to