How can i write java script in .Net Window Application ??

A

Alex Smith

Hi Friends,

I want to know, how we can write java script in .net window application ??
In Web application we can write java script with use OnClientClick. and we
can also defila <language=javascript>,
But in Window Application?

Alex.
 
F

Fabio Cozzolino [MCAD]

Alex,
you can't write javascript code in windows application.
Why you want to make this?

Fabio
 
D

Derek Harmon

Alex,

There's a CLS (Common Language Specification) language called
JScript.NET, through which you can write J(ava)script and access
the classes of the .NET Framework SDK, like System.Windows.-
Forms classes. The name of its command-line compiler is jsc.

Also, Craig Andera of PluralSight wrote a nifty example of running
JScript macros in WinForms that he described in a recent blog entry,

http://pluralsight.com/blogs/craig/archive/2005/05/27/8636.aspx

I'll keep this semi-topical by observing one could probably do the
same in a WebForm (that's if you *trusted* a user to write an honest
macro in script).


Derek Harmon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top