<asp:textbox id="tboxPsw" runat="server" TextMode="Password" Width="170px"></asp:textbox>
答2:tboxPsw.Attributes.Add("value","12343");