PageRenderTime 4ms CodeModel.GetById 2ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/Visual Studio 2008/CSASPNETMVCCustomActionFilter/ReadMe.txt

#
Plain Text | 68 lines | 41 code | 27 blank | 0 comment | 0 complexity | aca14150d0b8c83437d175054ec5c48b MD5 | raw file
 1========================================================================
 2       ASP.NET MVC APPLICATION : CSASPNETMVCCustomActionFilter Project Overview
 3========================================================================
 4
 5/////////////////////////////////////////////////////////////////////////////
 6Use:
 7
 8	The CSASPNETMVCCustomActionFilter sample demonstrates how to use C# codes 
 9	to create custom ActionFilters for ASP.NET MVC web application. In this 
10	sample,	there are two custom ActionFilters, one is used for customizing 
11	ViewData before page view result get executed and rendered; another is 
12	used for perform logging within the various events during the processing 
13	of custom ActionFilters.
14
15
16/////////////////////////////////////////////////////////////////////////////
17Prerequisite:
18
19Visual Studio 2008 SP1 with ASP.NET MVC 1.0 extension installed. 
20
21*ASP.NET MVC 1.0 RTM download:
22http://www.microsoft.com/downloads/details.aspx?FamilyID=53289097-73ce-43bf-b6a6-35e00103cb4b&displaylang=en
23
24
25/////////////////////////////////////////////////////////////////////////////
26How to Run:
27  
28*open the project
29
30*select  default.aspx page and view it in browser
31
32*in the main page UI, the message data(modified by ActionFilter) is displayed
33
34*click the "About" tab, the About page will be displayed, this will trigger 
35the Logging ActionFilter which will log events into the specified log file.
36
37
38/////////////////////////////////////////////////////////////////////////////
39Key components:
40
41*web.config file: contains all the necessary configuration information 
42	of this web application
43
44*global.asax: contains all the URL routing rules
45
46*HomeController class: contains the main application 
47	navigation logic(such as default page and about page)
48
49*Home Views: the page UI elements for HomeController
50
51*shared Views & Site.Master: those UI elements shared by all page UI
52
53*MessageModifierActionFilter: this is one of the custom ActionFilters which 
54is used for intercepting the ActionResult execution and modify the ViewData
55
56
57*TextLogActionFilter: this is another ActionFilter which is used to log some
58info during the various events of ActionResult execution.
59
60
61/////////////////////////////////////////////////////////////////////////////
62References:
63
64#ASP.NET MVC Tutorials
65http://www.asp.net/Learn/mvc/
66
67
68/////////////////////////////////////////////////////////////////////////////