[Mono-dev] Possible bug in ASP.NET when using webcontrols within script tag.

Peter Magnusson crippledcanary at gmail.com
Fri Dec 16 04:16:34 EST 2005


There is a problem when using webcontrols witin a javascript script tag in mono.
The code below works in windows NET 1.1 but not in mono

I have mono from revision 54118 and xsp from rev 54397



==== test.aspx ====
<%@ 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 test.aspx ====
--
Peter Magnusson
crippledcanary at gmail.com | http://crippledcanary.se



More information about the Mono-devel-list mailing list