I ran across a novel new tool called SharpKit that generates JavaScript code from C#. I’m not using JavaScript in my current projects, so I haven’t tested this tool yet, but anyone who has worked with JavaScript knows what a hassle it can be compared to the polished managed code environment of C# and Visual Studio.
SharpKit is a free Web Toolkit that enables you to write and maintain code in C#, then convert it to JavaScript during compilation. SharpKit enables web development teams to take advantage of C# and Visual Studio benefits such as compile-time syntax verification, code-completion, XML documentation and refactoring. Many developers prefer this managed code environment versus the expensive and error-prone world of JavaScript programming.
In addition, SharpKit is a nonintrusive, compile-time solution. SharpKit does not change native JavaScript syntax, require server-side changes, nor affect your existing file structure. This non-lock-in model enables you to stop using SharpKit at any time and work directly with the JavaScript source code, if desired.
You can also use SharpKit with VB.NET, and use SharpKit to create iPhone and SmartPhone mobile browser applications.