Example #1
0
 private void Bind()
 {
     EnuminfoBLL dal = new EnuminfoBLL();
     GridView.DataSource = dal.GetList(SlnID);
     GridView.DataBind();
 }
Example #2
0
 public static Hashtable LoadEnumApplication(int slnid, bool clean)
 {
     if (System.Web.HttpContext.Current.Application[slnid.ToString()] == null || clean)
     {
         Hashtable ht = new Hashtable();
         EnuminfoBLL dal = new EnuminfoBLL();
         DataTable dt = dal.GetList(slnid).Tables[0];
         foreach (DataRow dr in dt.Rows)
         {
             string key = "【" + dr["enumName"].ToString() + "】";
             if (!ht.Contains(key))
             {
                 ht.Add(key, string.Format("{0}\n\n{1}", dr["enumDescription"].ToString(),
                     dr["enumValueInfo"].ToString()));
             }
         }
         System.Web.HttpContext.Current.Application[slnid.ToString()] = ht;
         return ht;
     }
     else
     {
         return (Hashtable)System.Web.HttpContext.Current.Application[slnid.ToString()];
     }
 }