62,074
社区成员
发帖
与我相关
我的任务
分享
public void ControlLoad()
{
int isAdd = Convert.ToInt32(Request.QueryString["isAdd"].ToString());
if (isAdd.Equals(2))
{
int n_id = Convert.ToInt32(Request.QueryString["n_id"].ToString());
BaseQuery query = new BaseQuery();
string strSql = string.Format("select n_id,n_name,n_gut from t_novel where n_id={0}", n_id);
DataTable tabNovel = query.GetInfo(strSql, true);
//为TextBox赋值
this.txtNovelName.Text = tabNovel.Rows[0][1].ToString();
this.txtGut.Text = tabNovel.Rows[0][2].ToString();
}
}