Convert Javascript to C# Code
-
I found some Javascript code on the Internet and it works very well for what I need to use it for. I want to do the same thing in c# code. Does anyone know of a program that converts javascript to c# code? If not does anyone know how to run javascript from a c# program?
-
I found some Javascript code on the Internet and it works very well for what I need to use it for. I want to do the same thing in c# code. Does anyone know of a program that converts javascript to c# code? If not does anyone know how to run javascript from a c# program?
Look into these methods for running javascript from within your asp.net app. RegisterClientScriptBlock() RegisterStartupScript() -Richard
-
I found some Javascript code on the Internet and it works very well for what I need to use it for. I want to do the same thing in c# code. Does anyone know of a program that converts javascript to c# code? If not does anyone know how to run javascript from a c# program?
One thing you can do is compile the JavaScript code as JScript.NET (look at jsc.exe compiler in the DotNet SDK). Once compiled as .NET code, C# code could call the JScript.NET functions without hassle.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: He has a funny face. And he's my son. Judah Himango