IT Labs Tutorial

  • View
    97

  • Download
    0

Embed Size (px)

Text of IT Labs Tutorial

.., ..

ASP.NET

2007

681. .., .. ASP.NET . / , 2007 -160. ASP.NET. ,

, , . . , .

: (), - ., ...

2

, . , , : , , , . , , . : : Microsoft Internet Information Service, Microsoft .Net Framework, Microsoft Visual Studio 2005 Microsoft SQL Server 2005. . Microsoft Academic Alliance. 7 , .

3

1. IIS, MS VISUAL STUDIO 2005 MS SQL SERVER 2005 : . : 1) Microsoft Internet Information Services. 2) Microsoft Visual Studio 2005 (Version 8) Microsoft SQL Server Express Edition. 3) - Microsoft Visual Studio 2005 (WEB Site). (Internet Information Services, IIS) [1.1]. IIS - -. , (Active Server Pages, ASP), , -. IIS , , . ,

4

. http. Microsoft Visual Studio 2005 (Version 8) , .NET Framework.. .NET Framework. .NET Framework , [1.2]. .NET Framework . - , , , . , . , , . ,

. , Windows -.

5

,

,

.NET Framework, . .NET Framework .NET Framework. .NET Framework . , , , , . . . , , , , , . . 1. . , , . 2. . 3. MSIL . (JIT-) MSIL . MSIL MSIL.

6

MSIL , , . 4. . , , , . .NET Framework, , XML. , , - , ,

ASP.NET, -

1.1 .NET Framework , . 1.2 , . , IIS SQL Server,

7

, .

1.2 ASP.NET ,

.NET Framework . ASP.NET , . - . Web Forms, - XML IIS ASP.NET ; .NET Framework Microsoft SQL Server Express Edition . ASP.NET ADO.NET [1.3]. ADO.NET , . ADO.NET . ADO.NET .NET Framework XML . ADO.NET

8

, , , . IIS , , Internet Information Services. , IIS. IIS, IIS , . IIS, IIS IIS.

: 1. Internet Information Service ; 2. Microsoft Visual Studio Microsoft SQL Server 2005. 3. ASP.NET . Microsoft Internet Information Services. IIS, ,

-

Windows. Windows

9

1.3 IIS. , IIS.

IIS,

Internet Information Services - . . ii.2 , lab1 c:\inetpub\wwwroot\lab1.

( ).

10

lab1. asp IIS lab1 c:\inetpub\wwwroot\lab1

1.4 lab1. . lab1 lab1.asp. .

11

. lab1 . . Internet

: Explorer

http://localhost/lab1/. :

1.5 lab1. IIS ,

,

Internet Information Services.

12

. lab1 , . . IIS , . ( 1.6).

1.6 , IIS

13

( 1.7).

1.7 Windows IIS , , Windows ( 1.5) lab1_1.exe , . Visual Studio

2005, , Install Microsoft Visual

14

Microsoft Visual 2005 8) Studio (Version

Studio 2005. , , Setup.exe. Help Improve Setup, Microsoft . ( Loading completed. Click Next to continue) , Next. End User License Agreement I accept the terms of the License Agreement. Product key, ( ) Name , Next. Visual Web Developer Web. Visual Basic . Visual C++

Microsoft SQL Server Express Edition..

15

Windows , .NET Framework. Framework. Web- Visual C#

, .NET Visual J# . Smart Device Programmability Edition x86, SQL

. Microsoft SQL Server 2005 Express Server .

16

1.8 MS Visual Studio 2005 Disk Space Requirements .

( C: 1 ) Product install path. Install.

, Visual Studio 2005 , Please insert the disk: Microsoft

17

Visual

Studio

2005

Disk

OK. Finish Page Finish. Install MSDN, , Visual

Studio Documentation. , , Setup.exe. End User License Agreement I accept the terms of the license agreement. , Next. ( ) User name, Full Organization. Next.

, (Recommended)

, Custom (

18

),

Minimum ( ). , Folder, Next. Destination Browse.

, Next. , Back, , Install. . Setup Completed Finish. lab1_2.exe , Microsoft Visual 2005 Studio (WEB Microsoft Visual Studio 2005. ( )

-

Microsoft Visual Studio 2005 File/New/Web Site.

19

Site).

Microsoft Visual Studio 2005 . (File System), .. . .

1.9 . Microsoft Visual Studio 2005 default.aspx.

.

20

aspx

, aspx.cs ( ). Default.aspx.cs. Default.aspx Design Label Text . lab1

Windows IIS. (Debug). Microsoft Visual Studio 2005 , .. (The page cannot be running in debug mode because debugging is not enabled in the Web.config file. What would you like to do? ). Add new Web.config file ( Web.config ) Microsoft Visual Studio 2005

21

Internet

Explorer

.

1.10 . IIS , 5 , .

1. Microsoft .

22

2. .NET Framework? .NET Framework 3. .NET Framework? 4. 5. . 6. .NET Framework. 7. ? 8. ASP.NET. 9. Microsoft SQL Server Express Edition? 10. ADO.NET? 11. IIS. 12. IIS? 13. Microsoft Visual Studio 2005. 14. Microsoft Visual Studio 2005.

23

2. ASP.NET . : 1) - Microsoft Visual Studio 2005 (WEB Site), ( - ). 2) C#. 3) . ASP.NET . ASP.NET -, , - . ASP.NET ASP , , . ASP.NET .NET Framework (, , , ). ASP.NET , , , , .

24

. ASP.NET, - XML. . ASP.NET , . ASP.NET ASP.NET. , ASP.NET. ASP.NET , ASP.NET -,

. System.Web.UI.Control ( ). System.Web.UI, ASP.NET. , , System.Web.UI: Page, UserControl LiteralControl. Page , ASP.NET ASP.NET Page, Page Page. UserControl. , ASP.NET, .ascx.

25

LiteralControl, . ASP.NET, , : System.Web.UI.HtmlControls System.Web.UI.WebControls. HTML- HTML, - . , ASP.NET . - , . , ASP.NET . . , . , , , , , . System.Web.UI.Control , , , . , , ASP.NET , , .

26

,

,

, , . ASP.NET , .NET Framework, , ASP. HttpApplicationState, Application HttpContext. , .NET Framework , - . ASP.NET , , , , , . , , , - \Invest. : \Invest \bin \image \xml HttpApplicationState URL- . , , , .

27

Application HttpContext. HttpModules HttpHandlers, ASP.NET, , , Application -. ASP.NET ASP , :

.NET Framework, , .NET. , , . IIS ASP, , ASP.NET IHttpHandler IHttpModule . , , . , , -. , . Application Page. . ASP.NET. .

28

: . , , , -, . . ASP.NET. . .NET Framework - , , . . , , . . ASP.NET , : , , . . (Session_OnStart, Session_OnEnd . .), .

29

HTTP , , - . -, (, , ). ASP.NET :

, ASP, .NET Framework.

, IIS .

- -, - .

, cookie.

ASP . -. -

, .

30

ASP.NET

,

120- SessionID, URL- ASCII. SessionID ) (

( SessionID ). SessionID cookie SessionID URL-. ASP.NET -. , IIS. .

.

aspnet_wp.exe

.

Web.config , memoryLimit.

Global.asax Web.config. \Bin -.

31

Global.asax, Web.config \Bin.

, Web.config -. .

.NET . . SQL SQL Server, SQL. Session . ASP.NET , Session, . SQL . ( ) , SQL . , ASP:

( ASP.NET).

32

, , - , , IIS .

. , .

. , , ASP.

. ,

, . , , . - . . ASP.NET : , SQL. .

33

. -, HTTP . Machine.config. , System.Web.SessionState.SessionStateModule. , , .NET Framework, . ... ... . name="sessionState"

Web Forms Web Forms .

34