HOW TO: ????? ?????? ?????? ??????? ?????? ????? ?? ASP.NET

?????? ????????? ?????? ?????????
???? ???????: 315896 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

??????

???? ??? ?????? ????? ????? ???? ??????? ASP.NET ???? ????? ????? ASP.NET ??????? ?? ????? ?????? @ OutputCache. ????? ????? ????? ?????? @ OutputCache ?????? ????? ????? ?? ???? ????? ASP.NET ?? ?? ??? ??????? ??? ???? ???????.

???????

???? ??????? ??????? ??????? ?????? ??? ????? ?????? ???????? ?????? ? ??? ??????? ???? ???????:
  • Microsoft Visual Studio .NET
  • ???? ??????? ???????? ?? Microsoft "(IIS) 4.0 ?? ????? ??????? ???????? ?? Microsoft" (IIS) 5.0
????? ??? ??????? ??? ??????? ??? ???????? ???????:
  • ??????? ???
  • Microsoft ASP.NET

??? ?????

????? ??????? ?????? ??????? ????? ??? ????????? ?? ???????. ???? ????? ????? IIS ??? ???? ? IIS ???? ?????? ?? ????? ?????? ????? ?? ?? ??????. ?? ??? ???????? IIS ???????? ?????? ??????? ?? ??????? ?????? ??????. ???? ??????? @ OutputCache ???? ???? ?? ??????? ??? ??? ??? ?????? ?? ????? ???????? ???? ?????? IIS ?????? ?? ?? ????????? ???? ????? ?? ???????.

??? ???? ??????? ??? ????? ????? ?????? ??? ????? ?????? ?? ??? ???? ?????????? ??? ?????? ?????? ??? ???? ????????. ??? ??????? ??????? @ OutputCache ?????? ??????? ?? ??????? ?? ????? ??? ??????????? ??? ????? ???????? ??? ?????? ???? ????? ?????. ????? ????? ??????? ??????? @ OutputCache ????? ????????? ?? ????? ?????? ?? ?? ??? ??? ???? ??? ????????? ??? ??????. ???? ???? ???? ?????? ??? ???????? ???? ?? ????? ???? ?????.

????? ????? ??? ASP.NET ???? ????????? OutputCache @

?? ??? ?????? ????? ????? ??? ASP.NET ?????? ????? ?????? @ OutputCache ????? ?????? ????? ????? ?????.
  1. ???? ??????? ??????? ?????? ????? ??? ASP.NET ???? ?? Visual Basic .NET:
    1. ???? Visual Studio .NET.
    2. ?? ??????? ???? ??? ??? ???? ?? ???? ??? ???????.
    3. ?? ???? ?????? ????? ???? ? ???? ??? ?????? Visual Basic ??? ????? Project ?? ???? ??? ????? ??? ASP.NET ??? ?????.
  2. ??????? ??? ????? ??? HTML ?? ???? WebForm1.aspx ?? ?? ?????? ??????? ??????? ?????? ??? ????? ?????? @:
    <%@ OutputCache Duration="10" VaryByParam="none" %>
    						
    ????????? ???????? ??? ?????? ??? ??? ??????? @ OutputCache ??? 10 ????? ???? ??? ??????? ?????? ??????? ?????? ?? 10 ?????. ???????? ??? ???? ????? VaryByParam ????? ?? ????? ??????? ???? ???? ????????? ????? ???????? ??? ????????? ???? ????? ???????? ????? ??????? ??????? ?????? ??? ??????. ??? ??????? ???? ???? ??? ?????? ??? ????? ????????? ???????? ?????? VaryByParam ??? ??.
  3. ?? ????? ????? HTML WebForm1.aspx ?? ?????? ???????? ???????? ??????? ??? ???????? <form>??? ?? ????? ?????????? ???? ????? ??? ???????:
    <asp:Label>
    Last cached: <%Response.Write(Now())%>
    </asp:Label>
    						
    ??? ??????? ??? ??????? ???? ??? ??? ?? ????? ??????. ??? ????? ?????? ???????? ?? ??? ??????? ??? ??? ????? ?? 10 ?????, ??? ?? ??? ?????? ????? ??????.
  4. ?? ??????? ???? ???? ??? ???.
  5. ?? ??????? ????? ? ???? ??? ????? ????.
  6. ???? ??? ?????? ?????? ??? ?????? ?? ???? ??? ??? ?? ??????. ???? ???? ????? ? ???? ???? ????? ??????.
  7. ?? ?????? ?????? ??? ????. ???? ?? ???? ??????? ??? ??? ?????? ?????? ??????? ??????? 10.

????? ??? ????????? ????????

<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="WebApplication1.WebForm1"%>
<%@ OutputCache Duration="10" VaryByParam="none" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
    <head>
        <title>WebForm1</title>
        <meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
        <meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
        <meta name="vs_defaultClientScript" content="JavaScript">
        <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
    </head>
    <body MS_POSITIONING="GridLayout">
        <form id="Form1" method="post" runat="server">
        <asp:Label>
            Last Cached: <%Response.Write(Now())%>
        </asp:Label>
        </form>
    </body>
</html>
				
??????: ?? ????? ??? ????? ??? Inherits ?? ??? ????????? ???????? ?????? ??????? ??? ??? ??????? ? "????? ???":
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="WebApplication1.WebForm1"%>
				
???????? ???????? ?????? ????? ?????? ??????? WebApplication1 ?????? "????? ???" WebForm1.

???? ?? ???? ?? ???

  1. ??? ??? ?????? ????????.
  2. ?? ?? ???? ?????? ??? ???? .aspx ??? ?? ??? ?????? ?????. ???? ?? ???? ???????? ??? ??? ????? ???? 10 ??????? ??? ??? ?? ?????? ??? ?????? ?? ??? ?????.
  3. ??? 10 ???? ???????? ?? ????? ???? .aspx. ???? ?? ???? ???????? ????? ?????.



?????

????? ?? ?????????? ???? ??? ????? Microsoft ??????? ??? ?????:
?????? ASP.NET
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconaspoptimization.asp

????? ??????? ?????? ?? ASP.NET
http://msdn2.microsoft.com/en-us/library/xsbfdd8c(vs.71).aspx

??????? ?????? ????? ASP.NET
http://msdn2.microsoft.com/en-us/library/06bh14hk(vs.71).aspx

@ OutputCache
http://msdn2.microsoft.com/en-us/library/hdxfb6cy(vs.71).aspx

???????

???? ???????: 315896 - ????? ??? ??????: 14/????? ??????/1428 - ??????: 3.6
????? ???
  • Microsoft ASP.NET 1.1
  • Microsoft ASP.NET 1.0
????? ??????: 
kbmt kbcaching kbhowtomaster kbio kbperformance kbwebforms KB315896 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????315896

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com