asp.net一个问题哈!

2025-03-22 05:10:58
推荐回答(3个)
回答1:

protected void Page_Load(object sender, EventArgs e)
{
string text = "
地区:
";
Response.Write(text);
}

回答2:

protected void DeptBind(BaseDataList dataList)
{
DataTable AllDept = db.Select("select Group_sCaption,Group_sKey from User", "Conn_oamanager");
dataList.DataSource = AllDept;
dataList.DataTextField = "Group_sCaption";
dataList.DataValueField = "Group_sKey";
dataList.DataBind();
}

用法DeptBind(this.DataList1);

回答3:

写不清楚到底想要实现什么功能,
如果很多一模一样的就直接写成用户控件,
何必那么麻烦呢