An ASP.NET 4.0 website framework that can be used for Rapid Application Development.
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.
Apache/BSD/MIT/GPL v2.0
Minimum system requirement (tested):
- ASP.NET 4.0
- Visual Studio.NET 2010
- MSSQL 2008
- Create an empty database with the name "CI40" or another name you want.
- Run ~/App_Data/CI40.sql to populate the database.
- 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). - In ~/web.config, change values of connection strings ApplicationServices and connCI40 accordingly.
- Copy this project folder to desired location on web server.
- Open IIS Manager, convert this folder to an application with ASP.NET v4.0 application pool.
- 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
- ~/Account/Login.aspx
- Instruction to setup the membership database
- Basically, run the command: C:\WINDOWS\Microsoft.NET\Framework\[versionNumber]\aspnet_regsql.exe
- Another tutorial
- Login using LDAP (as Domain User)
- ~/Login.aspx
- To choose between aspnet Membership and LDAP login, change web.config "authentication" section loginUrl.
For now, both login links are shown in top right corner just for convenience.
Also for LDAP login, the "profile" page to change (local user) password should not be shown. - Login authentication using LDAP (Active Directory) for ASP.NET applications
- MSDN: Active Directory Authentication from ASP .NET
- Map: Embed Map
- ~/Map.aspx
- Master page
- ~/Site.master
- Dynamically generated menu
- Solve issue on relative path in subfolder: ResolveUrl and ResolveClientUrl
ResolveUrl creates the URL relative to the root. ResolveClientUrl creates the URL relative to the current page.
See http://stackoverflow.com/questions/1874636/what-is-the-difference-between-resolveurl-and-resolveclienturl
System.Web.VirtualPathUtility.ToAbsolute is similar to ResolveUrl but is used in code under App_Code.
See https://msdn.microsoft.com/en-us/library/system.web.virtualpathutility%28v=vs.110%29.aspx
- 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
- Data/S.P. Computation
- ~/SPCompute.aspx
- Modified from: https://css-tricks.com/css3-progress-bars/
X. Chen
Copyright © 2011-2015