25-8 C# Example Throwing Errors
For "Professional ASP.NET 2.0 Special Edition", page 1031, I'm getting the following warnings/errors when implementing the code as written :
Warning - "The given expression is never of the provided (System.Web.UI.PartialCachingControl) type" for the segment after the "else if" that reads "(c1 is PartialCachingControl)".
Error message - "Cannot convert type 'WebApplication1.WebUserControl' to 'System.Web.UI.PartialCachingControl'" for the segement in the same "else if" declaration that reads "((PartialCachingControl)c1)" and for the same verbiage inside of the "else if" block.
Last edited by mhall; February 3rd, 2009 at 03:28 PM.
Reason: Clarifying edition and page number.