There is any way at all to write a c# code from .js file?

Thank you .

Member Avatar for stbuchok

Can you elaborate?

Are you looking at executing C# from within a javascript file?

If so, look at web services.

yes we can write some of C# code in JS file, but it is case sensitive

Member Avatar for stbuchok

crishlay, no you can not have C# code in a javascript file and have it execute. You can have something like a web service that is available in javascript, but it is not the C# code itself.

The webservice didn't support sessions/applications so I had to make a database table which saves the players in the site. Now I would like to test it as if I enter with 2 different users to the web, I will have to install IIS for it right?

I guess your current work is being done with the JavaScript and you want to do the same work with C#?
If that's whats your problem is then yes you can convert your logic into similar C# source code and get the work done.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.