This program helps in understanding the c sharp HTML Searching Method
<html> <form action= http://127.0.0.1/cgi-bin/search.exe > <b> Enter keyword </b> <input type=text name=aa> <p> <input type=submit value="Search"> <form> </html> //c# Code using System.Data.OleDb; class zzz { public static void Main() { try { string t; t=System.Environment.GetEnvironmentVariable("QUERY_STRING"); string [] u; char [] v = new char[1]; v[0] = '='; u = t.Split(v); string w; System.Console.WriteLine("Content-Type:text/html\n"); w = "select * from search where keyword='" + u[1] + "'"; OleDbConnection s; s = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=zzz.mdb"); s.Open(); OleDbCommand c; c=new OleDbCommand(w,s); OleDbDataReader r; r = c.ExecuteReader(); while ( r.Read() ) { System.Console.WriteLine("<a href=/{0}> {1} </a> {2} <br>",r.GetValue(1),r.GetValue(2),r.GetValue(3)); } if(u[1]!="java" && u[1]!="php" && u[1]!="csharp" && u[1]!="html") { System.Console.WriteLine("<h1>Sorry Not Matching the Criteria</h1>"); } } catch(System.Exception e) { System.Console.WriteLine(e.ToString()); } } }