0% found this document useful (0 votes)
39 views48 pages

Q3,, Iis ? (Namespace) Q6, Q7, Q8 Visual Studio ? Q9 Q10 (Pre-Compile) Q11 IIS Q12 Q13

The document discusses ASP.NET and IIS. It explains that ASP.NET 2.0 introduced namespaces and partial classes. It also describes how to compress and decompress data using GZipStream and DeflateStream in ASP.NET.

Uploaded by

hnhngtb1111
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views48 pages

Q3,, Iis ? (Namespace) Q6, Q7, Q8 Visual Studio ? Q9 Q10 (Pre-Compile) Q11 IIS Q12 Q13

The document discusses ASP.NET and IIS. It explains that ASP.NET 2.0 introduced namespaces and partial classes. It also describes how to compress and decompress data using GZipStream and DeflateStream in ASP.NET.

Uploaded by

hnhngtb1111
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 48

PART 2

Q3 ,
Q4 ASP.NET , IIS ?
Q5 ASP.NET 2.0 (namespace)
Q6 ASP.NET ,
Q7 ,
Q8 Visual Studio ?
Q9
Q10 (Pre-compile) ASP.NET
Q11 IIS ASP.NET 1.x ASP.NET 2.0
Q12 ASP.NET AJAX ASP.NET 2.0
Q13 ASP.NET AJAX 1.0 ASP.NET 3.5
Q3 ,

V ASP.NET 2.0 V ASP.NET 3.5

Web , ,
, , ,
, ,

, Microsoft .NET 1.x


, Microsoft .NET 2.0 GZip
Deflate , System.IO.Compression

GZipStream GZip

DeflateStream Deflate

CompressionMode.Compress
Write()

CompressionMode.Decompress
Read()

,
, , 1

2-2
, Q3

1 GZipStream

public byte[] GzipCompressData(byte[] SourceData)

MemoryStream ms = new MemoryStream();

GZipStream stream = new GZipStream(ms, CompressionMode.Compress);

stream.Write(SourceData, 0, (int)SourceData.Length);

stream.Flush();

ms.Flush();

result = ms.ToArray();

stream.Close();

ms.Close();

return result;

, , 2

2 GZipStream

public byte[] DecompressGZipData(byte[] SourceData)

byte[] result = null;

byte[] buffer = null;

MemoryStream source = new MemoryStream();

int bufferSize = 10000;

int readBytes = 0, offset = 0;

source.Write(SourceData, 0, SourceData.Length);

source.Flush();

source.Position = 0;

GZipStream stream =

2-3
Part2

new GZipStream(source, CompressionMode.Decompress);

MemoryStream ms = new MemoryStream();

do

buffer = new byte[bufferSize];

readBytes = stream.Read(buffer, 0, (int)buffer.Length);

if (readBytes == 0)

break;

offset += readBytes;

if (readBytes < buffer.Length)

ms.Write(buffer, 0, readBytes);

else

ms.Write(buffer, 0, buffer.Length);

while (readBytes > 0);

ms.Flush();

result = ms.ToArray();

stream.Close();

ms.Close();

return result;

DeflateStream ,
GZipStream DeflateStream,

2-4
, Q3

1.

2. ( GIF/JPEG ) ,
, CPU

, ,
( 3 4)

// compress and write response (ASP.NET Page)

public void Page_Load(object sender, EventArgs e)

// read data from database.

byte[] data = DBService.GetFile(Request.QueryString["fileID"];

// compress data.

data = CompressGZipData(data);

// Write to Client.

Response.ContentType = "application/octet-stream";

Response.BinaryWrite(data);

Response.End();

// read program (Windows Forms Client)

public void cmdGetFile_Click(object sender, EventArgs e)

HttpWebRequest request = WebRequest.Create(this.T_Url.Text) as


HttpWebRequest;

2-5
Part2

HttpWebResponse response = request.GetResponse() as HttpWebResponse;

Stream s = response.GetResponseStream();

byte[] data = ReadStream(s); // custom function.

data = DecompressGzipData(data);

WriteFile(data, "FileName"); // custom function.

, 70-536: TS: Microsoft .NET Framework 2.0 Application


Development Foundation

.NET Framework

DeflateStream

GZipStream

2-6
Q4 ASP.NET
IIS ?
,

V ASP.NET 2.0 V ASP.NET 3.5

Windows XP Home Web , IIS,


, ASP.NET
(ASP.NET Development Server) , ,
,

ASP.NET Visual Studio 2005 ,


IIS Web , Visual Studio
Web , ASP.NET
, Web , ASP.NET

,
, IIS ,

, ASP.NET

IIS , IIS SMTP Service

2-7
Part2

, ASP.NET ,
ASP.NET , , ASP.
NET (Dynamic Port) ,
, ,
, URL

,
,
false,

2-8
ASP.NET , IIS ? Q4

, ,

, ASP.NET ,
IIS , ASP.NET
( ) , ,
IIS , ASP.NET
,

, IIS ,
IIS ,

2-9
Q5 ASP.NET 2.0
(namespace)
V ASP.NET 2.0 V ASP.NET 3.5

Visual Studio .NET 2003 (.NET 1.x) Visual Studio 2005 (.NET 2.
0) Web , .NET 1.1 , ASP.NET
(namespace) ,
, ASP.NET ASP.
NET 2.0, , ASP.NET 2.0 ,

ASP.NET 1.x , ASP.NET ,


, ,
, , Visual Studio .NET

Visual Studio ,
, ,
ASP.NET 2.0 (.NET 2.0) ,
Partial Class, Partial Class ,
, C# VB.NET

2-10
ASP.NET 2.0 (namespace) Q5

Visual Studio 2005 , Windows Forms ASP.NET Web


Form, , Visual Studio
, Windows Forms
(*.Designer.cs *.Designer.vb) , Windows
Forms

ASP.NET 2.0, ASP.NET


(aspnet_wp.exe aspnet_isapi.dll) , ,
ASP.NET , ,
, ASP.NET 2.0 ,

1 ASP.NET

public partial class Default : System.Web.UI.Page

protected void Page_Load(object sender, EventArgs e)

Partial Class , ,
, ,
( ) , Partial Class
, , Partial Class , ASP.NET 2.0 ,
ASP, , ,

2-11
Part2

2 ASP.NET

namespace ASP {

public partial class Default : System.Web.UI.Page

protected void Page_Load(object sender, EventArgs e)

3 ASP.NET ASP.NET

namespace ASP {

public partial class Default : System.Web.UI.Page

protected Button cmdButton1;

protected Button cmdButton2;

protected TextBox TextBox1;

Partial Class , Visual Studio 2005


namespace ASP , ,
ASP.NET 2.0 ,

2-12
ASP.NET 2.0 (namespace) Q5

, ASP.NET 2.0 ,
ASP.NET , ,
ASP.NET , , ASP.NET

Q6 ASP.NET ,

2-13
Q6 ASP.NET ,

V ASP.NET 1.0 V ASP.NET 1.1 V ASP.NET 2.0 V ASP.NET 3.5

Visual Studio 2005 ASP.NET ,


, , ,
, ,

ASP.NET , ,
, , ASP.NET 2.0
Cross-Page Post Back , A Post Back
B, B A Post Back ,
,

ASP.NET 1.x , ,
, , ASP.NET
2.0, , , ,
ASP.NET 1.x ASP.NET 2.0 (Visual Studio .NET Visual Studio 2005)

2-14
ASP.NET , Q6

/CorporationContent/Brands/BrandForm.aspx

ASP.NET 1.x ASP.NET 2.0

ASP.CorporationContent.Brands CorporationContent_Brands_BrandForm

BrandForm

/CorporationContent/Corporation.aspx

ASP.NET 1.x ASP.NET 2.0

ASP.CorporationContent CorporationContent_Corporation

Corporation

, , ASP.NET 2.0
,
,

App_Browsers

App_Code ,
DLL , , Web

App_Data , SQL Server Express


(MDF) XML , SQL Server
Express ASP.NET 2.0 ,
, App_Data

App_GlobalResources (*.resx *.resource)

2-15
Part2

App_LocalResources
(*.resx *.resource)

App_Themes ( *.skin, *.css


)

App_WebReferences Web Service (WSDL,


DISCO )

Bin , DLL

App_Code , (
WSDL XSD ), DLL , ,
App_Code ,
, , App_Code
, , C# VB.
NET , C# VB.NET , App_Code
, Web.config

.NET Framework SDK

<compilation debug="false">

<codeSubDirectories>

<add directoryName="VBCode" />

<add directoryName="CSCode" />

</codeSubDirectories>

</compilation>

App_Code

2-16
ASP.NET , Q6

(*.cs *.vb) ,
App_Code,

, ,
, ASP.NET ,

, ,
( Windows Forms Web Service ), App_Code ,
ASP.NET , ,

Q5 ASP.NET (namespace)

2-17
Q7 ,

V ASP.NET 1.0 V ASP.NET 1.1 V ASP.NET 2.0 V ASP.NET 3.5

ASP.NET 2.0 , ,
, , ,

ASP.NET 2.0 , 50 ,
, ,
, ,
, ,

ASP.NET ,

,
,

,
, ,

,
( HTML Rendering ),
,

, (User Control) ,
, (Composite
Control) , , ,
,
, ,

2-18
, Q7

1 (.ascx)

<%@ Control Language="C#" AutoEventWireup="true"

CodeFile="DateRangeSelector.ascx.cs"

Inherits="DateRangeSelector" %>

<link rel="stylesheet"

href="../../Scripts/calendar-win2k-cold-1.css" type="text/css" />

<script type="text/javascript" language="javascript"

src="../../Scripts/calendar.js"></script>

<script type="text/javascript" language="javascript"

src="../../Scripts/lang/calendar-en.js"></script>

<script type="text/javascript" language="javascript"

src="../../Scripts/calendar-setup.js"></script>

<asp:Literal ID="ScriptSpace" runat="server"

EnableViewState="false" />

<asp:TextBox ID="T_StartDate" runat="server" Columns="10"

MaxLength="10" />

<img id="btn1" alt="" src="../../Scripts/img2.gif"

style="cursor: pointer" />

<script type="text/javascript">

Calendar.setup ({

inputField : startDateTextBoxID,

ifFormat : "%Y/%m/%d",

button : "btn1",

align : "B1"

});

</script>

<asp:TextBox ID="T_EndDate" runat="server" Columns="10"

MaxLength="10" />

2-19
Part2

<img id="btn2" alt="" src="../../Scripts/img2.gif"

style="cursor: pointer" />

<script type="text/javascript">

Calendar.setup ({

inputField : endDateTextBoxID,

ifFormat : "%Y/%m/%d",

button : "btn2",

align : "B1"

});

</script>

2 (.ascx.cs)

public partial class DateRangeSelector : System.Web.UI.UserControl

private DateTime _dateFrom = DateTime.Today;

private DateTime _dateTo = DateTime.Today;

protected void Page_Load(object sender, EventArgs e)

this.ScriptSpace.Text =

"<script>" + "var startDateTextBoxID = \"" +

this.T_StartDate.ClientID + "\";" +

"var endDateTextBoxID = \"" + this.T_EndDate.ClientID +

"\";" + "</script>";

if (!Page.IsPostBack)

this.T_StartDate.Text =

this._dateFrom.ToString("yyyy/MM/dd");

this.T_EndDate.Text = this._dateTo.ToString("yyyy/MM/dd");

2-20
, Q7

public DateTime StartDate

get

DateTime returnDate =

Convert.ToDateTime(this.T_StartDate.Text);

return new DateTime(returnDate.Year, returnDate.Month,

returnDate.Day, 0, 0, 0);

set

this._dateFrom = value;

public DateTime EndDate

get

DateTime returnDate = Convert.ToDateTime(this.T_EndDate.Text);

return new DateTime(

returnDate.Year, returnDate.Month, returnDate.Day, 23, 59, 59);

set

this._dateTo = value;

}
2-21
Part2

Dynarch.com JavaScript Calendar


, http://www.dynarch.com/projects/
calendar/

, , ,
,

, (Custom Control) ,
, , Visual Studio
, , HTML Script
, , ,
DLL , ,

, ,
, ASP.NET 2.0 , ,
( sealed ) ,

, ,
,

2-22
, Q7

, (
T , ) , ,
, , ,
,

, , ,
, , ,
, ,
,

Exam 70-528: TS: Microsoft .NET Framework 2.0 Web Application Development

Web

Web

Exam 70-547: PRO: Designing and Developing Web Applications by using .NET Framework

, .NET Framework

2-23
Part2

Q14 Button , ?

Q16 ASP.NET ( )

Q23 ?

Q24 ?

Q25 ?

Q74 ?

2-24
Q8 Visual Studio ?
V ASP.NET 1.0 V ASP.NET 1.1 V ASP.NET 2.0 V ASP.NET 3.5

Visual Studio 2005 Web , IIS


( ASP.NET Development Server) , ,

ASP.NET IIS , ,
IIS (Restricted) , IIS
, Windows Vista
( Q2 Windows Vista ), IIS
,

(Knowledge Base) , Visual Stu-


dio ASP.NET ,

http://support.microsoft.com/kb/306172/en-us

2-25
Part2

, Visual Studio 2005 , ASP.NET 2.


0 , Web.config

<configuration>

<system.web>

<compilation debug="false" />

</system.web>

</configuration>

, , debug true,

Visual Studio ASP.NET ,

1. ASP.NET IIS mapping, aspnet_regiis


i (aspnet_regiis.exe WINDIR\Microsoft.
NET\Framework\ \ , WINDIR Windows
, ASP.NET , 2.0 2.
0.50727)

2. Windows Vista (IIS 7.0) Windows Server 2003 (IIS 6.0),


ASP.NET Q2

2-26
Visual Studio ? Q8

3. IIS ASP.NET DEBUG ,

2-27
Part2

4. Windows Vista (IIS 7.0) , Windows ,


,

5. , Visual Studio ,
( )
,

Visual Studio , IIS , ,


, , Visual Studio
, , ( ,
), ( ,
), , ,

Q02 Windows Vista

2-28
Q9
V ASP.NET 1.0 V ASP.NET 1.1 V ASP.NET 2.0 V ASP.NET 3.5

Web , ,

, ,
,

Web , ,
, ,
, ,
, ,

Debug , (debug symbol)


, PDB ,
, , ,
Release , , , ,
, ,
,

, , Debug

2-29
Part2

1. ASP.NET 1.x: Debug

2. ASP.NET 2.0: Web.config , debug ,


, Debug ,
ASP.NET ,

, ,
(Production Environment) , ,
, ,
, , CPU ,

, Release ,
Trace , , ,
, Web

2-30
Q10 (Pre-compile)
ASP.NET
V ASP.NET 2.0 V ASP.NET 3.5

Visual Studio .NET 2003 ASP.NET ,


DLL , Visual Studio 2005 , DLL ,
, , ASP.NET
2.0 ,

(Pre-compilation) ASP.NET 2.0 , ASP.NET 2.0


, , ASP.NET 1.x
, ASP.NET 2.0 , ,
,

ASP.NET 2.0 , partial class , ASP.


NET 1.x , (Page-Inheritance) ,
(DLL) ,
, ,
, ASP.NET ,
, MSIL , MSIL ,
,

, ,
MSIL , , ,
, MSIL,

.NET Framework 2.0 aspnet_compiler.exe,

2-31
Part2

aspnet_compiler.exe

aspnet_compiler [-?]

[-m metabasePath | -v virtualPath [-p physicalPath]]

[[-u] [-f] [-d] [-fixednames] targetDir]

[-c]

[-errorstack]

[-nologo]

[[-keyfile file | -keycontainer container ] [-aptca]

[-delaysign]]

-v virtualPath IIS

-p physicalPath

-u

-f

-d Web.config,

targetDir

-c

-errorstack ,

-fixednames

-keyfile file

-keycontainer container

-aptca , (Partial
Trust)

-delaysign ,

2-32
(Pre-compile) ASP.NET Q10

, Visual Studio 2005


(Publish Web Site) , Visual Studio aspnet_compiler.exe

, -v -p , -u
-fixednames
, -keyfile -delaysign, -keycontainer
-aptca

2-33
Part2

ASP.NET
ASP.NET , (In-place compilation) ,
aspnet_compiler HTTP Request, HTTP Request
(Binary Compilation) , ,
, ,
(Updatable Compilation) ,
, ,

, , ,
, ( ) ,
, ,

, ,
,

ASP.NET ,
aspnet_compiler.exe Visual Studio 2005
, Windows Installer

, Exam 70-528: TS: Microsoft .NET Framework 2.0 Web Client


Development

Web

2-34
Q11 1.x
IIS
ASP.NET 2.0
ASP.NET

V ASP.NET 1.0 V ASP.NET 1.1 V ASP.NET 2.0

Visual Studio 2005 Web ,


, , ASP.NET 1.1 ,
, IIS , IIS

.NET Framework 2.0 , ASP.NET 1.1


1.0 , ,

.NET Framework 1.1 , .NET Framework


, , ,
side-by-side ( ),
, .NET Framework , Windows
, Web , IIS ASP.
NET Runtime

, .NET Framework 2.0 ,


, ASP.NET
, .NET Framework 2.0 ,
.NET Framework 2.0 IIS , aspnet_regiis -i
ASP.NET ,

2-35
Part2

IIS .NET Framework 1.1 2.0 , ASP.NET 1.1.


4322 (ASP.NET 1.1) 2.0.50727 (ASP.NET 2.0) ,
.NET Framework , ,
ASP.NET Runtime

, ASP.NET side-by-side ,
.NET Framework

IIS ASP.NET , ,
.NET Framework , .NET Framework

2-36
IIS ASP.NET 1.x ASP.NET 2.0 Q11

IIS 7.0 ASP.NET 1.1 ASP.NET 2.0


IIS 7.0 .NET Framework 2.0, ASP.NET 2.0 ,
IIS 7.0 ASP.NET 1.1 2.0 , IIS 7.0 ,
.NET Framework 1.1 .NET Framework 1.1 Service Pack 1, IIS 7.0,
IIS 6.0 IIS Metabase , .NET Framework 1.1 ASP.NET
IIS 7.0 ( )

.NET Framework 1.1 , aspnet_regiis -i -enable ASP.NET 1.1


IIS 7.0 ( , ASP.NET 1.1 ), ASP.NET
1.1 IIS 7.0

, ASP.NET 1.1
ASP.NET 1.1

, ASP.NET 1.1 IIS 7.0

2-37
Q12 ASP.NET AJAX
ASP.NET 2.0
V ASP.NET 2.0 V ASP.NET AJAX

ASP.NET AJAX Extension Library,


, , ASP.NET AJAX ,
,

ASP.NET AJAX 2007 , ASP.NET


Ajax-Enabled ,
JavaScript , XmlHttp ,
AJAX Extension , Silverlight ASP.NET AJAX

ASP.NET AJAX Extension , Visual Studio 2005


ASP.NET AJAX , ,
, , , ASP.NET AJAX
Web.config , ASP.NET
AJAX

ASP.NET AJAX ,
ASP.NET AJAX

Web.config ASP.NET AJAX Extension ,


ASP.NET AJAX Extension

, ASP.NET AJAX , Web.config


<configSections> , 1

2-38
ASP.NET AJAX ASP.NET 2.0 Q12

ASP.NET AJAX Configuration Section

<configSections>

<sectionGroup name="system.web.extensions"

type="System.Web.Configuration.SystemWebExtensionsSectionGroup,

System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,

PublicKeyToken=31bf3856ad364e35">

<sectionGroup name="scripting"

type="System.Web.Configuration.ScriptingSectionGroup,

System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,

PublicKeyToken=31bf3856ad364e35">

<section name="scriptResourceHandler"

type="System.Web.Configuration.ScriptingScriptResourceHandlerSection,

System.Web.Extensions, Version=1.0.61025.0,

Culture=neutral, PublicKeyToken=31bf3856ad364e35"

requirePermission="false"

allowDefinition="MachineToApplication"/>

<sectionGroup name="webServices"

type="System.Web.Configuration.ScriptingWebServicesSectionGroup,

System.Web.Extensions, Version=1.0.61025.0,

Culture=neutral, PublicKeyToken=31bf3856ad364e35">

<section name="jsonSerialization"

type="System.Web.Configuration.ScriptingJsonSerializationSection,

System.Web.Extensions, Version=1.0.61025.0,

Culture=neutral, PublicKeyToken=31bf3856ad364e35"

requirePermission="false" allowDefinition="Everywhere" />

<section name="profileService"

type="System.Web.Configuration.ScriptingProfileServiceSection,

System.Web.Extensions, Version=1.0.61025.0,

2-39
Part2

Culture=neutral, PublicKeyToken=31bf3856ad364e35"

requirePermission="false"

allowDefinition="MachineToApplication" />

<section name="authenticationService"

type="System.Web.Configuration.ScriptingAuthenticationServiceSection,

System.Web.Extensions, Version=1.0.61025.0,

Culture=neutral, PublicKeyToken=31bf3856ad364e35"

requirePermission="false"

allowDefinition="MachineToApplication" />

</sectionGroup>

</sectionGroup>

</sectionGroup>

</configSections>

<appSettings> ,

, <system.web> ,

1. <asp:ScriptManager> , ScriptManager
asp , <system.web> <pages>
2

2 asp System.Web.Extensions.dll

<pages>

<controls>

<add tagPrefix="asp" namespace="System.Web.UI"

assembly="System.Web.Extensions, Version=1.0.61025.0,

Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

</controls>

</pages>

2-40
ASP.NET AJAX ASP.NET 2.0 Q12

2. Web System.Web.Extension.dll , <system.


web> <compilation> , 3

3 System.Web.Extension

<compilation>

<assemblies>

<add assembly="System.Web.Extensions, Version=1.0.61025.0,

Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

</assemblies>

</compilation>

3. ASP.NET AJAX scripting request, asmx


, <system.web> <httpHandlers> ,
4

4 HTTP Handler , ASP.NET AJAX Scripting Request

<httpHandlers>

<remove verb="*" path="*.asmx"/>

<add verb="*" path="*.asmx" validate="false"

type="System.Web.Script.Services.ScriptHandlerFactory,

System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,

PublicKeyToken=31bf3856ad364e35"/>

<add verb="*" path="*_AppService.axd" validate="false"

type="System.Web.Script.Services.ScriptHandlerFactory,

System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,

PublicKeyToken=31bf3856ad364e35"/>

<add verb="GET, HEAD" path="ScriptResource.axd" validate="false"

type="System.Web.Handlers.ScriptResourceHandler,

System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,

PublicKeyToken=31bf3856ad364e35"/>

</httpHandlers>

2-41
Part2

4. ASP.NET AJAX HTTP , <system.web>


<httpModules> , 5

5 ASP.NET AJAX HTTP Module

<httpModules>

<add name="ScriptModule" type="System.Web.Handlers.ScriptModule,

System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,

PublicKeyToken=31bf3856ad364e35"/>

</httpModules>

<system.web>

, ASP.NET AJAX , ASP.NET


AJAX , <system.web> , 6

6 ASP.NET AJAX

<system.web.extensions>

<scripting>

<webServices>

<!-- Uncomment this line to customize maxJsonLength and add a

custom converter -->

<!--

<jsonSerialization maxJsonLength="500">

<converters>

<add name="ConvertMe"

type="Acme.SubAcme.ConvertMeTypeConverter"/>

</converters>

</jsonSerialization>

-->

2-42
ASP.NET AJAX ASP.NET 2.0 Q12

<!-- Uncomment this line to enable the authentication service.

Include requireSSL="true" if appropriate. -->

<!--

<authenticationService enabled="true"

requireSSL = "true|false"/>

-->

<!-- Uncomment these lines to enable the profile service. To

allow profile properties to be retrieved

and modified in ASP.NET AJAX applications, you need to add

each property name to the readAccessProperties and

writeAccessProperties attributes. -->

<!--

<profileService enabled="true"

readAccessProperties="propertyname1, propertyname2"

writeAccessProperties="propertyname1, propertyname2" />

-->

</webServices>

<!--

<scriptResourceHandler enableCompression="true"

enableCaching="true" />

-->

</scripting>

</system.web.extensions>

, IIS 7.0 ASP.NET AJAX, <system.webServer >


, IIS 7.0 , 7

2-43
Part2

7 IIS 7.0 ASP.NET AJAX

<validation validateIntegratedModeConfiguration="false" />

<modules>

<add name="ScriptModule"

preCondition="integratedMode"

type="System.Web.Handlers.ScriptModule, System.Web.Extensions,

Version=1.0.61025.0, Culture=neutral,

PublicKeyToken=31bf3856ad364e35"/>

</modules>

<handlers>

<remove name="WebServiceHandlerFactory-ISAPI-2.0"/>

<add name="ScriptHandlerFactory" verb="*" path="*.asmx"

preCondition="integratedMode"

type="System.Web.Script.Services.ScriptHandlerFactory,

System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,

PublicKeyToken=31bf3856ad364e35"/>

<add name="ScriptHandlerFactoryAppServices" verb="*"

path="*_AppService.axd" preCondition="integratedMode"

type="System.Web.Script.Services.ScriptHandlerFactory,

System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,

PublicKeyToken=31bf3856ad364e35"/>

<add name="ScriptResource" preCondition="integratedMode"

verb="GET, HEAD" path="ScriptResource.axd"

type="System.Web.Handlers.ScriptResourceHandler,

System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,

PublicKeyToken=31bf3856ad364e35" />

</handlers>

2-44
ASP.NET AJAX ASP.NET 2.0 Q12

, , , , ,
ASP.NET AJAX, ASP.NET AJAX

1. ASP.NET AJAX

2. Web.config, Web.config

3. ( )

4. ,

, ASP.NET AJAX ,
http://ajax.asp.net

2-45
Q13 ASP.NET AJAX 1.0
ASP.NET 3.5
V ASP.NET 2.0

ASP.NET 2.0 ASP.NET AJAX 1.0 AJAX ,


.NET Framework 3.5 (ASP.NET 3.5) ,
ASP.NET 3.5, ASP.NET 3.5 ,
ASP.NET AJAX,

Visual Studio 2008 2007 11 ,


Microsoft .NET Framework 3.5, 3.0
, (LINQ ) (ADO.
NET Entity Framework) , ASP.NET 3.5 ,

, ASP.NET AJAX .NET Framework ,


3.5, ASP.NET 3.5 , , ASP.NET AJAX 1.0
ASP.NET 3.5 , ASP.NET AJAX 1.0
, ASP.NET 3.5

, Visual Studio 2008 ,


, , Visual Studio 2008 ASP.NET AJAX
1.0 ( , )

Visual Studio 2008 , ASP.NET 2.0 ,


,

2-46
ASP.NET AJAX 1.0 ASP.NET 3.5 Q13

, Visual Studio 2008 Web.config , 2.


0 3.5, ASP.NET , ASP.NET AJAX

Web Application Project ,


ASP.NET AJAX 1.0 , ,

, .NET Framework 3.5 ASP.NET AJAX Control Toolkit,


AJAX Control Toolkit ( AJAX Control Toolkit 1.
0 , AJAX Control Toolkit 3.5 ) , 1.0
1.0.10920.0, 3.5 AJAX Control Toolkit 3.0.
11119.9

, Web.config (binding redirect) ,


AJAX .NET 3.5 AJAX

<configuration>

<runtime>

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

<dependentAssembly>

<assemblyIdentity name="System.Web.Extensions"

publicKeyToken="31bf3856ad364e35"/>

2-47
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0"

newVersion="3.5.0.0"/>

</dependentAssembly>

<dependentAssembly>

<assemblyIdentity name="System.Web.Extensions.Design"

publicKeyToken="31bf3856ad364e35"/>

<bindingRedirect oldVersion="1.0.0.0-1.1.0.0"

newVersion="3.5.0.0"/>

</dependentAssembly>

</assemblyBinding>

</runtime>

</configuration>

, ASP.NET AJAX 1.0

Visual Studio 2008 ASP.NET AJAX 1.0 , ASP.NET AJAX 1.0 ,


Visual Studio 2008 ASP.NET AJAX 1.0 ,

Using Visual Studio 2008 to target ASP.NET AJAX 1.0

http://blogs.msdn.com/webdevtools/archive/2007/07/30/using-vs-2008-
to-target-asp-net-ajax-1-0.aspx

Upgrading ASP.NET AJAX 1.0 Web Site and Web Applications to .NET Framework 3.5

http://blogs.msdn.com/webdevtools/archive/2007/07/28/upgrading-asp-
net-ajax-1-0-websites-and-web-applications-to-net-framework-3-5.aspx

Q12 ASP.NET AJAX ASP.NET 2.0

2-48

You might also like