[Mono-bugs] [Bug 77150][Wis] New - script tag does not support
"runat=server"
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Jan 3 17:03:19 EST 2006
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 patrickmmartin at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=77150
--- shadow/77150 2006-01-03 17:03:19.000000000 -0500
+++ shadow/77150.tmp.19493 2006-01-03 17:03:19.000000000 -0500
@@ -0,0 +1,109 @@
+Bug#: 77150
+Product: Mono: Tools
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: XSP
+AssignedTo: gonzalo at ximian.com
+ReportedBy: patrickmmartin at gmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: script tag does not support "runat=server"
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+
+the script tag with "run=server" does not get included in-line in a simple
+ASP.NET page, as per ASP.NET 1.0, 1.1, 2.0.
+
+
+Steps to reproduce the problem:
+1.
+
+Create the ASPX file with content
+
+<%@ Page Language="C#" EnableViewState="True" Strict="true"
+smartnavigation="false" %>
+<script language=cs runat=server src= "testcase.cs"/>
+<script runat="server">
+
+ void Page_Load()
+ {
+ lblMessage.Text = new TestCase().AppPath;
+ }
+
+</script>
+<html>
+<head>
+ <title>Test Case for script tag</title>
+</head>
+<body>
+ <form runat="server">
+ <p>
+ </p>
+ <fieldset>
+ <p>
+ </p>
+ <legend>if you can see this, then</legend>[i] either you have
+disabled the script
+ tag
+ <p>
+ [ii] you have <script runat=server> ...
+</script> working
+ </p>
+ <p>
+ [iii] you're not running under mono...
+ </p>
+ </fieldset>
+ </form>
+ <asp:Label id="lblMessage" runat="server" text="..."></asp:Label>
+</body>
+</html>
+
+
+2.
+Create the c# file with content
+
+
+public class TestCase{
+
+
+ private static String c_AppPath = HttpContext.Current.Server.MapPath
+(".");
+
+
+ public string AppPath
+ {
+ get
+ {
+ return c_AppPath;
+ }
+ }
+
+}
+
+
+
+3.
+
+Run the ASPX using XSP or XSP2
+
+Actual Results:
+
+The page fails, as the in-line script tage which defines a class required
+in the aspx page is simply not rendered on the server
+
+Expected Results:
+
+
+How often does this happen?
+
+
+Additional Information:
More information about the mono-bugs
mailing list