i want to use AJAX and javascript in window platform ...can i use it in vs 05 C# window?
The options I know about:
- JSC.exe
You can compile Javascript into a managed assembly, and call it as you would any .NET assembly. - COM
You can package Javascript logic as COM, and call it from .NET, or from any COM environment. Example.
EDIT: This allows Javascript, but not AJAX. AJAX is a term that specifically applies to browsers, primarily using Javascript to retrieve information and potentially dynamically update the browser page without an explicit page refresh. This generally doesn't make sense in a Windows Form app built in C#, because you have C#, and asynchrony is built in to the .NET platform.
You cannot use JavaScript/JScript to write code as part of a Windows Forms Application. It seems you are after asynchronous data transfer functionality (posh ;) / AJAX which will need to be implemented seperately. Alternatively, if you are looking to provide a scripting language to your users, try IronPython
For a more detailed answer, state in the question the specific part of JavaScript you would like to use, and we'll give alternatives.
EDIT: Oh. You can! Look at the answer above.
Erm - AJAX is just the name for the techonologies and patterns used to make HTTP requests in Javascript. Javascript itself will run in any Javascript engine; most browsers embed one, and you can also use the Rhino standalone engine (though a lot of Javascript will assume a browser environment, which can get flaky).
C# is not Javascript, and to my knowledge, Visual Studio is not a Javascript interpreter. Why are you trying to do this?
You can just add a System.Windows.Forms.WebBrowser to your app, navigate it to whatever HTML + JS page you want, and do all the AJAX you want there.