简体   繁体   中英

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

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM