public void ssaa(GridView grv1,GridView grv2) { if (RdoYes.Checked == true) { ArrayList da1 = new ArrayList(); ArrayList da2 = new ArrayList(); int a1 = 0, a2 = 0; foreach (GridViewRow row1 in grv1.Rows) { a1 = System.Convert.ToInt32(row1.Cells[2].Text); a2 = System.Convert.ToInt32(row1.Cells[3].Text); da1.Add(a1); da2.Add(a2); foreach ( int ir in da1 ) { foreach (GridViewRow row2 in grv2.Rows) { for (int id = 0; id < ir; id++) { response.write(row1.cells[0].text); } } } } } }
a1 = System.Convert.ToInt32(row1.Cells[2].Text); <br /> a2 = System.Convert.ToInt32(row1.Cells[3].Text);
null
public void ssaa(GridView grv1,GridView grv2) { if (RdoYes.Checked == true) { ArrayList da1 = new ArrayList(); ArrayList da2 = new ArrayList(); int a1 = 0, a2 = 0; foreach (GridViewRow row1 in grv1.Rows) { if(!String.IsNullOrEmpty(System.Convert.ToInt32(row1.Cells[2].Text)) { a1 = System.Convert.ToInt32(row1.Cells[2].Text); } if(!String.IsNullOrEmpty(System.Convert.ToInt32(row1.Cells[3].Text)) { a2 = System.Convert.ToInt32(row1.Cells[3].Text); } da1.Add(a1); da2.Add(a2); foreach ( int ir in da1 ) { foreach (GridViewRow row2 in grv2.Rows) { for (int id = 0; id < ir; id++) { response.write(row1.cells[0].text); } } } } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)