日期:2014-05-18 浏览次数:20999 次
private void initControls() { if (RightsManagement.isUserAllowed("mkt_team") == false) { LabelMsg.CssClass = "ErrorMessageStyle"; LabelMsg.Text = Resources.CR.AccessNotAllowed; LabelMsg.Visible = true; UpdatePanelMsg.Update(); PanelPage.Visible = false; } else { /*** Sets the VarSession ***/ DataTable tableSite = new DataTable(); tableSite = manageSessionVarTableSite(); } } private void manageSessionVarTableSite() { if (SessionManagement.GetVarSession(WebCtrlUtil.GetHiddenFieldWinIndex(this), "TableSite") == null) { DataTable tableSite = new DataTable(); SiteCtrl.getSiteList(tableSite); tableSite.PrimaryKey = new DataColumn[] { tableSite.Columns["id_site"] }; SessionManagement.SetVarSession(WebCtrlUtil.GetHiddenFieldWinIndex(this), "TableSite", tableSite); return tableSite; } else { return (DataTable)SessionManagement.GetVarSession(WebCtrlUtil.GetHiddenFieldWinIndex(this), "TableSite"); } }