Pular para o conteúdo principal

Postagens

Mostrando postagens com o rótulo iFrame

iFrame - HTML5

No HTML 5 a tag iframe teve algumas modificações. Alguns atributos foram descontinuados, são eles: align frameborder height longdesc marginheight marginwidth scrolling width Todos esses utilizados para modificar o estilo do iframe. Agora, com HTML 5 isso deve ser feito com CSS. O atributos atuais são: src - url da página que será carregada. srcdoc - ao inves de um html pode ser adicionado um conteudo dentro, scripts também podem ser utilizados. name - nome do iframe sandbox - permite adicionar restrições extras sobre o conteúdo. Ao adicionar bloqueia várias funcionalidades. nao permite a navegação em outro contexto nao permite navegacao ao top-level impede plugins <embed><object><applet> impede que um iframe filho possua seamless força uma origem única, impedindo acesso a mesma origem. bloqueia submissão de formulários e execução de scripts bloqueia auto-trigger (dentro do iframe não terá nada iniciando automaticamente). Sandbox funciona como...

iFrame parser error after upgrading to .NET 4.5

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 this by converting of the  iFrame  from  HtmlGenericControl  to  HtmlIframe . This has corrected all of the parser errors when we run our code locally. When we deploy the app, we get the following error message: Parser Error Message: The base class includes the field 'frame', but its type (System.Web.UI.HtmlControls.HtmlIframe) is not compatible with the type of control (System.Web.UI.HtmlControls.HtmlGenericControl).** When I deploy the old code with the  HtmlGenericControl  the error goes away suggesting that even though we have installed .NET 4.5, the server is still using an older version? I've tried removing and reinstalling .NET it making sure to register asp with IIS. Windows 2008 R2 with IIS 7.5 and .NET 4.5 The basic problem is an incompatibility between...