private void Page_Load(System.Object sender, System.EventArgs e) { m_refContentApi = new ContentAPI(); m_refMsg = m_refContentApi.EkMsgRef; if (m_refContentApi.RequestInformationRef.IsMembershipUser == 1 || m_refContentApi.RequestInformationRef.UserId == 0) { Response.Redirect(m_refContentApi.ApplicationPath + "reterror.aspx?info=" + Server.UrlEncode(m_refMsg.GetMessage("msg login cms user")), false); return; } localizeDataGrid(); AppName = m_refContentApi.AppName; AppImgPath = m_refContentApi.AppImgPath; AppPath = m_refContentApi.AppPath; StyleSheetJS.Text = m_refStyle.GetClientScript(); AMSToolBar(); if (!(Page.IsPostBack)) { asset_config = m_refContentApi.GetAssetMgtConfigInfo(); PopulateGridData(asset_config); Session["AssetManagementConfigData"] = asset_config; } else { if (! (Session["AssetManagementConfigTable"] == null)) { m_dataTable = (System.Data.DataTable)Session["AssetManagementConfigTable"]; asset_config = (AssetConfigInfo[])Session["AssetManagementConfigData"]; m_dataView = new DataView(m_dataTable); m_dataView.Sort = "TAG"; } } RegisterResources(); }