[Mono-bugs] [Bug 685267] New: <asp:TreeView> PostBack problem

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Apr 5 13:41:18 EDT 2011



           Summary: <asp:TreeView> PostBack problem
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.10.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: test051102 at hotmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

Created an attachment (id=423296)
 --> (http://bugzilla.novell.com/attachment.cgi?id=423296)
Test Project

User-Agent:       Mozilla/5.0 (Windows NT 5.1; rv:2.0) Gecko/20100101

This example demonstrates a complex problem which is present in all versions of
Mono including Mono 2.10.1.
The sample WebApp runs on the original .NET Framework without problems.
However, the TreeView does not work as expected in Mono. When clicking an item
in the TreeView, it will not expand! I bet that it has something to do with
bug#549263. Unfortunately, the reporter of this bug did not supply a working
test case.

Page.aspx contains a user control (WebUserControl1) which represents a simple
TreeView and a LinkButton. If you do one of the following things, the sample
WebApp runs in Mono as well:

(1) Remove OnTreeNodeExpanded="TreeView1_TreeNodeExpanded" from the
<asp:TreeView> in WebUserControl1.ascx
(2) Remove the LinkButton from Page.aspx

Another thing is not working as well. If you put a breakpoint in Page_Load()
(line 22 of Page.aspx.cs) and investigate to value of Page.IsPostBack you will
find out, that IsPostBack is false after clicking the TreeView's
root item and it is not expanding. It seems that the postback is not working
correctly in this case. This behaviour will cause problems in many real world
web applications.

It took me a huge effort to create a test case for this bug which works
independant of any database access. It is really strange, that the sole
presence of a LinkButton influences the behaviour of the TreeView.

Reproducible: Always

Steps to Reproduce:
1. Run Test Project
2. Click the button
3. Click the + sign of the TreeView
Actual Results:  
TreeView doesn't expand; Page.IsPostBack is false

Expected Results:  
TreeView should expand; Page.IsPostBack should be true

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