ASP. NET Session 1 ~ 2

Source: Internet
Author: User
Tags microsoft website

I. Introduction to ASP. NET

(Reference: http://blog.csdn.net/zhoufoxcn/archive/2008/09/12/2915811.aspx)

1. XHTML: XHTML is a standard HTML language.

Learn about doctype (http://baike.baidu.com/view/73768.htm) and DTD (http://baike.baidu.com/view/147436.htm)

The two items determine the page specifications. No matter what page, all the hmtl code that is finally presented to the user is static.

2. Web Server

When deploying the Asp.net website on the server, the. NET runtime environment. NET Framework is required. Net frameworkle is similar to the Java JDK, including. net

Program running environment and command line compiling tool. If the. NET Framework is not installed on the server, you need to download it from the Microsoft website. The download URL is:

Http://msdn2.microsoft.com/zh-cn/default.aspx. Note that if you first install. NET Framework and then install IIS, you need to run

To register the. NET Framework with IIS.

1) Initially, you only need to know how to configure IIS

2) learn about the structure and internal principles of IIS in the future.

2.1 temporary ASP. NET files

The directory is located in C:/Windows/Microsoft. NET/framework/v2.0.50727/Temporary ASP. NET files. This folder is used to store

The DLL file generated by our Asp.net webpage.

2.2 configuration execution File

On the "home directory" tab, you can set the physical path of the website or virtual directory, and the execution engine of dynamic web pages. Click "configuration"

Set Tab

ISAPI: http://baike.baidu.com/view/245912.htm this saw for a long time is not clear

2.3 ildasm Tool

This chapter mainly introduces some basic ASP. NET knowledge, such as XHTML, dynamic static Web pages, and web servers ....

1. For XHTML, dynamic and static Web pages are better understood. For more information, see HTML and HTTP (s) protocols.

1.1 The whole process from the request to the end of a static HTML page.

1.2 obviously, the protocol used determines the resolution method.

1.3 for dynamic pages, it is to first process HTML code and then the server-side code; or to parse the page from top to bottom, and then process the server-side code.

.. Yes, this also involves the processing of dynamic pages.

2. IIS is tightly integrated with ASP. NET. You must be familiar with IIS configuration (IIS Help)

 

 

2. ASP. NET built-in objects

(Reference: http://blog.csdn.net/zhoufoxcn/archive/2008/09/15/2930049.aspx)

Request: The request object is used to retrieve the information in the request sent from the browser to the server.
Response: used to send data from the server back to the browser. Each time the client sends a request, the server uses a response object to process

After the request is processed, the server will destroy the corresponding object to continue to accept other client requests.
Server: defines a web server-related class to provide access to methods and properties on the server. (Excure/transfer, htmlencode

(Htmldecode)/urlencode (urldecode ))
Session: used to store information of specific users between multiple page calls.
COOKIE: used to save the Server Page requested by the client browser, or store non-sensitive user information.

The cookie is stored on the client rather than on the server. Each time the client sends a request, the cookie is sent to the server together.

The client sends the cookie to the client again to save the request.
Application: used to share information about an application. That is, multiple users share an application object.

The data types stored by the application and session are the same as those stored in the storage location. They both store the data of the object type (that is, any type ).

And stored on the server. Data in different applications can be set or retrieved by all users on the website. And

There is no time limit on the data stored in the application. Unless we manually delete the data or restart the server, the data stored will be lost.

Loss.
<%> And <% = %> expressions: <% = %> are used to output variable values to the output stream.

1. Understand the meaning of each built-in object.

2. Understand the differences between session, cookie, and application.

3. Learn more <% = %>

 

 

Related Article

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.