How Attributes RadTextBox TextMode="Password" after postBack
I want to help solve this problem
.aspx
<form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> <div> <asp:Label ID="Label1" runat="server" Text="Passwoed TextBox"></asp:Label> <br /> <asp:TextBox ID="TextBox1" runat="server" TextMode="Password"></asp:TextBox> <br /> <br /> <asp:Label ID="Label2" runat="server" Text="Passwoed radtextbox"></asp:Label> <br /> <telerik:radtextbox runat="server" ID="radtextbox1" TextMode="Password" Skin="Bootstrap"></telerik:radtextbox> <br /> <br /> <asp:Button ID="Button1" runat="server" Text="Button" /> </div> </form>
.vb
If Me.IsPostBack Then radtextbox1.Attributes("value") = radtextbox1.Text.Trim() 'not work 'TextBox1.Attributes("value") = TextBox1.Text 'this work TextBox1.Attributes.Add("value", TextBox1.Text.Trim()) 'this workEnd If