S
S
Senseich2020-11-04 03:46:43
.NET
Senseich, 2020-11-04 03:46:43

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

4 answer(s)
A
Alex, 2020-11-04
@Senseich

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.

V
Vasily Bannikov, 2020-11-04
@vabka

If you want to mix HTML and C# in php, then look at the Razor Pages guide or documentation

D
Developer, 2020-11-04
@samodum

This needs to be rewritten in ASP.NET, raise IIS on the site and execute it there

H
HemulGM, 2020-11-04
@HemulGM

Or it is enough to take the http server template in C # and generate the desired page right away. http server run on a machine with a white ip and configure everything. Domain name to this white static ip address and port forwarding to 80,8080,443

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question