62,268
社区成员
发帖
与我相关
我的任务
分享
//string content = "";
//foreach (DataRow dr in dt.Rows)
//{
// content = Convert.ToString(dr[0]);
//}
this.TB_requre.Text = dt.Rows[0][0].ToString(); // content;
int id = Convert.ToInt32(Request.QueryString["id"]);
int id;
protected void Page_Load(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(Request.QueryString["id"]))
id = Convert.ToInt32(Request.QueryString["id"]);
else
//throw ....
if (!IsPostBack)
{
Bind();
}
}
private void Bind()
{
// int id = Convert.ToInt32(Request.QueryString["id"]);
// other code
}