I am trying to create a textbox as usercontrol in asp.net c# code behind.
to add some specific feature :
I am using this code for .ascx control :
public TextBoxType Type { set; get; }
public enum TextBoxType
{
String =0,
Email=1,
Password=2,
MultiLine=3,
Numbers=4,
Link=5,
Decimal=6,
}
and to add this control I am using this :
<BS:TextBox runat="server" />
every thing works fine but the problem is with the auto complete of the attribute
<BS:TextBox runat="server" Type=""/>
in the Type attribute I need an auto complete for the values in the enum :
Email - Password ....
How can I do it ?