I developed a Web Part that shows a Modal dialog. An iframe is returned from that dialog and with javascript, pasted into a div on the web part. This is rendered and everything works fine but it does not save the content, after refreshing or even clicking ok + apply.
How can I save the content on the web part page?