Answer the question
In order to leave comments, you need to log in
How to run C# on a website?
I apologize in advance for the amateurish question. How does C# work on the site?
For example, there is a parser written in this language, and it is necessary that the parsed information be displayed on the site, and not in the console on the desktop. Before that, I only tried PHP, inserted a piece of code into html markup and you're done.
And what to do with C# files to make it all work on the site?
Answer the question
In order to leave comments, you need to log in
C# works on the site just like PHP - the code that you insert into the HTML markup is executed on the server and its result, as it were, replaces the code on the page. Accordingly, what would also be done with C #, as you did with PHP, the server must support it. Technologies to look for on the host: ASP.NET or .NET core.
Take a look at this tutorial: https://www.w3schools.com/asp/webpages_intro.asp
If you have any more questions, please ask.
If you want to mix HTML and C# in php, then look at the Razor Pages guide or documentation
This needs to be rewritten in ASP.NET, raise IIS on the site and execute it there
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question