b/S in Peking University Jade Bird-asp.net Summary

Source: Internet
Author: User
Tags configuration settings

One, preface: 

These weeks followed the Yu Haitao teacher into the. NET programming world. Discover the essence of ASP.

To talk about the history of ASP, that goes back to HTML, because it is simple, unable to receive information from the user and actively update themselves. Without the need for developers to write again. How can you empower a website to be so responsive? How to provide user-oriented "personalized service"?

Have the demand. There is the power of language competition, in just a few years, intelligent Human has developed a good variety of technology. Microsoft, as the leader in the IT world, is also involved in the transformation of the web, its secret weapon is--asp, because of the simple technology, easy to get started, the programmer's pro-gaze.

On this basis. After 1.0, 2.0, and 3.0 changes, the. NET framework has been created to upgrade its technology to--asp.net.



second, the overall impression: 


The protagonist leads to, the following is my study summary. Overall, very much like the teacher's lecture style. First theoretical study after the actual combat to do the demo. The gap between VS2005 and VS2013 is very large, and I have not changed my development tools because of the video, just because it is different from the development tools used by teachers.

It is for this reason, let me every demo finished can be said to be "impressive"!! Let me deeply feel: study!

Without the network!

This album system explains all aspects of ASP , including the basics of ASP. Asp. NET and IIS schemas, HTML languages, C # basics, HTML controls, and webserver controls. Web Forms validation control, in C#vb. NET objects are used in ASP. Database Foundation and Data Connection object ADO, database programming. Advanced applications, ASP. NET application settings and security, programming examples, and so on.





third, the branch explanation:

    •  Part One: Control objects that are too familiar


Know a new thing and always want to see if it has a side I already know. A very large portion of the video covers the control of ASP.

In the production of Beef brisket news release system, this video mentioned in the control, we have used. I have to say, it was also a daze. If you don't know what it is, it will already be used. Now look back at the theoretical knowledge of these controls to learn, and think about the control's required properties. Method. Event.

I think it's quite simple.




About the Controls section. The validation control is not in the VB before the contact, I understand, because the validation of the control's property settings, can reduce our foreground very much of the inference function of the code, such as inference is not empty Ah, is not the number AH and so on. This is a huge improvement in ASP. For list controls, a list control is indispensable in a Web application that supports a database background in order to present detailed data information to the user. The GridView, which is powerful in its ability to simply implement pagination, sorting, rich formatting styles, and easy-to-manipulate layouts. For repeater, most of the functions of the GridView above are in fact achievable, but only to be quite complex to implement, but we just have to master it. Then the GridView face Repeater, it will become no advantage.




    • Part: Six large built-in objects





1. Session & Application


Session is the server side state preservation mechanism, each client side has a separate space (in the browser to assign the individual to the unique SessionID value). Application is a state-saving mechanism on the server side, but the entire client side of the application is sharing the same state data. Both the Application object and the session object can hold data or objects on the server side, and the usage and often use of properties, events, and methods are basically the same. However, the information saved in the Application object is shared for all visitors to the client browser, while the data stored by the session object is used only for specific visitors.

For example, a user in Henan and B users in Hebei visited a server at the same time, if a changes the information stored in the Application object, B users will see the changed content after refreshing the page, but if a changes the data stored in the session object. b The user is not feeling.

Only a can see and use the data at this point. This means that the session object is stored in the private information.


2. Response & Request

Webserver after receiving the client's HTTP request, it creates two objects per request: The requested Request object representing the response, and the response object that represents it. The distinction between the two can be based on meaning.

    • Request is the requirement: to get the data submitted by the client.

    • Response is the meaning of the response: output data to the client.

correspondingly, in the context of page jumps, both have their own methods, which are often used in development. in order to further see the difference between the two. I drew two diagrams with the ER drawing tool.

For example, the following:


watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvemhvdtjzxzewmtixng==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma== /dissolve/70/gravity/southeast ">


watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvemhvdtjzxzewmtixng==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma== /dissolve/70/gravity/southeast ">


Response.Redirect (): Outputs a data to the client that tells the client to jump to the specified interface and the client browser's URL changes. Changes to the specified page ***.aspx.

Request.forward (): A forwarding within the server is implemented that does not change the address of the client browser.




    • Part Three:web Services


Web services provide two methods of access, Http-get and Http-post. Also learned to use a proxy to invoke a service. The use of the SOAP protocol can also be used to exchange information in a distributed computing environment.


    •  Part Four: Configuration file

I learned the configuration file when I was learning design patterns. So when I see this chapter, it's very kind. reviewed the page configuration settings. Application settings.

Also learned the customerrors settings.

The convenience of a configuration file is that it is stored in plain text format and written in XML, assuming that it needs to be changed without having to start the server again.


Iv. Summary: 

In the net theory + practice learning process, the profound experience has no network. The example is not going to go down at all. In the process, ask a few more why. Can learn a lot of other interesting knowledge, this is what Master Wang told me.

Also, suggest to me the same small white, learn the first to take a book to see, find out the idea. If you look at the video again, you will be prepared to resonate. When I solve this problem, search for a few on the front-end development of the learning site, very good.

Share with us here (all free courses Oh ~):

    • W3school:http://www.w3school.com.cn/index.html
    • mu class Net:http://www.imooc.com/

Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.

b/S in Peking University Jade Bird-asp.net Summary

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.