if (Request.QueryString["editnews"] != null)
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
请问下面红色的那行种的editnews参数是从哪里来的呢?找了半天找不到定义。
string userName = Convert.ToString(Session["userName"]);
//=Convert.ToString(Session["qx"]);
if (userName == "")
{
Response.Redirect("index.aspx");
}
if (Request.QueryString["editnews"] != null)
{
int id = Convert.ToInt32(Request.QueryString["editnews"]);
Response.Write(id);
DataSet1.newscontentDataTable ds = dt.GetDataByid(id);
DataSet1.newscontentRow model = ds[0];
this.TextBox1.Text = model.faburen;
this.TextBox2.Text = model.title;
this.pricecontent.Value = model.content;
this.txtpic.Text = model.keywords;
}
}
}