This reorganization of the summary, I did a long time, also put in the draft box for a long time, has not reached the level with the teacher after the talk, feeling or need to add some changes, I hope readers can put forward valuable comments. Both this blog post, I published a summary of the ASP, in the structure of the confusion, the focus is not very prominent.
what is ASP.
Asp. NET is part of the. NET Framework, a Microsoft technology, a server-side scripting technology that enables scripts in embedded Web pages to be executed by Internet servers, which can then be dynamically created on the Web server when requesting documents over HTTP. Refers to the Active Server Pages (Dynamic Servers page), which runs in the IIS (Internet Information Server service, which is a Windows-developed Web server) program. (from Baidu Encyclopedia).
Asp. NET Web sites or applications typically use Microsoft's integrated development environment product VS for development, the preferred language is C # and VB.net, and colleagues support multiple language development. Asp. NET is a common language-based compiler run program, its implementation is completely dependent on the virtual machine, so it has a cross-platform, ASP. NET-built applications can run on almost all platforms.
ASP. What are the pros and cons of net? (relative to ASP)
Pros: Support for strongly typed languages such as C #, VB, compile pages to improve execution speed, built-in method trace can help debug pages, provide declarative server controls, support code reuse through inheritance mechanisms, ASP code and HTML design and text separation, no need to register components, etc.
Cons: There is no three layer of this model, each entity's database operations are to be rewritten once, although you can also encapsulate into a class, but the constructor parameters are usually quite a lot, and each time the need for the constructor is different, such as the same form information, used in the registration, The information that needs to be filled in and the fields you update when you view the registration information in the background are definitely different, so if hard to encapsulate, use is also very inconvenient.
Asp. NET of the six big objects
Request: Used to retrieve information from a browser like a server-sent request, when the submit button is pressed, the request object reads and extracts the parameters sent over an HTTP request when the user submits the form, the data that is contained in the input control is sent along with the form.
Response: Used to send data back to the browser from the server.
Application: Used to share application-level information. That is, a set of variables that maintain the entire application, which can be shared by all users accessing the application.
Session: Used to store information about a particular user between multiple page invocations. (typically used when saving a temporary user name)
Server: Used to access resources on the server, for example, to access components created and installed on the server.
ObjectContext: Used to control food processing when using Microsoft Transaction Server, the object can be used to commit or terminate things initiated by an ASP.
ASP. NET in four controls :
Internal controls: Use the same methods as HTML controls, which are mapped to HTML elements and executed by using the runat= "Server" property on the child server.
List control: Used to create a list of data on a Web page, typically the standard list controls are Repeater, DataList, and the DataGrid control.
Complex controls: Complex controls are used when you want the control to have complex functionality or to use HTML elements to create a feature-rich user interface.
Validation controls: The input control's data needs to be checked for accuracy and range of values, and in ASP, the validation work function is performed on the client using the Client scripting language, ASP. NET introduces functional validation controls to enable validation to be performed on the server side.
Summary:
Asp. NET supports a variety of strong-class languages, providing four controls, ASP. NET-built applications can run on almost all platforms, which brings a lot of convenience to programming. To be a good ASP. NET programmer, you need not only master the framework, understand the principles of ASP. But also have a good understanding of the DHTML racks, even the differences between the various browsers, so it is a very challenging job to be an ASP. So how to learn ASP., and finally become a good ASP.
First, familiarize yourself with the use of the ASP. NET various standard controls to understand how ASP works. then expand your knowledge and skills toward the "inside" and "outside" two directions. In Visual Studio. NET with the help of a good IDE, we use a variety of ASP. ASP. If you can be supplemented by a few simple projects to practice the more complex GridView, DataList and other data-bound controls, the basic understanding of ASP. NET is not much of a problem. (This phase is now over.)
After that, we can move forward in two advanced directions. "Inside" words, a deep understanding of object-oriented programming ideas is required, and then a variety of B/s framework (such as MVC) of the understanding (of course, this is the next stage of learning), and finally design patterns and so on software engineering concepts and techniques. The "Outside" practice is more serious. First of all, do the project attention to some can be implemented in the client logic with DHTML in the client implementation, in order to grasp the combination of server, client technology, deepen the understanding of the HTML DOM object, familiar with the common JavaScript skills. Then we practice the planning, design and implementation of separating the structure, data and performance of Web interface.
Learning the ASP. NET is not a very difficult thing, pay attention to "write a program", "internal and external repair", will naturally be able to make qualified applications.
Asp. NET summary--after the change