Razor is a new extension of Asp.net mvc3 and is also the default view engine.
CodeExpression
The core conversion character of razor is @, which is used to convert from tag to code (this is definitely a micro-controller, so it is concise and
Recently, for the purpose of the project, I wrote an auxiliary tool to convert an existing ASP site to an Asp.net site.The main steps are as follows: Start from the specified site portal file, scan all the hyperlinks in the page file, and then
FYI: http://msdn.microsoft.com/library/default.asp? Url =/library/en-US/dnaspp/html/viewstate. asp
In recent studies, it was found that the value captured by dynamically created controls in the page_load event is the value of the previous
This problem plagued my colleagues last night and was solved by sudden inspiration in the morning.
The "sources" parameter is specified multiple times. Repeated items are not supported for the "sources" parameter.
The problem occurs when the
This note is divided into three parts: ninject (dependency injection container, which is described earlier. If you pass by here for the first time, you can take a look at my previous notes ), nunit (Unit Testing Tool) and Moq (used to simulate the
1. Create loosely coupled components
1. "decomposition Focus" is a very important feature in the MVC model. We want to create components in the application as independent as possible, so that we can manage less dependencies. Ideally, each component
Next, take notes from yesterday:
Add dynamic output for the first demo)
The key point of the entire application platform is to build dynamic output. In MVC, building data is the work of the controller, and rendering data as HTML is the work of the
Essentially, LINQ-to-SQL can map classes and methods to data source objects.
Overview
Most applications are centered on a data warehouse. Over the years, architects have been modeling problem domains through objects while designing applications.
The httprequest object contains all the information contained in the HTTP data package that passes in the Web request. The content of the HTTP header, query string, input field of the form, path, and URL information is organized in different sets
A master page is a special file referenced by applications (and pages) and contains the static layout of pages. Each sub-page can customize a region and reference a special placeholder control on the master page. Child pages are the combination of
Image Viewer processing program
To speed up processing, IIS directly processes some static resources in Web applications without calling ISAPI extensions. These static files include images and HTML files. If you directly request a GIF or JPG file
The WCF Service can output JSON and transmit data over HTTP (not necessarily using soap for data packaging ). What we need to do is to enable the endpoint to bind the model to webhttpbinding and enable web script calling through new features.
Build
Code snippet:
After processing by the ASP. NET Runtime Library, the preceding statement generates the following HTML code:
Note: The server ID attribute is expanded into two HTML attributes: Name and ID. This is considering the compatibility of
I,Cache Overview
Since the cached data actually comes from the database, how can the cached data be synchronized with the database? In general, the cache should store data that is not changed much or does not require much real-time data. In this way,
A simple method is to directly write the server path of the server file to a linkbutton or hyperlink URL for the browser to complete the download. however, this is not flexible enough. You can only write every link during page_load, and directly use
E2e testing is required at work, that is, the input is provided, and the output result can be verified. E2e seems simple, but the internal business logic is complicated. It is implemented in an automated manner and requires an understanding of the
In winfrom, we will use a component that overwrites the URL to implement pseudo-static, to provide a good experience and SEO. Now we want the URL to meet
1. Easy to remember and spell
2. Brief, reflecting the SITE STRUCTURE
3. You can remove the end
Preface:
This article is from the official Microsoft mvc3 tutorial. download the latest source code and tutorial in English at http://mvcmusicstore.codeplex.com/( this article is from inxproj. com)
As with the English tutorial, this article will be
Tip 1: Improve the efficiency of using the request set
Accessing an ASP set to extract a value is a time-consuming and computing resource-consuming process. This operation contains a series of searches for related sets, which is much slower than
2006-11-26 22:21:38
Large, medium, and smallCause: the new system will be fully used. NET platform development, the previous two years of work are developed using ASP. if the cost is exceeded, the workload is huge, but the subsequent system
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service