这个没有trim,
string imgname = this.txt3.Text + this.txt4.Text + ".jpg";
这个trim了,
"update UserInfo set [Xh]='" + txt3.Text.Trim() + "',[Xm]='" + txt4.Text.Trim()
会不会是这个问题。
string imgname = this.txt3.Text + this.txt4.Text + ".jpg";
这个trim了,
"update UserInfo set [Xh]='" + txt3.Text.Trim() + "',[Xm]='" + txt4.Text.Trim()
会不会是这个问题。
在这里设个断点
看看路径有没有什么问题