Hi guys,
I need to add an iframe in page tab, because the page editor can change the Iframe Link whenever he want. So for that i used StaticHTML widget and place the markup. when I click on save , it was disappeared and showing some error in event Log. Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.
Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.
So how can i fix this or any other way to fulfil my requirement.
I'm using Kentico 8.
Thanks
Naresh Ede
This means that google doesn't allow you to iframe its site :-/ Please inject just those sites you have a control over or those that allow to be iframed.
In the static text webpart look for the Performance section and make sure the Disable view state checkbox is not checked.
Could also be an issue with the page being displayed in the iframe.
Thanks Brenden,
I can able to edit and save the widget now.
But i faced another issue, i.e i'm removing the widget and trying to save the page then the widget is not being removed and still remains in page.
Please help me with this also.
Any script errors?
Can you disable any custom CSS and/or scripts you load into the page and see if that helps. This might point you towards the source of the error.
Yes I'm getting the error in console
Refused to display 'https://www.google.com.au/?gfe_rd=cr&ei=uPilVOfREaGN8QfsvIGABQ&gws_rd=ssl' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'
Please, sign in to be able to submit a new answer.