[Mono-bugs] [Bug 77013][Wis] New - Using WebControls within a <script> tag fails to compile in xsp

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Dec 16 08:34:34 EST 2005

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 crippledcanary at gmail.com.


--- shadow/77013	2005-12-16 08:34:34.000000000 -0500
+++ shadow/77013.tmp.9336	2005-12-16 08:34:34.000000000 -0500
@@ -0,0 +1,76 @@
+Bug#: 77013
+Product: Mono: Class Libraries
+Version: 1.1
+OS: GNU/Linux [Other]
+OS Details: Ubuntu 5.10
+Status: NEW   
+Priority: Wishlist
+Component: Sys.Web
+AssignedTo: gonzalo at ximian.com                            
+ReportedBy: crippledcanary at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Using WebControls within a <script> tag fails to compile in xsp
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+Steps to reproduce the problem:
+Create a file with the following contents and save it as default.aspx
+=== Beginning of file ===
+<%@ Page Language="C#" %>  
+<script runat="server">  
+void Page_Load(object sender, EventArgs e)  
+    testHolder.Controls.Add(new LiteralControl("<!-- test comment -->"));
+<script language="javascript">
+	<asp:PlaceHolder id="testHolder" runat="server"></asp:PlaceHolder>
+<form runat="server">  
+======= End of file ===
+Start xsp
+Browse to localhost:8080/default.aspx
+Actual Results:
+The server reports a compilation error.
+Description: Error compiling a resource required to service this request.
+Review your source file and modify it to fix this error.
+Error message: /tmp/petmag-temp-aspnet-0/26a4b994/66455.0.cs(41,5) : error
+CS0103: The name `testHolder' does not exist in the context of
+Expected Results:
+A blank page should open that has a a javascript section with a single html
+ comment in it.
+How often does this happen? 
+Allways on Linux, Never in Windows (XP SP2)
+Additional Information:

More information about the mono-bugs mailing list