Auto Complete Ajax Control
Ever wonder how to auto complete your textbox with the data in your database....? Well you can use the cumbersome ajax code or simply use the .net ajax toolkit controll. Here is how you can use it.... (Before starting make sure you installed the ajax tool kit package in your visual studio) 1. Add a textbox on your page 2. Add the 'AutoComplete' Extender from the smart tag. 3. Add a script manager any where above it. 4.Again in the smart tag click the 'Add autocomplete page method' a new web method in the .cs(code source page) page will appear. we can use that method as given in the below example. eg: [System.Web.Services.WebMethodAttribute(), System.Web.Script.Services.ScriptMethodAttribute()] public static string[] GetCompletionList(string prefixText, int count, string contextKey) { List<string> name = new List<string>(); Strin...