哪出错了,修改不过来...?
protected void ImageButton1_Click(object sender, ImageClickEventArgs e){
SqlConnection strcon = new SqlConnection(System.Configuration.ConfigurationManager.AppSettings["strcon"]);
strcon.Open();
string Phone = this.Phone.Text.ToString();
string UserName = this.UserName.Text.ToString();
string Sex = this.Sex.Text.ToString();
string Tel = this.Tel.Text.ToString();
string CidType = this.CidType.Text.ToString();
string Cid = this.Cid.Text.ToString();
string Zip = this.Zip.Text.ToString();
string Addess = this.addess.Text.ToString();
SqlCommand scd = new SqlCommand("update tb_User set Phone='" + Phone + "',UserName='" + UserName + "',Sex='" + Sex + "',Tel='" + Tel + "',CidType='" + CidType + "',Cid='" + Cid + "',Zip='" + Zip + "',Addess='" + Addess + "' where Userid='" + Session["Userid"].ToString() + "'", strcon);
scd.ExecuteNonQuery();
Response.Write("<script lanuage=javascript>alert('修改成功!');location='../Member/ManageMember.aspx'</script>");
}
提交后原数据没办法修改过来.