Re: Execute a JavaScript function in a C# application.

Patrick Steele <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.advanced
Message-ID <[email protected]>
On Thu, Nov 6, 2008 at 6:18 AM, Brady Kelly <[email protected]> wrote:
> Without using a WebBrowser control, how could I execute a JavaScript
> function, that is decoupled from any browser DOM dependencies, in a C#
> application? I am investigating implementing validation rules only once, for
> both server and client validation. See this question for reference if you
> like. Are there any JS interpreter libraries I could use?

You could use the Microsoft Script Control via COM-interop.

-- 
Patrick Steele
http://weblogs.asp.net/psteele

===================================
View archives and manage your subscription(s) at http://peach.ease.lsoft.com/archives
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.