Learning MVC is fine! However, I found that I forgot a lot of things after I learned them, so I stayed for the sake of future study. Let's start with a very basic syntax.
1. Write C # on the webpage #Code, RequiredRequiredYes@Take@You can write
This is the first time that you see a tag similar to . The tag can directly read the configuration information in Web. config.
Pagesize = ''
This method can only be used in some server tags. Otherwise, an error occurs. For example, the following
If you have more experience in object-oriented development, skip the following two steps:The first step is to master a. NET Object-Oriented language, C # Or VB. NET. I strongly oppose learning ASP. NET without a systematic understanding of an object-
Simple Application to the Beijing official site to download compressed files, which contains examplesHowever, here I re-edited the component-less upload and added the following content:
1. Supports uploading images, audio, video, compression, and
The home page is a software portal and is particularly important in design. This page is developed and configured in this section. The home page of this software is used to display the book data stored in the library, this section focuses on the use
This section describes several controls used during development. For more information, see
-- Master page
In ASP. in NET2.0, the master page is a very special file that contains some fixed static la s on the page. areas that can be used in the
Using System; using System. data; using System. configuration; using System. web; using System. web. security; using System. web. UI; using System. web. UI. webControls; using System. web. UI. webControls. webParts; using System. web. UI.
Links to articles:
The beginning of building a high-performance ASP. NET site
Build a high-performance ASP. NET Site to analyze the page processing process (front-end)
Build high-performance ASP. NET Site 2 optimize HTTP requests (front-end)
Spring provides a lightweight solution for building enterprise-level applications. Spring provides consistent and clear configuration and integrates AOP (Aspect-Oriented Programming) into your software. Spring.net's most dazzling feature is to
ASP. NET obtains the client information. For the moment, you need to add the client information ~~
1. Special attributes in ASP. NET:
Get Server computer name: Page. Server. ManchineName
Get User information: Page. User
Obtain the client computer
Add a controller
MVC stands for model-view-controller. MVC for developing applications,
It is a good architecture and easy-to-maintain mode. MVC-based programs include:
Controller: processes external requests, obtains model data, and extracts
1. First download asp.net ajax from ajax.asp.netHttp://www.asp.net/ajax/downloads/
2. Configure web. config:
In the httphandlers section under system. web, add:
In the httpModules section under system. web, add:
[This section can be left blank,
In MVC4, many people use Ninject to implement DI.
Here (http://q.cnblogs.com/q/37471/), the boss mentioned one:
[assembly: PreApplicationStartMethod(typeof(BootStrapper.Initializer), "Initialize")]
However, I have not yet completed how the
/// /// /// Storage Class (storing UserInfo Information)/// /// /// Use Cache to store user information/// Obtain from the Cache at the specified interval (TimeOut,/// If the storage time exceeds the limit, the user information data is retrieved
For most web applications, many prefer form verification. When many applications run in multiple subdomains under a primary domain, single sign-on is a good option. When you log on at http://www.exapmle.com/, you can use the resources of
1. project-> Add-> Other-> Add a Global page
2. Put sqlConnection sqlCommand on the Global page and set their connection
3. Cancel strict private at the interface
The interface code is as follows:
---------------------------
Type
TGlobal = class
$ ViewData. User. Name
Of course, we can also register it as the default View engine, so that you do not need to create an IView every time and pass it to View ().
Public class MvcApplication: System. Web. HttpApplication{Protected void Application_
A simple paging of content is implemented by placing a paging expression at the place where paging is required during content insertion, and then separating articles for display.
Public class Pager{
// Content is the str string of the content, and
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