.NET to Javascript compiler

C# code   Html page   Start
public class NumericTextBoxApp : HtmlGlobal
{
    static NumericTextBox target;
    public static void Start()
    {
        NumericTextBox source = new NumericTextBox(document.GetElementById("source"), true, 2, true);
        CultureInfo cultureInfo = CultureInfo.CurrentUICulture;
        Thread.CurrentThread.CurrentUICulture = CultureInfos.TryGetCultureInfo(1031);
        target = new NumericTextBox(document.GetElementById("target"), true, 2, true);
        Thread.CurrentThread.CurrentUICulture = cultureInfo;
        source.AdviseValueChanged(delegate()
        {
            target.Value = source.Value;
        });
    }
}

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
    <meta http-equiv="x-ua-compatible" content="IE=11;IE=10;IE=9;IE=8;IE=7" />
    <link rel="stylesheet" href="styles/jscriptsuite.css" type="text/css" />
    <link rel="stylesheet" href="styles/summary.css" type="text/css" />
    <script type="text/javascript" language="javascript" src="js/numericTextBox.js"></script>
  </head>
	<body onload="StartScript()">
		NumericTextBox.html - NumericTextBox events ans Get/Set value. Please change and leave source. Source has to be copied to target
		<table>
			<tr>
				<td>Source (Invariant Culture)</td>
				<td>
					<input type="text" id="source" style="width:100px; text-align:right"/>
				</td>
			</tr>
			<tr>
				<td>Target (LCID 1031)</td>
				<td>
					<input type="text" id="target" style="width:100px; text-align:right"/>
				</td>
			</tr>
		</table>
	</body>
</html>
© 2009 JScriptSuite. All rights reserved.