这样做
<asp:TemplateField HeaderText="查看信息">
<itemtemplate>
<A href='CaseData.aspx?id=<%#Eval("ID")%>'><img src="../Common/Image/i_view.gif" border="0" /></A>
</itemtemplate>
在CaseData.aspx页面中
string id;
if (Request.QueryString["id"] != null)
{
id = Request.QueryString["id"].ToString();
SqlCommand cmd = new SqlCommand("select News from PatientMsg where ID='" +id+ "'", con);
SqlDataReader reader = cmd.ExecuteReader();
reader.Read();
if (this.News.Text != null)
{
this.News.Text = reader["News"].ToString();
}
}
不知道这样做你满不满意