string intID=Request["ID"]; if (intID==""){ intID="0"; } SqlConnection Conn = new SqlConnection(Connstr); SqlDataAdapter SqlDA = new SqlDataAdapter("select top 1 ID,Title,WebUrl,HotKey from Web_Content where ID="+intID+" Order by IndexID asc",Conn);
DataSet ds = new DataSet(); SqlDA.Fill(ds, "Web_Content"); DataRow dr;
{
string intID=Request["ID"];
if (intID==""){
intID="0";
}
SqlConnection Conn = new SqlConnection(Connstr);
SqlDataAdapter SqlDA = new SqlDataAdapter("select top 1 ID,Title,WebUrl,HotKey from Web_Content where ID="+intID+" Order by IndexID asc",Conn);
DataSet ds = new DataSet();
SqlDA.Fill(ds, "Web_Content");
DataRow dr;
ddlType.Items.FindByText("请选择").Selected = true;
txtTitle.Text=dr["Title"];
//txtTitle.Text="您好";
txtWebUrl.Text="测试";
}以上代码出错在哪里