sqlstr = "select name as 姓名,content as 内容,time_ as 时间, form table2 where id='" & Request.QueryString ("id") & "'"
adp.SelectCommand.CommandText = sqlstr
adp.SelectCommand.Connection = conn
adp.Fill(ds, "table2")
DataGrid1.DataSource = ds.Tables("table2").DefaultView
DataGrid1.DataBind()
參考答案:sqlstr = "select name as 姓名,content as 内容,time_ as 时间 from table2 where id='" & Request.QueryString ("id") & "'"