Esempio n. 1
0
 protected void ATMButton_Click(object sender, EventArgs e)
 {
     if (!ATMZipTextBox.Text.Equals(""))
     {
         DataTable Dataset = LocationDB.FindAtmByZip(ATMZipTextBox.Text);
         if (Dataset.Rows.Count != 0)
         {
             FillTableWithData(Dataset);
             return;
         }
     }
     else
     {
         DataTable Dataset = LocationDB.FindAtmLocationByAddress(ATMAddressTextBox.Text, ATMCityTextBox.Text, ATMStateDropDownList.SelectedValue);
         if (Dataset.Rows.Count != 0)
         {
             FillTableWithData(Dataset);
             return;
         }
     }
     NoLocationFound();
 }