This repository was archived by the owner on Nov 9, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Getting started
i4004 edited this page Oct 16, 2014
·
11 revisions
To create your first AcspNet application you can install AcspNet project templates package from visual studio online gallery, and then just use respective project templates:

Then just compile (it will download required nuget packages at first build) and run it.
New project structure:

Start debugging and after launch you will see "Hello world!" in default web-site page:

-
Startup.csfile - startup file for your application, here your should initialize OWIN components. AcspNet is also an owin middleware;
public class Startup
{
public void Configuration(IAppBuilder app)
{
app.UseAcspNet();
}
}-
App_Datafolder - storage point for file-based data stores (for example string table files); -
App_Data/StringTable.en.xml- string table default file, contains string table localizable items;
<?xml version="1.0" encoding="utf-8" ?>
<items>
<item name="SiteTitle" value="WebApplication5" />
<item name="FormTitleMessageBox" value="Information" />
<item name="HtmlListDefaultItemLabel" value="Not selected..." />
</items>SiteTitle - default and prefix site title, used by framework
FormTitleMessageBox - message box control title, used by MessageBox class
HtmlListDefaultItemLabel - lists generator control default item, used by ListsGenerator class
-
Templates- folder for storing HTML template files, should contain atleastMaster.tplfile; -
Templates/Master.tplfile - web-site master template file, typically contains base layout for web-site (html, header, body tags); -
Controllersfolder - folder for placing your controller classes (can be any folder); -
Viewsfolder - folder for placing your views classes (can be any folder); -
Templates/AcspNet/MessageBoxfolder for MessageBox class templates, this templates is used to generate error, informational or Ok message boxed.
- by default "Styles", "Scripts", "Images", "Content" and "fonts" folders is opened for read access. Static files (css, js, images etc.) should be placed there.
You can find example AcspNet application which is using controllers, views, templates, localization, js/css frameworks, authentication and so at here
- Getting Started
- Main AcspNet principles
- AcspNet controllers
- Controllers basics
- Controllers attributes
- Controllers routing
- Controllers responses
- Controllers properties
- Controllers model binding
- AcspNet views
- AcspNet templates
- Template factory
- Data collector
- String table
- File reader
- AcspNet context
- Environment
- Language manager
- Redirector
- HTML