Esempio n. 1
0
 private double GetBoxRate()
 {
     if (txtBoxRate.Text.Equals(string.Empty))
     {
         return(Convert.ToDouble(SearchBL.GetDefaultBoxRate(txtZip.Text)));
     }
     else
     {
         try
         {
             return(Convert.ToDouble(txtZip.Text));
         }
         catch
         {
             lblError.Text = "You have entered an invalid value for Box Rate";
             return(0);
         }
     }
 }