文本框的值在页面加载时更改为null

问题描述:

当我单击更新"按钮时,在填写密码并确认密码字段后,在我的用户帐户创建页面中,文本框值更改为null,因此我无法正确更新密码.天气我想念什么吗?

谢谢.

In my User account creation page after filling the password and confirm password field when I''m clicking the Update button Textbox values are changing to null and so I''m not able to update the vaues correctly. Weather I''m missing something?

Thank You.

查看页面加载事件处理程序.您是否检查IsPostBack? MSDN [
Look in your page load event handler. Do you check IsPostBack? MSDN[^]

If you don''t, and your Load event sets any value into these fields, then they will get reset every time you press a button!