protected void btnRemoveAll_Click(object sender, EventArgs e)
 {
     DataCaching data = new DataCaching();
     foreach (ListItem item in lstAllCache.Items)
        data.RemoveCache(item.Text);
        lstAllCache.DataBind();
     lblUpdateStatus.Text = MiscUtility.MSG_UPDATE_SUCCESS;
 }
Exemplo n.º 2
0
 public static PhongBanInfo GetInfoCache(int _id)
 {
     string param = "PhongBanInfo_" + _id;
     DataCaching data = new DataCaching();
     PhongBanInfo infoPhong = (PhongBanInfo)data.GetHashCache(key, param);
     if (infoPhong != null) return infoPhong;
     infoPhong = DataAccessProvider.Instance().GetInfoPhong(_id);
     data.SetHashCache(key, param, AppEnv.GetTimeCacheExpire(), infoPhong);
     return infoPhong;
 }
Exemplo n.º 3
0
 protected void btnViet_Click(object sender, EventArgs e)
 {
     AppEnv.SetLanguage("vi-VN");
     string curUrl = Request.RawUrl;
     string newUrl = string.Empty;
     if (curUrl.IndexOf("&lang") > -1)
         newUrl = curUrl.Substring(0, curUrl.IndexOf("&lang"));
     else if (curUrl.IndexOf("?lang") > -1)
         newUrl = curUrl.Substring(0, curUrl.IndexOf("?lang"));
     else
         newUrl = curUrl;
     DataCaching data = new DataCaching();
     data.RemoveCache("VmgPortal.Portal.Command");
     Response.Redirect(newUrl);
 }