ASP. NET learning experience

Source: Internet
Author: User
ASP. NET is not a language. It is a technology that can be accessed through a programming language (a language supported by. net.

Use VB. NET to create a web page and ASP. NET to drive the web page.

ASP. NET is a server-side technology that allows users to create their own web pages using fully functional programming languages.

Microsoft intermediate language (msil) supports both optimized structure and interpretation code portability of pre-encoding and decoding.

When the <SCRIPT> identifier is used in ASP. NET, the script is executed in the browser (client) by default. To write the script on the server, you must specify runat = "server"

Web forms can remember the status of different controls. HTTP is stateless and cannot be retained. ASP. NET can retain data. ASP. NET data retention can be achieved through the hidden control _ viewstate in the browser source code. Developers do not need to do any programming work. The _ viewstate control enables ASP. NET to remember the status of the control between pages without the need to maintain the page object or HTTP connection.

To transmit the form data back to the server, you must put the Form Control in the <form> flag.

Style Sheets reduce the download time and server load, because a style sheet can be applied to many pages after being downloaded.

Shared Property definition method: Shared propertyname. You can use object. sharedproperty or class. sharedproperty to access shared properties. The definition method of the shared method is the same as above, but can only be called using the class. sharedproperty method.

When ASP. NET runs the code, it usually places the generated HTML in the cache and returns the browser (client) at one time after the page ends running ). You can use response. Buffer = false to disable the cache, which can improve the server performance.

The application status is the variable storage within the web site range, which can be accessed from any page. The application object is a container that can place all the application state variables we have set. It is a collection object. We recommend that you use application. lock () and application. unlock () locks these application state variables. These application state variables are resident in the memory, so the content in the application is not too much.

Managed Data Providers indicates that they follow. Net memory usage standards.

Datareader can only provide read-only access and cannot be used to change data. It can only traverse data forward.

You can use either of the following methods to find rows in a datatable:
1. objrows = objtable. Select ("colname1 = 'str1'" and colname2 = 'str2' ")
2. objrows = objtable. Rows. Find ("primary key code") This method requires that the primary key code be provided.

Differences between a command object and a dataadapter object:
The command object is used to run commands, and the dataadapter object is used to provide storage space for multiple commands. Dataadapter objects have four attributes: selectcommand, updatecommand, insertcommand, and deletecommand. These attributes can be saved as command objects.

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.