Click here to Skip to main content
15,886,724 members
Articles / Web Development / HTML

Understanding CGI with C#

Rate me:
Please Sign up or sign in to vote.
4.93/5 (73 votes)
27 Jan 2005Apache31 min read 417.2K   4.3K   108  
Leveraging the Common Gateway Interface in C#.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<title>CGI in C#</title>
</head>
<body>
<h2>Play CGI Report in C#</h2>
<form action="cgi_csharp.csx" method="POST">
Select&nbsp;Start&nbsp;Year:&nbsp;<select name="start_year">
<option selected="selected">2005</option>
<option>2004</option>
<option>2003</option>
<option>2002</option>
<option>2001</option>
<option>2000</option>
</select><br />

Select&nbsp;End&nbsp;Year:&nbsp;<select name="end_year">
<option selected="selected">2000</option>
<option>2001</option>
<option>2002</option>
<option>2003</option>
<option>2004</option>
<option>2005</option>
</select><br />

Select&nbsp;CGI&nbsp;Supplier:&nbsp;<select name="sup_id">
<option selected="selected">All</option>
<option value="1">The Code Project</option>
<option value="2">Microsoft</option>
<option value="3">Novel's Mono</option>
<option value="4">Attempting to hack: ; &amp; &#60;b&#62;HA HA HA!&#60;/b&#62;</option> 
</select><br />

Enter your own input here: <INPUT TYPE="text" NAME="play" SIZE="30" /><br />

<input type="submit" value="Submit Report with POST" />
</form>
<br />
<form action="cgi_csharp.csx" method="GET">
Select&nbsp;Start&nbsp;Year:&nbsp;<select name="start_year">
<option selected="selected">2005</option>
<option>2004</option>
<option>2003</option>
<option>2002</option>
<option>2001</option>
<option>2000</option>
</select><br />

Select&nbsp;End&nbsp;Year:&nbsp;<select name="end_year">
<option selected="selected">2000</option>
<option>2001</option>
<option>2002</option>
<option>2003</option>
<option>2004</option>
<option>2005</option>
</select><br />

Select&nbsp;CGI&nbsp;Supplier:&nbsp;<select name="sup_id">
<option selected="selected">All</option>
<option value="1">The Code Project</option>
<option value="2">Microsoft</option>
<option value="3">Novel's Mono</option>
<option value="4">Attempting to hack: ; &amp; &#60;b&#62;HA HA HA!&#60;/b&#62;</option> 
</select><br />

Enter your own input here: <INPUT TYPE="text" NAME="play" SIZE="30" /><br />

<input type="submit" value="Submit Report with GET" />
</form>

</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Apache License, Version 2.0


Written By
Software Developer (Senior)
United States United States
Justin Williams works as a RIA developer in sunny San Diego, California.

Comments and Discussions