public static void IncludeCalendarCSS(CommonLib.ProjectSection curSection) { try { string strVirtualRootPath = ""; if (curSection == CommonLib.ProjectSection.Admin) { strVirtualRootPath = CommonLib.Constants.AdminURL; } else { strVirtualRootPath = CommonLib.Constants.SiteURL; } CommonLib.CurrentPage.LinkCSS(strVirtualRootPath + "Css/Calendar.css"); } catch (System.Exception ex) { CommonLib.ExceptionHandler.WriteLog(CommonLib.Sections.BLL, "", ex); } finally { } }
public static void IncludeGoodiesCalendarCSSAndJS(CommonLib.ProjectSection curSection) { try { string strVirtualRootPath = ""; if (curSection == CommonLib.ProjectSection.Admin) { strVirtualRootPath = CommonLib.Constants.AdminURL; } else { strVirtualRootPath = CommonLib.Constants.SiteURL; } CommonLib.CurrentPage.IncludeScript(strVirtualRootPath + "dhtmlgoodies_calendar/dhtmlgoodies_calendar.js?random=20060118"); CommonLib.CurrentPage.LinkCSS(strVirtualRootPath + "dhtmlgoodies_calendar/dhtmlgoodies_calendar.css?random=20060118"); } catch (System.Exception ex) { CommonLib.ExceptionHandler.WriteLog(CommonLib.Sections.BLL, "", ex); } finally { } }