private void Page_Load(object sender, System.EventArgs e)
{
BindDropDownList();
userid=Request.QueryString["UserID"];
string str;
str="select * from user,dep where user.dep_id=dep.dep_id";
if(!IsPostBack) //不加这句以后肯定出错
{
BindList(userid,str);
}
}
select * from user
===================
select * from [user]
你的程序改起来太累了
{
BindDropDownList();
userid=Request.QueryString["UserID"];
string str;
str="select * from user,dep where user.dep_id=dep.dep_id";
if(!IsPostBack) //不加这句以后肯定出错
{
BindList(userid,str);
}
}
select * from user
===================
select * from [user]
你的程序改起来太累了
事件内容为取DataList行的内容赋给txtbox
我的datalist中只有编号和姓名两个字段,而要取DataList行的内容赋给txtbox,txtbox中还有其他字段啊
001 李霞
其右边的表格:编号 001(txtbox) 姓名 李霞(txtbox)
性别 女(txtbox)...
......
...