c# - Is there other way to hide the password in textbox (***) aside from textboxmode="password"? -
it seems if use textmode="password"
it changes size of textbox , placeholder text style. doesn't match other textboxes made. although work me, curious if there way make happen avoid ruining design. thanks!
<div class="form-group" style= "float:left"> <asp:textbox id="txtpw" runat="server" name="form-password-name" width="200px" placeholder="password..." class="form-password form-control" textmode="password"></asp:textbox> <asp:regularexpressionvalidator id="regularexpressionvalidator6" runat="server" errormessage="only letters , numbers allowed" display="dynamic" controltovalidate="txtpw" forecolor="red" validationexpression="^[a-za-z0-9]+$"> </asp:regularexpressionvalidator> <asp:requiredfieldvalidator id="requiredfieldvalidator5" runat="server" errormessage="password required." controltovalidate="txtpw" display="dynamic" forecolor="red"> </asp:requiredfieldvalidator> </div>
you can use regular html textbox:
<input type="password" name="form-password-name" id="txtpw" class="form-password form-control"/>
Comments
Post a Comment