Esempio n. 1
0
 private void GetCategoryes()
 {
     try
     {
         string           Ocode      = Convert.ToString(((SessionUser)Session["SessionUser"]).OCode);
         List <RCategory> categoryes = categoryBll.CategoryesForgridview(Ocode).ToList();
         if (categoryes.Count > 0)
         {
             gridviewCategory.DataSource = categoryes;
             gridviewCategory.DataBind();
         }
     }
     catch (Exception)
     {
         throw;
     }
 }