Skip to content

chenx/Ci40_1

Repository files navigation

Ci40_1

An ASP.NET 4.0 website framework that can be used for Rapid Application Development.

About

This is an ASP.NET 4.0 website framework that can be used for RAD (Rapid Application Development).

This framework includes a functional Membership/Role/Profile management system, so you can start a website without re-creating the wheel. It also demonstrates various functions and capabilities of a typical web application.

Many of the functions here can be easily adapted for other platforms, e.g., LAMP and JavaEE. Either The coding logic is the same, or the function is based on pure html/javascript/css.

License

Apache/BSD/MIT/GPL v2.0

System Requirement

Minimum system requirement (tested):

  • ASP.NET 4.0
  • Visual Studio.NET 2010
  • MSSQL 2008

Installation Guide

A. Database deployment

  1. Create an empty database with the name "CI40" or another name you want.
  2. Run ~/App_Data/CI40.sql to populate the database.
  3. Use the aspnet_regsql.exe utility to create the ASP.NET membership/Role/Profile database.
    (Aspnet_regsql.exe is usually found in C:\Windows\Microsoft.NET\Framework\v***\.)
    Alternatively, You can run ~/App_Data/aspnetdb.sql on CI40 (or another separate database).
  4. In ~/web.config, change values of connection strings ApplicationServices and connCI40 accordingly.

B. File deployment

  1. Copy this project folder to desired location on web server.
  2. Open IIS Manager, convert this folder to an application with ASP.NET v4.0 application pool.

Functions demonstrated

  • Admin Functions (~/Admin)
    • Manage Roles (use asp.net Roles, ~/Admin/Roles.aspx)
    • Manage Users (use asp.net Membership, ~/Admin/Users.aspx)
    • Control access to ~/Admin using ~/Admin/web.config
    • If non-admin user visits ~/Admin after signed in, redirect to ~/Account/Login.aspx, which in turn redirect to ~/. (see ~/Account/Login.aspx)
    • Create New User using wizard (~/Admin/CreateNewUser.aspx)
    • Manage Profile (use asp.net Profile)
      • Initialize setting is in web.config
      • Use ClsProfile.cs to automate creation of view/edit pages.
      • Also see ~/Account/Profile.aspx, ~/Account/ProfileEdit.aspx, ~/App_Code/ClsFormSetting.
      • In database table T_FormSetting, field SeqNo determines the order of fields on UI display.
    • Change Email (~/Account/EmailEdit.aspx, ~/Admin/EmailEdit.aspx)
    • See:
      SQL Membership Provider and aspnet_regsql.exe Utility
      How to add a Login, Roles and Profile system to an ASP.NET 2.0 app in only 24 lines of code
  • AutoComplete Extender
    • ~/CountryAutoComplete.aspx
    • Pass additional parameter by SetContextKey
    • A potential Chinese input utility (but so far only overwrite instead of append, unless you use a delimiter)
  • Chart: AjaxControlTookit chart
    • ~/AjaxChart.aspx
  • Chart: ASP:Chart
    • ~/AspChart.aspx
    • ~/AspChartDynamic.aspx, this demonstrates charts created programmingly.
  • Display data: List, Table and TreeView
    • UI - Country List/Table/TreeView
    • as List: DropdownList, CheckboxList, Multiselection DropdownList
    • as Table
    • As TreeView
  • IFrame
    • ~/About/Default.aspx
    • Full page, iframe height adjusted to content page height.
  • jQuery fall back when cdn not available
    • See example at ~/Data/SPCompute.aspx
    • Basically use something like this: <script> window.jQuery || document.write('<script src="../Scripts/jquery-1.10.2.js"><\/script>'); </script>
  • Login using aspnet Membership
  • Login using LDAP (as Domain User)
  • Map: Embed Map
    • ~/Map.aspx
  • Master page
  • Menu
    • Submenu (e.g., Chart)
    • Menu style: change style in ~/Styles/Site.css, "TAB MENU" section
    • Multiple levels (UI/SubMenu Test). Seems 4 levels are available
    • Menu separator (UI/SubMenu Test)
  • Progress bar in jquery/css

To-do list

Change Log

Author

X. Chen
Copyright © 2011-2015

About

An ASP.NET 4.0 website framework that can be used for Rapid Application Development.

Resources

Stars

Watchers

Forks

Packages

No packages published