    <%@ Page Language="C#" %>
    <%@ Import namespace="System" %>
    <%@ Import namespace="System.Data" %>
    <%@ Import namespace="System.IO" %>
    <script language="C#" runat="server">
    //用数组模拟数据库
    	String [] arrCustomer = {
    "ALFKI	Alfreds Futterkiste	Maria Anders	Germany	Berlin	Obere Str. 57	030-0074321",
    "ANATR	Ana Trujillo Emparedados y helados	Ana Trujillo	Mexico	Mexico D.F.	Avda. de la Constitucion 2222	(5) 555-4729",
    "ANTON	Antonio Moreno Taquería	Antonio Moreno	Mexico	Mexico D.F.	Mataderos  2312	(5) 555-3932",
    "AROUT	Around the Horn	Thomas Hardy	UK	London	120 Hanover Sq.	(171) 555-7788",
    "BERGS	Berglunds snabbkp	Christina Berglund	Sweden	Lule	Berguvsvgen  8	0921-12 34 65",
    ...(略)
    };

    public void Page_Load(Object sender, EventArgs e) {
     String substr = Request.Params["substr"];
     if(substr==null) return;

     for(int i=0; i<arrCustomer.Length; i++) {
      String s = arrCustomer[i];
      if(s.IndexOf(substr, StringComparison.CurrentCultureIgnoreCase)==-1) continue;
      Response.Write(s + "\r\n");
     }
     Response.ContentType = "text/plain";
     Response.CacheControl="no-cache";
    }
    </script>