Record some processes for individuals to learn Asp.net MVC:
Asp.net MVC (11) custom view Engine
MVC has not been updated for a long timeArticleBut this article is very useful in actual projects. For example, we can specify two different view
The Asp.net verification control is widely used with its powerful functions. However, improper use of the control can easily lead to security risks. Some time ago, because the job needs to know a little about its verification policy, I would like to
Use in MVC see http://www.cnblogs.com/feelboy/archive/2011/07/02/2096146.html
Use dataannotations verification in Asp.net projects see http://www.cnblogs.com/hjf1223/archive/2010/11/07/independent-dataannotation-validation.html
In my library
Review Asp.net process Handler
There are two methods in the process. Let's analyze them here.
VoidApplication_postresolverequestcache (ObjectSender, eventargs E)// R
VoidApplication_maprequesthandler (ObjectSender, eventargs e) // m
R,
Website Structure
Webconfig
Set to form authentication and reject all anonymous users
Authentication Mode= "Forms">
Forms Loginurl= "~ /Account/Index" Timeout= "2880" Path= "/" />
Authentication>
Authorization>
Deny Users=
I recently drew some pictures in ASP. NET MVC and shared them with you:
Routing component
Figure 1 independent ASP. NET routing component
MVC-Controller
Figure 2 controller structure
Figure 3 available actionresult in the
ASP. NET MVC2 combines system. componentmodel. dataannotations to provide a very effective entity verification framework. For error message processing, it provides two options by default:
String constant
SlaveProgramFund-raising Source
Levenblog release and update
[]1. porting the fastreflaction framework of the infancy project to levenblog can greatly improve the reflection execution time in theory. In previous versions, object assignment is executed through reflection later
The purpose of a dynamic expression is to set control properties during parsing, instead of relying on the data binding mechanism. To understand the purpose of a dynamic expression, reviewCode. If a # expression is used, it is processed in the
When writing the presentation layer in ASP. NET, JavaScript cannot be used to operate HTML elements. However, the HTML IDs of ASP. NET controls are dynamically generated and depressing, so they have to be written on the server.
CodeOutput the ID to
Select ASP. NET developers have been very depressed, because they chose ASP. net is to select its existing powerful web control library, and then select the powerful functions of these controls while also bringing some problems, such as some of the
Solve the remaining problems raised in the previous article
Frontend internationalization. solved through JS Language Pack.
Prepare the JS Language Pack. Use the following on the template page:Code
Script SRC= 'HTTP: //
ArticleDirectory
Input Form
List form
ASP. one of the most important features of net webform is the componentization of its interface elements. Simple input controls do not need to be said, especially those template controls
In the MVC model, we can define a lot of metadata related to the view, which plays a very important role in developing the view, especially in data verification. These metadata are generally not defined on the business entity (or persistent entity),
Series directory
Filter context parameters
The previous section mentioned four built-in MVC filters. All of them provide filtercontext parameters in the key methods without exception. Although they have different types, they all inherit from
This article describes how to useManaged extensibility framework(MEF) method to achieve IOC and Asp.net integration. Many people do not know that this MEF seems to be a big framework, but it is alreadyBuilt-in in. NET Framework 4.0You only need to
The word report document in the project will be converted to a PDF document and output to the web page.CodeIs to read the PDF file and write it to the page output stream:
Protected
Void
Page_load (
Object
Sender, eventargs E)
{
This articleArticleI will discuss two basic usage of page optimization. Next I will analyze the usage of Static Page cache. Although the Internet environment is much better, the increasingly fluent and fat client of websites makes page loading not
The official version of ASP. net mvc has been available for a long time, but it has never been used for a specific project. Therefore, the previous Learning Record is limited to self-entertainment. Starting at the end of last year, the company began
Document directory
NVelocityViewEngine
NVelocityView
ExtensionDuck
In my blog post, there is a saying: "I have been wondering whether there is a way to separately restrict the access permissions of the Code in the View, similar to the trust
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.