raki
raki

Reputation: 2293

how to use javascript in c#

How can I use javascript with a C# application. Also, how can I create an HTML popup window?

actually my need to create a plugin for ie, which uses JSON response to create its elemtts and need a popup for login , which should be an html file

Upvotes: 0

Views: 1283

Answers (2)

psychotik
psychotik

Reputation: 39019

Perhaps you're looking for Script#?

Script# brings the power and productivity of C# and .NET tools to Ajax development by compiling C# source code into regular JavaScript.

Upvotes: 0

rahul
rahul

Reputation: 187040

If you need to call javascript function you can use

Page.RegisterStartupScript

See msdn

For the second part you can use

window.open 

method

See here

Upvotes: 1

Related Questions