| |
Sign In
[WebService(Namespace = "http://whatever")][ScriptService]public class AjaxService : System.Web.Services.WebService{
[WebMethod]public string[] GetList(string prefixText, int count)
IEnumerable<string> ds = from r in MyDataBase.Restaurants where r.RestaurantName.Contains(prefixText) select (r.RestaurantName + "," + r.Address1 + "," + r.County); // join the name + address in a stringstring[] results = ds.ToArray<string>();return results;
<div id="AutoComplete" runat="server"> </div>
#AutoComplete{ width: auto !important; overflow: visible !important;}#AutoComplete div{ font-size: x-small !important; }
border: 1px solid buttonshadow; overflow: hidden; visibility: visible; background-color: window; color: windowtext; cursor: default; width: 130px; position: absolute; left: 184px; top: 27px; display: inline;
You can override whichever ones you want by applying the !important attribute inside the #AutoComplete entry in the style sheet. The individual items then can also be styled via the #AutoComplete div entry, i prefered a slightly smaller font size because the default setting looked too big.
Remember Me