if (dsWoSerials.Tables.Count > 0)
{
var found = false;
foreach (DataRow row in dsWoSerials.Tables[0].Rows)
{
lstbSerials.Items.Add(row.ItemArray[0].ToString());
ListItem lstitem = lstbSerials.Items.FindByText(txtSerialNumberScan.Text);
if (lstitem != null)
{
found = true;
AddToTree();
break;
}
}
if (!found)
{
fs_userfeedback.InnerHtml = "<p><h1> No Serial Exists at LBLPACK1!</h1></p>";
fs_userfeedback.Style.Add("background-color", "red");
txtSerialNumberScan.Text = "";
txtSerialNumberScan.Focus();
}
}
|