iFrame parser error after upgrading to .NET 4.5

后端 未结 10 2154
清酒与你
清酒与你 2020-12-02 19:27

We have recently upgraded all of our WebForms projects to .NET 4.5, and encountered a parser issue when loading pages with an iFrame element. We have corrected

10条回答
  •  感动是毒
    2020-12-02 20:14

    From .NET 4.5, Microsoft decided to change the iframe from a HtmlGenericControl to its own control, a HtmlIframe. so you have to change the

    System.Web.UI.HtmlControls.HtmlGenericControls to System.Web.UI.HtmlControls.HtmlIframe
    

提交回复
热议问题