Monthly Archives: April 2007

Password Retrival into password text box

We can do this using txtPassword.Attributes.Add(“value”, ds.Table.Rows.Item(0).Item(“password”))Happy programming Advertisements

ASP.NET Password TextBox

To restore the value of Password TextBox after a postback, the value is retrieved in the OnPreRender-Event and set via the “value” attribute …you can simply create a ‘PreRender’ event for the textbox as follows:// Wire up the event handlers private void InitializeComponent() { this.Password.PreRender += new System.EventHandler(this.Password_PreRender); } /// <summary>Re-populate the ‘Password’ field on […]