ASP.NET页面回发后保留密码

 protected void Page_Load(object sender, EventArgs e)
        {
            
if (IsPostBack)       
            {
                
if (!(String.IsNullOrEmpty(txtPassword.Text.Trim())))
                {
                    txtPassword.Attributes[
"value"= txtPassword.Text;
                }       
            }
        }

posted on 2010-09-16 11:33  merrick  阅读(114)  评论(0编辑  收藏  举报