while(dr1.HasRows) { dr1.Read(); foreach (var item in ClassMenu.Menues) { if (dr1["menuname"].ToString().Equals(item.ToString())) { MessageBox.Show(item); //here itself I want to enable that submenu to user instead of showing it in message box. } } } DbConnect.con.Close(); dr1.Close(); dr1.Dispose();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)