摘要:
private void Page_Load(object sender, System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
SqlConnection conn= new SqlConnection();
conn.ConnectionString = "user id=sa;password=43572950;initial catalog=GuestBook;Data Source=ZHAN;connect Timeout=20";
conn.Open();
string sql;
sql="select * from GuestBook where GID="+Request.QueryString["GID"]+"";
SqlDataAdapter comm=new SqlDataAdapter(sql,conn);
DataSet ds=new DataSet();
comm.Fill(ds, 阅读全文
posted @ 2006-07-08 17:40 allonkwok 阅读(248) 评论(0) 推荐(0) 编辑