Tom Knowlton
asked on
autocomplete in derived textbox
If I have a custom control that derives from textbox, how would I ensure that autocomplete is turned off?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI.WebControls;
//Taken from
//
//http://www.codeproject.com/KB/custom-controls/ASPNET_Password_TextBox.aspx
namespace Campus_Webstore
{
public class PasswordTextBox : TextBox
{
public PasswordTextBox()
{
TextMode = TextBoxMode.Password;
}
public override string Text
{
get
{
return base.Text;
}
set
{
base.Text = value;
Attributes["value"] = value;
}
}
protected override void OnPreRender(EventArgs e)
{
base.OnPreRender(e);
Attributes["value"] = Text;
}
}
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks!