//-------------------------------------------------------- #endregion public void LoadDataList(DataList dl, List <UsersDataEntity> usersDataList) { if (usersDataList != null && usersDataList.Count > 0) { dl.DataSource = usersDataList; dl.DataBind(); dl.Visible = true; if (totalRecords > pager.PageSize) { pager.Visible = true; trPagerContainer.Visible = true; pager.TotalRecords = totalRecords; PagerManager.PrepareUserPager(pager); } else { pager.TotalRecords = totalRecords; pager.Visible = false; trPagerContainer.Visible = false; } lblResult.Visible = false; } else { /* * dl.Visible = false; * pager.Visible = false; * trPagerContainer.Visible = false; * lblResult.CssClass = "lblResult_Faild"; * lblResult.Text = DynamicResource.GetText("AdminText", "ThereIsNoData"); * lblResult.Visible = true;*/ this.Visible = false; } }
//----------------------------------------------- //Page_Load //----------------------------------------------- private void Page_Load(object sender, System.EventArgs e) { currentModule = MessagesModuleOptions.GetType(ModuleTypeID); lblResult.Text = ""; if (!IsPostBack) { PagerManager.PrepareAdminPager(pager); pager.Visible = false; HandelControls(); SetTexts(); LoadData(); //----------------------------------------------------- if (currentModule.HasTitle) { dgMessages.Columns[1].Visible = true; dgMessages.Columns[3].Visible = false; } else { dgMessages.Columns[1].Visible = false; dgMessages.Columns[3].Visible = true; } dgMessages.Columns[7].Visible = currentModule.HasComments; dgMessages.Columns[8].Visible = currentModule.HasComments; //----------------------------------------------------- } }
//-------------------------------------------------------- #endregion #region --------------LoadRepeater-------------- //--------------------------------------------------------- //LoadRepeater //--------------------------------------------------------- public void LoadRepeater(Repeater r, List <ItemCategoriesEntity> categoriesList) { if (categoriesList != null && categoriesList.Count > 0) { r.DataSource = categoriesList; r.DataBind(); r.Visible = true; if (totalRecords > pager.PageSize) { pager.Visible = true; trPagerContainer.Visible = true; pager.TotalRecords = totalRecords; PagerManager.PrepareUserPager(pager); } else { pager.TotalRecords = totalRecords; pager.Visible = false; trPagerContainer.Visible = false; } lblResult.Visible = false; } else { /* * r.Visible = false; * pager.Visible = false; * trPagerContainer.Visible = false; * lblResult.CssClass = "lblResult_Faild"; * lblResult.Text = DynamicResource.GetText("AdminText", "ThereIsNoData"); * lblResult.Visible = true;*/ this.Visible = false; } }
//----------------------------------------------- //Page_Load //----------------------------------------------- private void Page_Load(object sender, System.EventArgs e) { lblResult.Text = ""; if (!IsPostBack) { this.Page.Title = "ãæÏíæáÇÊ ÇáÚÑÖ"; PagerManager.PrepareAdminPager(pager); pager.Visible = false; LoadData(); } }
//----------------------------------------------- //Page_Load //----------------------------------------------- private void Page_Load(object sender, System.EventArgs e) { lblResult.Text = ""; if (!IsPostBack) { PagerManager.PrepareAdminPager(pager); pager.Visible = false; SetTexts(); LoadData(); } }
//------------------------------------------ #endregion #region ---------------Page_Load--------------- //----------------------------------------------- //Page_Load //----------------------------------------------- private void Page_Load(object sender, System.EventArgs e) { lblResult.Text = ""; if (!IsPostBack) { //SiteOptions.CheckModuleWithHandling(Resources.SiteOptions.HasComments, UsersTypes.Admin); PagerManager.PrepareAdminPager(pager); pager.Visible = false; HandleOptionalControls(); LoadData(); } }
//----------------------------------------------- //Page_Load //----------------------------------------------- private void Page_Load(object sender, System.EventArgs e) { lblResult.Text = ""; if (!IsPostBack) { this.Page.Title = Resources.Cities.CitiesModuleTitle; PagerManager.PrepareAdminPager(pager); pager.Visible = false; HandelControls(); LoadCountries(); LoadData(); } }
//------------------------------------------------------- #region ---------------Page_Load--------------- //----------------------------------------------- //Page_Load //----------------------------------------------- private void Page_Load(object sender, System.EventArgs e) { currentModule = UsersDataGlobalOptions.GetType(ModuleTypeID); lblResult.Text = ""; if (!IsPostBack) { PagerManager.PrepareAdminPager(pager); pager.Visible = false; HandelControls(); SetTexts(); LoadData(); } }
//------------------------------------------ #endregion #region ---------------Page_Load--------------- //----------------------------------------------- //Page_Load //----------------------------------------------- private void Page_Load(object sender, System.EventArgs e) { lblResult.Text = ""; if (!IsPostBack) { Load_ddlAdvPlaces(); if (pager != null) { PagerManager.PrepareAdminPager(pager); pager.Visible = false; } HandelControls(); LoadData(); } }
//------------------------------------------------------- #region ---------------Page_Load--------------- //----------------------------------------------- //Page_Load //----------------------------------------------- private void Page_Load(object sender, System.EventArgs e) { currentModule = UsersDataGlobalOptions.GetType(ModuleTypeID); siteUrls = DCSiteUrls.Instance; //------------------------------------------------- //Prepaare user control CatchControls(); Prepare(); //------------------------------------------------- lblResult.Text = ""; if (!IsPostBack) { PagerManager.PrepareUserPager(pager); pager.Visible = false; LoadData(); } }
//----------------------------------------------- //Page_Load //----------------------------------------------- public void Page_Load(object sender, System.EventArgs e) { //--------------------------------------------- currentModule = ItemsModulesOptions.GetType(ModuleTypeID); siteUrls = DCSiteUrls.Instance; //------------------------------------------------- //Prepaare user control CatchControls(); Prepare(); //------------------------------------------------- if (!IsPostBack) { PagerManager.PrepareUserPager(pager); pager.Visible = false; trPagerContainer.Visible = false; LoadData(); } }
//----------------------------------------------- //Page_Load //----------------------------------------------- private void Page_Load(object sender, System.EventArgs e) { currentModule = ItemsModulesOptions.GetType(ModuleTypeID); lblResult.Text = ""; if (!IsPostBack) { PagerManager.PrepareAdminPager(pager); pager.Visible = false; HandleOptionalControls(); SetTexts(); LoadData(); dgItems.Columns[1].Visible = currentModule.HasTitle; dgItems.Columns[5].Visible = currentModule.HasMultiPhotos; dgItems.Columns[6].Visible = currentModule.HasComments; dgItems.Columns[7].Visible = currentModule.HasComments; dgItems.Columns[8].Visible = currentModule.HasMessages; dgItems.Columns[9].Visible = currentModule.HasMessages; } }
//----------------------------------------------------------- #region ---------------FirstLoad--------------- //----------------------------------------------- //FirstLoad //----------------------------------------------- public void FirstLoad() { PagerManager.PrepareUserPager(pager); pager.Visible = false; LoadData(); }
protected internal BaseDataProvider(string connectionString) { m_connectionString = connectionString; m_database = new DbHelper(connectionString); m_pagerHelper = new PagerManager(m_database); }
protected internal BaseDataProvider(DbHelper database) { m_database = database; m_connectionString = database.ConnectionString; m_pagerHelper = new PagerManager(m_database); }