protected bool subProgram(string str) { int i=1; string s11 = "Select bit_indicator,category,subctgry from document_rights where user_id='" + drop_user.SelectedItem.Value + "' and bit_indicator='" + i + "' and category='"+drop_cat.SelectedItem.Value+"' and sub_cat='"+drop_sub_cat.SelectedItem.Value+"'"; SqlDataAdapter ad2 = new SqlDataAdapter(s11, c.getcon()); DataSet ds2 = new DataSet(); ad2.Fill(ds2); if (ds2.Tables[0].Rows.Count != 0) { return true; } else { return false; } }
bit_indicator='" + i + "' and category
i.ToString()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)