int[] no = new int[100]; int i = 0; DataTable dt = bl.BL_AutogerateKey(txt_req_form_id.Text); if (dt.Rows.Count == 0) { txt_req_form_id.Text = "1000001"; } else { foreach (DataRow dr in dt.Rows) { no[i] = Convert.ToInt32(dr["FORM_ID"].ToString()); i++; } int auto = no.Max(); txt_req_form_id.Text = "100000" + Convert.ToString(auto + 1);
String str = "select substring(FORM_ID,5,50) as FORM_ID from PREV_REQUEST_TO_RECRUIT"; SqlDataAdapter da = new SqlDataAdapter(str, con); DataSet ds = new DataSet(); da.Fill(ds); DataTable dt = ds.Tables[0]; return dt;
txt_req_form_id.Text = "100000" + Convert.ToString(auto + 1);
txt_req_form_id.Text = Convert.ToString((100000 + auto + 1));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)