- 分享
- 0
- 人气
- 0
- 主题
- 178
- 帖子
- 1195
- UID
- 228672
- 积分
- 5358
- 阅读权限
- 22
- 注册时间
- 2009-5-19
- 最后登录
- 2016-7-11
- 在线时间
- 10505 小时
  
|
protected void Button1_Click(object sender, EventArgs e)
{
int tempAdminIDN = Int32.Parse(Request["id"].ToString());
string loginid = TextBox1.Text.Trim().Replace("'", "''");
string password = TextBox2.Text.Trim().Replace("'", "''");
string name = TextBox3.Text.Trim().Replace("'", "''");
string email = TextBox4.Text.Trim().Replace("'", "''");
if (dal.tblAdmin_UpdateByIDN(tempAdminIDN,loginid,password,name,email)==true)
{
Response.Redirect("adminlisting.aspx");
}
}
当我按button click的时候我的textbox trim不到我已经改了的字 他一直就是拿回没改好的字去update...弄了很久弄不到=.=
我试过如果我直接string loginid = "blablabla" 他就update得到=.= 请各位大大帮帮忙 |
|