if (Convert.ToInt16(txtCount.Text)== 1)
{
MessageBox.Show("It's First Record.", "Info", MessageBoxButtons.OK);
}
else
i = Convert.ToInt32(txtCount.Text); i = i - 1; txtCount.Text = i.ToString();
txtTitle.Text = myTitle[i-1].InnerText; txtFName.Text = myFirstName[i-1].InnerText; txtLName.Text = myLastName[i-1].InnerText; txtPrice.Text = myPrice[i-1].InnerText; } |