for (int i = 0; i < GridView2.Rows.Count; i++) { if (GridView2.Rows[i].Cells[11].Text==concat) { Label22.Visible = true; goto No; } else { break; } }
Label22.Visible = false; helper.InsertPlannedMaterialMasterRequest2(TextBox1.Text, TextBox2.Text, TextBox3.Text, TextBox6.Text, DropDownList2.SelectedValue, DropDownList3.SelectedValue, Convert.ToInt32(TextBox11.Text), DropDownList5.SelectedValue, Convert.ToInt32(DropDownList4.SelectedValue), Convert.ToInt32(TextBox13.Text), DropDownList6.SelectedValue,department, DateTime.Now,concat); LoadMasterRequests(); LoadDetailRequests(); LoadItems(); BindData(); BindData2(); BindData3(); goto d; No: Label22.Visible = true; d: TextBox6.Text = ""; TextBox7.Text = ""; TextBox11.Text = ""; TextBox13.Text = "";
if (GridView2.Rows[i].Cells[11].Text==concat) { Label22.Visible = true; goto No; } else { break; // Problem here }
goto
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)