4
Answers

Alert Message with condition

Ask a question
Israel

Israel

9y
858
1
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)