string msg = "";
if (comBoxToLocations.SelectedValue.ToString() != "-1" && comBoxToLocations.SelectedValue.ToString() != "3")
{
ToID = Convert.ToInt32(comBoxToLocations.SelectedValue.ToString());
}
else
{
if (comBoxToLocations.SelectedValue.ToString() == "-1")
{
msg += "You must select a location to send to\r\n";
}
if (comBoxToLocations.SelectedValue.ToString() == "3")
{
msg += "Location cannot be Unknown\r\n";
}
}
if (cmboCarrier.SelectedValue.ToString() != "-1")
{
carrierID = Convert.ToInt32(cmboCarrier.SelectedValue.ToString());
}
else
{
msg += "You must select a carrier\r\n";
}
if (string.IsNullOrEmpty(trackingNumber))
{
msg += "You must enter a tracking number\r\n";
}
if (expecteddate == today)
{
msg += "Your Expected arrival date is too short\r\n";
}
if (msg != "")
{
MessageBox.Show(msg);
return;
}
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.
Our community of experts have been thoroughly vetted for their expertise and industry experience.