1. 连接数据库
context.Response.ContentType = "text/html";
string id = context.Request["acount"];
DataTable table =
MySqlHelper.ExecuteQuery("select * from Person where ID=@id", new SqlParameter("id", id));
if(table.Rows.Count<=0)
{
OutputHtmlStart();
context.Response.Write("不存在此id");
OutputHtmlEnd();
}
OutputHtmlStart();
DataRow row = table.Rows[0];
string name = row["Name"].ToString();
string age = row["Age"].ToString();
string sex = row["Sex"].ToString();
context.Response.Write("<table><tr><td>姓名:<td><td>" + name + "</td><td>年龄:<td><td>&#