修改页面代码问题
public partial class adminmofiy : System.Web.UI.Page{
protected void Page_Load(object sender, EventArgs e)
{
string str = ConfigurationSettings.AppSettings["dsn"];
SqlConnection cn = new SqlConnection(str);
cn.Open();
int straid = 0;
if (Request.QueryString["aid"] != null)
{
straid = Convert.ToInt32(Request.QueryString["aid"].ToString());
}
else
{
Response.Write("对不起,没有该人员信息");
Response.End();
}
string mysql = "SELECT * FROM admin WHERE (aid =" + straid + ")";
运行起来就显示“对不起,没有该人员信息”