开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜