How to create a multi value textbox?
I would like to create a multi value te开发者_StackOverflow中文版xt box in asp.net for tagging like stack overflow ?
So please let me know how Can I do that ?
Thanks, Laxmilal
Set TextMode
to "MultiLine"
<asp:TextBox ID="Comment"
TextMode="MultiLine"
Columns="50"
Rows="5"
runat="server"/>
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.textbox.textmode.aspx
You can google for 'Javascript Tag Control' in order to find javascript implementations that may be closer to what you need.
If I'm understand correctly you need an autocomplete control. The most easiest way is to utilize the AutoCompleteExtender from the AjaxControlToolkit: AutoCompleteExtender Also if you are experienced in jQuery and Ajax you may use a jQuery autocomplete plugin like this one: Plugins/Autocomplete
精彩评论