I have a TextBox and I have Datatable. I give TextBox Suggetions with Datatable. So when we enter key it gives suggetions for keys typed .Now what I want is user shoud not type key if it is not in datatable.
For Example
I have datatable with keywords of abc,abd,abe,abe . So user can type ‘ab’ in textbox but not ‘ac’ because ac is not in datatable.Is it possible??
You could use the AJAX control Toolkit’s – Filtered Textbox:
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/FilteredTextBox/FilteredTextBox.aspx
In the code-behind: you could read the data and specify the ValidChars property.
You could also use the AutoComplete extender to get the suggestions:
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/AutoComplete/AutoComplete.aspx