protected void zipLookup_Click(object sender, EventArgs e) { lblZips.Text = ""; electiveLocationBasedServices.Service1Client eLpxy = new electiveLocationBasedServices.Service1Client(); try { string cityname = cityName.Text; string statecode = stateCode.Text; string[] zips = eLpxy.location2zip(cityname, statecode); for (int i = 0; i < zips.Length; i++) { lblZips.Text += zips[i] + "<br/>"; } } catch (Exception em) { lblZips.Text = em.Message.ToString(); } }
protected void btn_Invokel2z_Click(object sender, EventArgs e) { lblZipCodes.Text = ""; electiveLocationBasedServices.Service1Client elsPxy = new electiveLocationBasedServices.Service1Client(); string cityName = txtInputCityName.Text.ToString(); string stateCode = txtInputStateCode.Text.ToString(); try { string[] response = elsPxy.location2zip(cityName, stateCode); for (int i = 0; i < response.Length; i++) { lblZipCodes.Text += response[i] + "<br/>"; } } catch (Exception em) { lblZipCodes.Text = em.Message.ToString(); } }