S
S
s2018-03-06 15:03:56
C++ / C#
s, 2018-03-06 15:03:56

How to make a CGI program in C#?

How can I link a cgi script in C # with an html form in which, for example, some text will be written and processed by this script? Thanks for any help!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
#
#, 2018-03-06
@solovladys

I have a vague suspicion that you are trying to complicate everything ...
1 - CGI - three letters that can be remembered only when some request has already been sent to the server
2 - the whole mystery, how a request to the server arises when filling out a form, occurs on on the client side, in the browser, the keywords are html, js, front-end frameworks (and they are not cut like dogs now) .. but it’s not realistic to shove C # there yet .. there are cross-compilers, but this does not negate the need for a good understanding of everything that happens in browser.. perhaps in the future, there will be a cross-complexer in webassembly
3 - after you understand the frontend, CGI can be written in any language .. but if you rely on the .NET stack - try to at least master asp.net webforms .. then asp.net mvc (there is very, very a lot of things have already been decided for your convenience .. and you want to go back to the stone age)
ps
if you can handle the frontend - CGI in C # is just a console application, but how to hook it into IIS / Apache .. how to parse input, how to generate html output... anyway - try asp.net
pps
stdin is Console.ReadLine(), stdout is Console.WriteLine() - that's all that makes an application suitable for CGI... everything else must be understood in head and code with pens

V
Vladimir S, 2018-03-06
@hePPer

here is an example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question