public string[] GetZipCodes(string prefixText, int count, Dictionary <string, string> contextValues) { string state = contextValues["State"]; string city = contextValues["City"]; return(ZipLookupService.GetZipCodes(prefixText, count, state, city)); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { // In a real-world scalable web site, this data would be cached. StateDropDown.DataSource = ZipLookupService.GetStates(); StateDropDown.DataBind(); } }
public string[] GetCities(string prefixText, int count, Dictionary <string, string> contextValues) { string state = contextValues["State"]; return(ZipLookupService.GetCities(prefixText, count, state)); }