I generate a password using the method Membership.GeneratePassword(6, 2) from .net framework and setting the RadTextBox
txtPassword.Attributes.Add("value", passwordfgenerated). I want to show in the RadTextBox the asterisks
That works with asp:TextBox but not with RadTextBox
<div class="field-box">
<div class="left-field left-label">
<asp:Label CssClass="right-field" ID="lblPassword" runat="server" Text="Password:"></asp:Label>
<a href="#?w=800" rel="PasswordHelp" class="left-field poplight" tabindex="0"></a>
</div>
<telerik:RadTextBox CssClass="left-field" ID="txtPassword" runat="server" TextMode="Password" MaxLength="20">
</telerik:RadTextBox>
</div>
protected void bnGeneratePassword_Click(object sender, EventArgs e)
{
string passwordGenerated = Membership.GeneratePassword(6, 2);
txtPassword.Attributes.Add("value", passwordGenerated);
}
txtPassword.Attributes.Add("value", passwordfgenerated). I want to show in the RadTextBox the asterisks
That works with asp:TextBox but not with RadTextBox
<div class="field-box">
<div class="left-field left-label">
<asp:Label CssClass="right-field" ID="lblPassword" runat="server" Text="Password:"></asp:Label>
<a href="#?w=800" rel="PasswordHelp" class="left-field poplight" tabindex="0"></a>
</div>
<telerik:RadTextBox CssClass="left-field" ID="txtPassword" runat="server" TextMode="Password" MaxLength="20">
</telerik:RadTextBox>
</div>
protected void bnGeneratePassword_Click(object sender, EventArgs e)
{
string passwordGenerated = Membership.GeneratePassword(6, 2);
txtPassword.Attributes.Add("value", passwordGenerated);
}