Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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 :

C#
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 :

C#
<BS:TextBox  runat="server" />


every thing works fine but the problem is with the auto complete of the attribute

C#
<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 ?
Posted

1 solution

 
Share this answer
 
Comments
ENG.Samy Sammour 22-Feb-15 20:23pm    
I dont want value autocomplete after running the website.

i want autocomplete for the attribute on programming level

like when you write :

<asp:TextBox runat="server" TextMode="" ...

between the "" the visual studio will show you three option : multiline - single line - password

thats the option I want
Sergey Alexandrovich Kryukov 22-Feb-15 23:24pm    
In all cases autocomplete is autocomplete, nothing like "after running the website" (what would it possibly mean?)...
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900