if (quantityAvailableTextBox.Text != null) { p.QuantityAvailable = Convert.ToInt32(quantityAvailableTextBox.Text); } else { }
if (!string.IsNullOrEmpty(quantityAvailableTextBox.Text)) { p.QuantityAvailable = Convert.ToInt32(quantityAvailableTextBox.Text); } else { }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)