?TextBox不是有个TextMode属性么,你指定它为password

解决方案 »

  1.   

    是啊, 如果那样设置后, 就不能显示密文了,我的意图是把Password 密文显示, User Login的时候不要再输入Pwd , 如果上次是正确登陆的话。谢谢!
      

  2.   

    你直接设置它的value属性就可以了
    <input type="password" id =aa>
    <input type="button" onclick="document.all.aa.value='12'" value="set">
    <input type="button" onclick="alert(document.all.aa.value)" value="get">
      

  3.   

    如果想保存密码,可以用COOKIE啊,干嘛要这么做。