Israel

Israel

  • 693
  • 1.3k
  • 219.4k

Alert Message with condition

Dec 5 2014 7:59 AM
Hi!


I need to receive always this alert message that says: "you limit is passed".
I write this code just now and when I make substraction. I need when the result is "egal" or "more than" 6000 km its should say that alert message in top: 

if (string.IsNullOrEmpty(lastKM.Text))
            {
                return;
            }
            double lastKM;
            double recenteKM;
            double ResultKms;
           lastKM= Convert.ToDouble(txtlastKM.Text);
           recenteKM= Convert.ToDouble(txtrecenteKM.Text);
            ResultKms = lastKM- recenteKM;
            lblResultKms.Text = ResultKms.ToString();
        }


Answers (4)