[Mono-bugs] [Bug 81069][Wis] New - Fails on PostBack when HtmlTextArea is located in Dynamically Loaded Control

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Mar 7 15:49:06 EST 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by seanhig at geminibay.com.

http://bugzilla.ximian.com/show_bug.cgi?id=81069

--- shadow/81069	2007-03-07 15:49:06.000000000 -0500
+++ shadow/81069.tmp.6275	2007-03-07 15:49:06.000000000 -0500
@@ -0,0 +1,62 @@
+Bug#: 81069
+Product: Mono: Tools
+Version: 1.1
+OS: Mac OS X 10.3
+OS Details: OSX 10.4.9 Macbook Pro Core2
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: XSP
+AssignedTo: gonzalo at ximian.com                            
+ReportedBy: seanhig at geminibay.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Fails on PostBack when HtmlTextArea is located in Dynamically Loaded Control
+
+Description of Problem:
+
+I get the following error when I postback to a form that contains a UserControl that has been 
+dynamically loaded via LoadControl, and that UserControl contains an HtmlTextArea control (or 
+asp:TextBox that creates an HtmlTextArea internally).
+
+System.NullReferenceException: Object reference not set to an instance of an object
+  at System.Web.UI.HtmlControls.HtmlTextArea.DefaultLoadPostData (System.String postDataKey, 
+System.Collections.Specialized.NameValueCollection postCollection) [0x00000] 
+  at System.Web.UI.HtmlControls.HtmlTextArea.LoadPostData (System.String postDataKey, 
+System.Collections.Specialized.NameValueCollection postCollection) [0x00000] 
+  at 
+System.Web.UI.HtmlControls.HtmlTextArea.System.Web.UI.IPostBackDataHandler.LoadPostData 
+(System.String postDataKey, System.Collections.Specialized.NameValueCollection postCollection) 
+[0x00000] 
+  at System.Web.UI.Page.ProcessPostData (System.Collections.Specialized.NameValueCollection 
+data, Boolean second) [0x00000] 
+  at System.Web.UI.Page.InternalProcessRequest () [0x00000] 
+  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000] 
+
+This does not occur with other controls.  When a dynamically loaded UserControl not containing 
+an HtmlTextArea is posted back, everything works as expected.
+
+Steps to reproduce the problem:
+1. Create a UserControl that contains an HtmlTextArea or multi-line TextBox 
+2. Dynamically load into a form using LoadControl
+3. Postback form
+
+Actual Results:
+
+Exception noted above.
+
+Expected Results:
+
+Somewhat obvious.
+
+How often does this happen? 
+
+Every time a dynamically loaded control containing the HtmlTextArea is posted back.
+
+Additional Information:
+
+Consistent in every version of Mono since 1.2.  Does not occur in first release of 1.2 or prior 
+versions of Mono.  Occurs in both XSP and XSP2.


More information about the mono-bugs mailing list