文本框的值在页面加载时更改为null [英] Text box value is changing as null on page load

查看:78
本文介绍了文本框的值在页面加载时更改为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!


这篇关于文本框的值在页面加载时更改为null的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆