.net获取不到文本框改变后的值
程序的功能,就是当用户输入正确的用户名和密码后,根据TextChanged事件自动获取用户的其他信息,放在相应的文本框中,当用户更改用户信息,点击保存按钮后,用户的信息会做更改,
可是保存的时候获取的不是修改后的值,而是修改前的值,请问各位这个问题该怎么解决
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Model;
using BLL;
using System.Data;
namespace web
{
public partial class loginSample : System.Web.UI.Page
{
Btransport btr = new Btransport();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (null != Request.Cookies["sample_username"])
{
HttpCookie icookie = Request.Cookies["sample_username"];
icookie.Expires = DateTime.Now.AddMilliseconds(100);
Response.Cookies.Add(icookie);
}
ClientScript.RegisterStartupScript(this.GetType(), "myscript", "<script type='text/javascript'>setStyle();</script>");
}
}
protected void uSaveButton_Click(object sender, EventArgs e)
{
yp_user luser = new yp_user();
luser.User_name = mName.Text;
luser.User_client_name = mClientName.Text;
luser.User_clientcompany = mClientCompany.Text;
luser.User_projectphone = mProjectPhone.Text;
luser.User_projectemail = mProjectEmail.Text;
if (mNewPwd.Text.Length > 1)
{
luser.User_pwd = mNewPwd.Text;
&nbs