从Framework 2.0-3.5 升级到Framework 4.5时遇到 Iframe 转换为服务器控件遇到不兼容问题
错误信息:
but its type (System.Web.UI.HtmlControls.HtmlIframe) is not compatible with the type of control (System.Web.UI.HtmlControls.HtmlGenericControl).
原因分析:
在.NET Framework 4.5 中, iframe的HTML 标记不再向HtmlGenericControl类的映射,需映射到System.Web.UI.HtmlControls.HtmlIframe
参考文档:
本文探讨了从.NET Framework 2.0-3.5升级到4.5时遇到的Iframe转换为服务器控件的不兼容问题。具体表现为HtmlIframe与HtmlGenericControl之间的类型不匹配,并给出了在.NET Framework 4.5中正确的解决方案。
222

被折叠的 条评论
为什么被折叠?



