protected void chckdavail_Click(object sender, EventArgs e) { foreach (GridViewRow gvr in show_moreDetails.Rows) { int data1 = Convert.ToInt32(gvr.Cells[7].Text); int data2 = Convert.ToInt32(gvr.Cells[8].Text); int data3 = Convert.ToInt32(gvr.Cells[9].Text); int data4 = Convert.ToInt32(gvr.Cells[10].Text); ClsPDF obj1 = new ClsPDF(); int returnstatus = 0; returnstatus = Convert.ToInt32(obj1.productcheck(10, data3, data1, data2,data4)); if (returnstatus == 1) { lbldavail.Visible = true; lbldavail.Text = "Available"; lbldavail.ForeColor = System.Drawing.Color.Red; } else if (returnstatus == 2) { lbldavail.Text = "Not Available"; lbldavail.ForeColor = System.Drawing.Color.Green; lbldavail.Visible = true; } } }
productcheck
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)