[Mono-dev] is jscript.net for asp.net supported?

benzo benzofurans-mono at yahoo.com
Mon Feb 4 13:45:53 EST 2008


hi
this is my first post on this list.  although I'm usually not working
with ms technologies I'm following mono since it's beginnings and I
think it's a great project and I have big respect what you guys has
accomplished so far.

According to the jscript site on mono
(http://www.mono-project.com/JScript) this is the mailing list where
you ask questions about the mono implementation of jscript - I hope
this is still the case...

Ok, I try to run jscript in a aspx site*, but it throws an error**.

Is there a way to enable jscript, or am I doing someting wrong here?

thanks for your help.
benzo

** error ----------------------------------------------------------------
Server Error in '/' Application
Configuration error. Language not supported: JScript

Description: Error processing request.

Error Message: HTTP 500. System.Web.HttpException: Configuration
error. Language not supported: JScript

Stack Trace:

System.Web.HttpException: Configuration error. Language not supported: JScript
  at System.Web.Compilation.BaseCompiler.GetCompiledType () [0x00000]
  at System.Web.Compilation.AspGenerator.GetCompiledType () [0x00000]
  at System.Web.UI.PageParser.CompileIntoType () [0x00000]
  at System.Web.UI.TemplateControlParser.GetCompiledInstance () [0x00000]
  at System.Web.UI.PageParser.GetCompiledPageInstance (System.String
virtualPath, System.String inputFile, System.Web.HttpContext context)
[0x00000]
  at System.Web.UI.PageHandlerFactory.GetHandler
(System.Web.HttpContext context, System.String requestType,
System.String url, System.String path) [0x00000]
  at System.Web.HttpApplication.GetHandler (System.Web.HttpContext
context) [0x00000]
  at System.Web.HttpApplication+<>c__CompilerGenerated2.MoveNext () [0x00000]


*
* jstest.aspx------------------------------------------------

<%@ Page Language="JScript" %>
<html>
  <head>
	<script language="JScript" runat="server" >
	function Page_Load(o : Object, e : EventArgs )
	{
		lbl.Text = "Click the Button below to see a welcome
message...";
	}
	function Show(o : Object, e : EventArgs)
	{
		lblMessage.Text = "Welcome";
	}
	</script>

  </head>
  <body style="font-family:Verdana; font-size:10pt;
font-color:blue;">
   <center>
    <form method="post" action="jstest.aspx" runat="server">
      <p><asp:Label id=lbl Runat="server"/>
      <p><asp:Button id=cmdClick Runat="server" Text="Hello
World"
onClick="Show" />
      <p><asp:Label id=lblMessage Runat="server"/>
    </form>
 </center>
  </body>

</html>



More information about the Mono-devel-list mailing list