Insert Iframe in Page Tab

Naresh Ede asked on January 3, 2018 06:19

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.

So how can i fix this or any other way to fulfil my requirement.

I'm using Kentico 8.

Thanks

Naresh Ede

Correct Answer

Jan Hermann answered on January 4, 2018 10:48

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.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Brenden Kehren answered on January 3, 2018 06:55

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.

1 votesVote for this answer Mark as a Correct answer

Naresh Ede answered on January 3, 2018 11:16

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.

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on January 3, 2018 11:29

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.

0 votesVote for this answer Mark as a Correct answer

Naresh Ede answered on January 4, 2018 04:58

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'

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.