+ 2

[Solved] Include a C# script in a web page

I made a simple web page using HTML and CSS. I want to do some math calculations and display the result on the page, but as I'm more familiar with C# than with Javascript I want to perform these calculations in a included C# script file. My question is, if it's possible to include such a file in my page and how.

15th Jul 2018, 10:41 AM
Serkonda_1
1 Resposta
+ 2
You can not include a C# script, since it is not a language that web browsers can interpret. Even so, if you are using Visual Studio this tutorial can help you create a Web service that does the things you want. https://msdn.microsoft.com/en-us/library/8wbhsy70(v=vs.100).aspx https://www.c-sharpcorner.com/article/web-services-using-c-sharp-creating-web-services/
15th Jul 2018, 11:04 AM
Mickel
Mickel - avatar