protected void btnDownloadZip_Click(object sender, EventArgs e) { try { if (lsLicenseDetail != null && lsLicenseDetail.Count > 0) { BLL.LicenseBiz LBIZ = new BLL.LicenseBiz(); var res = LBIZ.GenZipFileLicenseByIdCardNo(lsLicenseDetail, base.UserProfile.LoginName); if (res.IsError) { UCModalError.ShowMessageError = res.ErrorMsg; UCModalError.ShowModalError(); } else { lsLicenseDetail = null; PageCheckAll = null; InitDataToGrid(); String dirZip = res.DataResponse; Response.Redirect(LinkRedirect(dirZip), true); } } else { InitDataToGrid(); UCModalError.ShowMessageError = "กรุณาเลือกรายการ"; UCModalError.ShowModalError(); } } catch (Exception ex) { UCModalError.ShowMessageError = ex.Message; UCModalError.ShowModalError(); } }