[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.

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

--- 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   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Sys.Web
+AssignedTo: gonzalo at ximian.com                            
+ReportedBy: crippledcanary at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+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:
+1. 
+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>  
+<html>  
+<head>  
+<title></title>  
+<script language="javascript">
+	<asp:PlaceHolder id="testHolder" runat="server"></asp:PlaceHolder>
+</script>
+</head>  
+<body>  
+<form runat="server">  
+  
+</form>  
+</body>  
+</html>
+======= End of file ===
+2. 
+Start xsp
+3. 
+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
+`ASP.default_aspx' 
+
+
+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