[Mono-bugs] [Bug 542533] New: AJAX asp:UpdatePanel's do not work, if one of it is situated in container with Visible=false

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Sep 28 07:55:01 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=542533


           Summary: AJAX asp:UpdatePanel's do not work, if one of it is
                    situated in container with Visible=false
    Classification: Mono
           Product: Mono: Class Libraries
           Version: unspecified
          Platform: i686
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: arty_slon at mail.ru
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=320085)
 --> (http://bugzilla.novell.com/attachment.cgi?id=320085)
unworking website 

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.14)
Gecko/2009082707 Firefox/3.0.14 (.NET CLR 3.5.30729) FirePHP/0.3

Hi
Our Web site is written on c# and running by Mono on the Linux platform. When
we've tried to update mono to version 2.4.2.3, we are faced with trouble which
we donot have on mono 2.0.1.

If we set the visibility of any container (which contains UpdatePanel) in the
page to false, then all AJAX UpdatePanels on the page stop to work.

Reproducible: Always

Steps to Reproduce:
Initial conditions

We have a page with some AJAX UpdatePanels, which are situated in different
containers.

----------sourse code-------------
public void chk_OnCheckedChanged(object sender, EventArgs e)
{
    chk.Text = chk.Checked.ToString();
}
-------------page------------------
<form id="form1" runat="server">
        <asp:ScriptManager ID="sm1" runat="server">
        </asp:ScriptManager>
        <div>
            <div id="div1" runat="server">
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
            <div id="div2" runat="server">
                <asp:UpdatePanel ID="UpdatePane2" runat="server">
                    <ContentTemplate>
                        <asp:CheckBox ID="chk" runat="server"
AutoPostBack="true" Text="False" OnCheckedChanged="chk_OnCheckedChanged" />
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
        </div>
    </form>

1. Set the visibility of any container (which contains UpdatePanel) in the page
to false, for example

protected override void OnInit(EventArgs e)
{
    ...
    div1.Visible = false;
}
or
<div id="div1" runat="server" visible="false">

2.Click to checkbox.
Actual Results:  
Nothing happends (async postback isnot provided). If Visible = true then page
behaviour is correct.

Expected Results:  
async postback is provided and checkbox's text is changed.

used System.Web.Extensions with version=1.0.61025.0

zip of website project is attached

-- 
Configure bugmail: http://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