Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Advanced ASPX GridView Pagination and Data Entities

, 14 Feb 2013 CPOL
ASP.NET based software system skeleton that uses the ASPX GridView control and advanced pagination for displaying a list of data entities loaded from the database, and the ASP.NET AJAX ModalPopupExtender control for creating new entities or for editing entities from the grid.
RaGridView.zip
RaGridView.bak
RaGridViewDatabase.zip
RaGridView.bak
RaGridViewSourceCode.zip
CreateEventLogEntry
Properties
Ra.GridView.Data
DataModel.edmx
Properties
Ra.GridView.Util
Properties
RaGridView
bin
AjaxControlToolkit.dll
Data
Diagrams
GuiClassDiagram.cd
Global.asax
Images
Add.gif
Delete.gif
Edit.gif
Header.png
obj
Debug
TempPE
Properties
RaGridView.csproj.user
Scripts
Styles
Images
crossIcon.png
titlebarBack.jpg
#region Copyright (c) 2010 Raul Iloc
/*
{***************************************************************************}
{                                                                           }
{       Copyright (c) 2010  RAUL ILOC (rauliloc@yahoo.com)                  }
{       ALL RIGHTS RESERVED                                                 }
{                                                                           }
{   THE WORK IS PROVIDED UNDER THE TERMS OF THIS CODE PROJECT OPEN LICENSE. }
{   THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW.         }
{   ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE         }
{   OR COPYRIGHT LAW IS PROHIBITED.                                         }
{                                                                           }
{                                                                           }
{  BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HEREIN, YOU ACCEPT AND     }
{  AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. THE AUTHOR GRANTS YOU    }
{  THE RIGHTS CONTAINED HEREIN IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH  }
{  TERMS AND CONDITIONS. IF YOU DO NOT AGREE TO ACCEPT AND BE BOUND BY THE  }
{  TERMS OF THIS LICENSE, YOU CANNOT MAKE ANY USE OF THE WORK.              }
{                                                                           }
{***************************************************************************}
*/
#endregion Copyright (c) 2010 Raul Iloc

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Objects;
using System.IO;
using System.Web.UI;
using System.Data;
//
using Ra.GridView.Data;
using Ra.GridView.Util;


namespace Ra.GridView.Web
{
    /// <summary>
    /// Defines the base class for all pages that display list of entities.
    /// </summary>
    public class BaseListPage: BasePage
    {
        /// <summary>
        /// The master page.
        /// </summary>
        protected SiteMaster _masterPage;
        /// <summary>
        /// Gets or sets the error message.
        /// </summary>
        /// <remarks>
        /// The error message is shown in master page header!
        /// </remarks>
        public override string ErrorMessage
        {
            get { return _masterPage.ErrorMessage; }
            set { _masterPage.ErrorMessage = value; }
        }
        
        /// <summary>
        /// Initializes a new instance of the BaseLitPage page.
        /// </summary>
        public BaseListPage() : base()
        {
            
        }

        /// <summary>
        /// Raises OnInit event used to get the reference to master page.
        /// </summary>
        /// <param name="e">The event argument.</param>
        protected override void OnInit(EventArgs e)
        {
            _masterPage = (SiteMaster)Page.Master;
            //
            base.OnInit(e);
        }
        
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Raul Iloc
Architect Nagarro Software SR
Romania Romania
I am a software project manager with about 19 years working experience in software development and about 14 years as Project Manager and Architect.
 
I am working at Nagarro Software SRL (the former SoftCon IT Services SRL), member of Nagarro division (www.nagarro.com) a subsidiary of German-based Allgeier Holding AG (www.allgeier.com) - an integrated IT service group with more than 5,200 salaried employees and around 1,500 freelance IT experts.
 
I am Project Manager and Software Architect for .NET Development and I am responsible for the management of: the software development projects, the projects teams (building, mentoring, leading and supervising), the requirements, the deliverables, the estimations of the projects costs, the project plans, the risk plans, and others project management tasks. I play also the role of lead developer for the software products developed by my teams.
Follow on   LinkedIn

| Advertise | Privacy | Mobile
Web01 | 2.8.141015.1 | Last Updated 15 Feb 2013
Article Copyright 2010 by Raul Iloc
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid