Question and answer is powered by AnsPress.io
<asp:TextBox ID=”RegPassword” placeholder=”Enter your password” CssClass=”form-control” runat=”server” ClientIDMode=”Static”></asp:TextBox>
This is my password field control.But I can not set it as password field.How can I do this?
This is very simple.Inside code behind add this inside page load function.
protected void Page_Load(object sender, EventArgs e) { RegPassword.Attributes["type"] = "password"; }