回发密码字段 [英] Postback Password fields

查看:78
本文介绍了回发密码字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个密码字段。

I have a password field.

<div class="form_txt">Password <span class="red">*</span></div>
                        <div class="txt_bx">
                            <asp:TextBox ID="txtPwd" runat="server" TextMode="Password" Height="28px" Width="352px"

                            BorderColor="#C9CACA" BorderStyle="Solid" BorderWidth="1px" BackColor="White">
                            </asp:TextBox>
                        </div>







填写密码后页面回发时,密码值将从密码字段中删除。如何解决这个问题




after filling the password when the page is postback the value erases from the password filed. How to overcome this problem

推荐答案

你可以使用更新面板作为choudhary.sumit,或者你可以使用代码

You can use Update panel as choudhary.sumit as mentioned or you can use the code
txtPwd.Attributes["value"] = txtPwd.Text;

在页面加载中但不推荐使用,因为文本框中的值变为可见。

in the page load but it is not recommended as the value in the text box becomes visible.


它会对你有帮助。

使用更新面板 [ ^ ]
it will help you.
Use of update panel [^]


这篇关于回发密码字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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