Breaking Change: New Send to Friend image button in 4.2
Last Post 1/16/2010 09:17 AM by David O'Leary. 0 Replies.
Author Messages Informative
David O'Leary
Efficion Consulting Staff
Basic Member
Basic Member
Posts:151
Avatar

--
1/16/2010 09:17 AM

    In version 4.2, we changed the Send To Friend button from an asp:button to an asp:imagebutton. So, if you have a custom ArticleDetail template from version 4.1.x or earlier that includes btnSendToFriend, you will get an error when you try to view a details page that uses that template.

     

    To resolve this issue, you will need to replace your asp:button with an asp:imagebutton.

     

    The error you'll see if this is your problem will be something along the lines of:

     

    Error Loading the Article List:System.Web.HttpParseException: The base class includes the field 'btnSendToFriend', but its type (System.Web.UI.WebControls.ImageButton) is not compatible with the type of control (System.Web.UI.WebControls.Button). ---> System.Web.HttpParseException: The base class includes the field 'btnSendToFriend', but its type (System.Web.UI.WebControls.ImageButton) is not compatible with the type of control (System.Web.UI.WebControls.Button). at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildFieldDeclaration(ControlBuilder builder) at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) at System.Web.Compilation.TemplateControlCodeDomTreeGenerator.BuildMiscClassMembers() at System.Web.Compilation.BaseCodeDomTreeGenerator.BuildSourceDataTree() at System.Web.Compilation.BaseCodeDomTreeGenerator.GetCodeDomTree(CodeDomProvider codeDomProvider, StringResourceBuilder stringResourceBuilder, VirtualPath virtualPath) at System.Web.Compilation.BaseTemplateBuildProvider.GenerateCode(AssemblyBuilder assemblyBuilder) at System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider) --- End of inner exception stack trace --- at System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider) at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at EfficionConsulting.Articles.ArticleList.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\DNNModDev\DesktopModules\Articles\ArticleList.ascx.vb:line 74



    ---