<asp:TextBox ID="TextBox1" runat="server" TextMode="Password"></asp:TextBox> this.TextBox1.Attributes.Add("value", "aaa");