摘要:
<asp:TextBox ID="txt_user_pwd" runat="server" TextMode="Password" Width="150">123456</asp:TextBox>直接按照上面的写文本框是不会有默认设置的密码“123456”的,需要在cs后台文件中添加:protected void Page_Load(object sender, EventArgs e) { txt_user_pwd.Attributes["value"] = " 阅读全文