FIX: ???? ?? "?????? ???????? ???? ID ?? ???" ?????? ????? ??????? ???? ?? ?? ?????? ??? ?? ???? ????? ?????????? ???????? Webforms ???? ?? ???

???? ?????? ???? ??????
???? ID: 834608 - ?? ???????? ?? ?????? ??? ?? ?? ???? ???? ???? ??.
??? ?? ??????? ???? | ??? ?? ??????? ????

?? ????? ??

?????

?? ?? ?????? ??? ?? ???? ????? ?????????? ???????? ?? Webform ???? ?? ???, ?? ??? ??? ?? ??? ?????? ???? ??? ????? ?? ???? ???? ?? ?? ?????? ????? ??????? ???? ??:
'_909B6e15b33' ???? ID ?? ??? ?? ?? ???? ???????? ????? FindControl ???????? ??? ????? IDs ?? ??? ?????? ???

?????: ??? unhandled ????? ??????? ??????? ??? ?????? ?? ???????? ?? ?????? ????? ?? ?????? ?? ???? ??? ?? ???? ??? originated ??? ??? ???? ??????? ?? ??? ????? ????? ?? ??????? ?????

????? ?? ?????: System.Web.HttpException: '_909b6e15b33' ???? ID ?? ??? ?????? ???????? ????? FindControl ???????? ??? ????? IDs ?? ??? ?????? ???
???:???? "???" ?????? ????? ??? ??? ?? ????????? ???? ???

???:?????? ?????? ?? ?????????? ???????? ?? ???? ??? ???? ??????? ?? ??? ?? ???? ?? "??????" ??? ??????

????

?? ?????? ?? ???? ?? ??????? ???? ?? ??? ??? ????? ??? ???? ??? ??LoadCachedControl?????? ?? ???????? ???????? ??? ?? ???? ???? ???? ?? ???????? ??? ?? ?????? ??? ?? ??? ?????????? ???????? ?? ?? ??????? ?? ??? ???? ??? ?? ?? ???????? ID ???? ?? ??? ?????? ??? ???????, ?? ??????? ID ????? ???? ???? ?? ?? ??????? ID ?????? ??? ?? ??? ?????????? ???????? ?? ????? ???? ??? ?? ??????? ?? ???? ?? ???? ?? "?????" ??? ??? ?????? ?????? ???

???????? ??????? ?? ???, Microsoft ?????? ??? ??? ???? ????? ?? ??? ????? ???? ?????? ????? ????::
837000????? ???? ?? ?? ?????? PartialCachingControl.CachedControl ???

????????

???????????? ???????? ?? ????? ?? ?? ?????? ???: ?? Microsoft Windows ??????? ?????? ?? ?? ???????? ??? ??????? ????? (OCM)? ??? ?? Windows Server 2003 ?? ????? ????, ?? ????????? ???? ???? ?? ?? Windows Server 2003 (OCM) ?????? ?? ???????? ??????? Windows Server 2003 ???? ??????? .NET Framework 1.1 ??????? ?? ??????? ???? ??? ??? ?? Windows Server 2003 ?? ????? ?? ?? ???????? ?????? ?? ????? ?? ??????? ?????? ?? ????? ???? ?? ??? ???? ???? ?????

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

?? Microsoft ?? ?? ??????? ???????? ?????? ??, ?? ?? ???? ??? ?????? ?? ?? ???? ?? ??? ?? ????? ????? ?? ???? ??? ??? ??.. ??? ???? ????? ???????? ?? ???? ???? ?? ?? ??????? ?????? ?? ????? ?? ??? ???.. ?? ???????? ?? ??? ???????? ??????? ??? ?? ???? ???.. ?????, ??? ?? ?? ?????? ?? ???? ??? ???????? ???? ???, ?? ?? ????? ????? ?? ?? ???? Microsoft .NET Framework 1.1 ?????? ??? 1 ?????? ?? ???????? ????? ???? ?? ??? ????????? ???

?? ?????? ?? ????? ?? ???? ?? ???, ???????? ??????? ???? ?? ??? Microsoft ?????? ?????? ???? ?? ?????? ????.. Microsoft ?????? ?????? ?????? ?? ??? ?????? ?? ???? ?? ??? ?? ?????? ????? ?? ???? ??? ??????? ?? ???, ????? Microsoft ??? ???? ?? ????::
http://support.microsoft.com/contactus/?ws=support
???:????? ?????? ???, ?? ????? ?? ?????????? ?????? ???????? ?? ???? ???? ??? ???? ??? ?? ???? ???, ??? ??? Microsoft ?????? ????????? ????????? ???? ?? ?? ??? ??????? ?????? ???? ?????? ?? ?????? ?? ???? ??.. ???????? ?????? ???????? ?? ?? ???????? ?? ??? ??????? ?????? ????? ???? ????? ?? ?? ??????? ?????? ?? ??????? ???? ????..

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

??? ???? ?? ????????? ?? ??? ??? ???, ?? ???? ???????? ?? ???????? ???? ?? ??? ???? ??? ?? ???? ?? ?? ???? ?? "???? ???????" ??? ??? ???????? ??? ?? ??????? ?? ????? ?????

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

?? ?????????? ?????? ?? ????????? ??????? ??? ????? ????????? (?? ??? ???) ?? ????? ?????? ??? ???????? ???? ?? ??????? ?? ??? ?????? ?? ???, ??????? ????????? ??? (UTC) ??? ???????? ??.. ?? ?? ????? ??????? ????? ???, ?? ?? ??????? ??? ??? ?????? ???? ???? ??.. "UTC ?? ??????? ??? ??? ???? ????? ?? ???, ???????? ??? ??? ""?????? ?? ??? ???"" ??? """"??? ???????"" "??? ?? ????? ????..
   Date         Time   Version            Size    File name
   --------------------------------------------------------------
   04-Feb-2004  04:14  1.1.4322.996      258,048  Aspnet_isapi.dll  
   04-Feb-2004  04:14  1.1.4322.996       20,480  Aspnet_regiis.exe  
   04-Feb-2004  04:14  1.1.4322.996       32,768  Aspnet_state.exe  
   04-Feb-2004  04:14  1.1.4322.996       32,768  Aspnet_wp.exe    
   16-May-2003  00:49                     33,522  Installpersistsqlstate.sql
   16-May-2003  00:49                     34,150  Installsqlstate.sql
   04-Feb-2004  04:05  1.1.4322.996       94,208  Perfcounter.dll  
   04-Feb-2004  04:10                      8,571  Smartnav.js
   05-Feb-2004  05:11  1.1.4322.996    1,220,608  System.dll       
   05-Feb-2004  05:11  1.1.4322.996      241,664  System.messaging.dll  
   05-Feb-2004  05:11  1.1.4322.996      323,584  System.runtime.remoting.dll  
   05-Feb-2004  05:11  1.1.4322.996      131,072  System.runtime.serialization.formatters.soap.dll  
   05-Feb-2004  05:11  1.1.4322.996    1,257,472  System.web.dll   
   05-Feb-2004  05:11  1.1.4322.996      819,200  System.web.mobile.dll  
   05-Feb-2004  05:11  1.1.4322.996      569,344  System.web.services.dll  
   05-Feb-2004  05:11  1.1.4322.996    1,339,392  System.xml.dll   
   04-Feb-2004  04:10                     14,482  Webuivalidation.js

??????

Microsoft ?? ?????? ?? ?? ?? ?? ???? ?? "?? ?? ????" ???? ??? ???????? Microsoft ???????? ??? ?? ?? ?????? ??..

???? ???????

?????? ?? ???: ??????? ???? ?? ??? ???

  1. ?????? ?? ??? ??? ?????? ?? ????? ???, \inetpub\wwwrooot\PageCaching ??????? ??????
  2. ?????????? ???????? ?? ????? ??? Test1.ascx ????? ?? ??? ????? ??? ?? ????? ????, ?? ???? ??? ??? 1 ??? ???? ?? ??? ?????? ?? ??? ??? ??????:
    <%@ OutputCache Duration="60" VaryByParam="none" %>
    <%@ Control Language="c#" "%>
    <asp:Label id="lblTest1" runat="server">Test 1 Control</asp:Label>&nbsp;
    <asp:Label id="lblDynamic" runat="server">Dynamic</asp:Label>
  3. ?????????? ???????? ?? ????? ??? Test2.ascx ????? ?? ??? ????? ??? ?? ????? ????, ?? ???? ??? ??? 1 ??? ???? ?? ??? ?????? ?? ??? ??? ??????:
    <%@ OutputCache Duration="60" VaryByParam="none" %>
    <%@ Control Language="c#" "%>
    <asp:Label id="lblTest1" runat="server">Test 2 Control</asp:Label>&nbsp;
    <asp:Label id="lblDynamic" runat="server">Dynamic</asp:Label>
  4. PageCaching.aspx ??? ?? ?? ??? ??????? ????? ?? ??? ????? ??? ?? ????? ????, ?? ???? ??? ??? 1 ??? ???? ?? ??? ?????? ?? ??? ??? ??????:
    <script runat=server>
        void Page_Init(Object sender, EventArgs ev)
        {
    			Control Pane = Page.FindControl("uc1");
    			Control Item = (Control) LoadCachedControl("test1.ascx", "Dynamic1a");
    			Pane.Controls.Add(Item);
    
    			Pane = Page.FindControl("uc2");
    			Item = (Control) LoadCachedControl("test2.ascx", "Dynamic2a");
    			Pane.Controls.Add(Item);
    
    			Pane = Page.FindControl("uc3");
        }
    
    public PartialCachingControl LoadCachedControl(string r_ControlName, string r_ControlID)
    {
    			PartialCachingControl Control = (PartialCachingControl) Page.LoadControl(r_ControlName);
    			Control.ID = r_ControlID;
    			return Control;
    }			                                                
    </script>
    
    
    <%@ Page language="c#" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
    <HTML>
    	<HEAD>
    		<title>WebForm1</title>
    		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
    		<meta name="CODE_LANGUAGE" Content="C#">
    		<meta name="vs_defaultClientScript" content="JavaScript">
    		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
    	</HEAD>
    	<body>
    		<form id="Form1" method="post" runat="server">
    			<table>
    				<tr>
    					<td id="uc1" runat="server"></td>
    				</tr>
    				<tr>
    					<td id="uc2" runat="server"></td>
    				</tr>
    				<tr>
    					<td id="uc3" runat="server"></td>
    				</tr>
    			</table>
    		</form>
    	</body>
    </HTML>
  5. Http://localhost/PageCaching/PageCaching.aspx ???? ?? ??? ??????? ????? ?? ?? ???? ?? "?????" ??? ??? ?????? ?????? ????? ??????? ???? ???
???????? ??????? ?? ???, Microsoft ?????? ??? ??? ???? ????? ?? ??? ????? ???? ?????? ????? ????::
824684Microsoft ?????????? ???????? ?? ????? ???? ?? ??? ????? ?? ???? ???? ???? ???????? ?? ?????

Using the PartialCachingControl class

ThePartialCachingControlclass has aCacheControl???? TheCacheControlproperty can be used to determine if a user control has already been cached. TheCacheControlproperty returns the user control only when the output of the user control output is not cached. If the user control output exists in the output cache, theCacheControlproperty returns a null reference because the control is never instantiated (in Microsoft Visual Basic, theCacheControlproperty returns Nothing). ???????,CacheControlproperty always returns FALSE if thePartialCachingControlclass is not in the control tree.

??????

???????? ??????? ?? ???, ????? ???? ???????? ?? ????? ?? ?????? ?? Microsoft ???????? ??? ?????::
306459ASP.NET ????? ???????? ????????? ??????
308378Fragment ?????? asp.NET ??? ????? C# .NET ?? ????? ?? ???? ?? ??? ???? ????
308645Fragment ?????? asp.NET ??? Visual Basic .NET ?? ????? ?? ???? ?? ??? ???? ????

???

???? ID: 834608 - ????? ???????: 05 ?????? 2010 - ??????: 2.0
???? ???? ???? ??:
  • Microsoft .NET Framework 1.1
  • Microsoft Visual Studio .NET 2003 Professional Edition
  • Microsoft Visual Studio .NET 2003 Enterprise Developer
  • Microsoft Visual Studio .NET 2003 Enterprise Architect
  • Microsoft ASP.NET 1.1
??????: 
kbqfe kbhotfixserver kbfix kbnetframe110presp1fix kbcodegen kbcode kbbug kbmt KB834608 KbMthi
???? ?????? ????????
??????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??.
?????????? ?? ??????? ????????? ??????? ??:834608

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

 

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