https://bugzilla.novell.com/show_bug.cgi?id=685267
https://bugzilla.novell.com/show_bug.cgi?id=685267#c0 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: [email protected] ReportedBy: [email protected] QAContact: [email protected] 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 Firefox/4.0 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. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
