I have an iframe in a content placeholder in an asp master page. The problem I am having is that everytime I open a new page that uses the master page as a reference it causes a complete page refresh including my iframe. Does anyone know how I can prevent the refresh on the iframe page alone. The iframe has an embedded media player that I do not want refreshed as the refresh keeps starting my music over again and I want it to play continuously as users browse through the site (unless of course if they turn the music off).
An iframe isn't the right thing to use for that. You have to put the media player in a master frame in a frameset.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan
Thanks Ray....I had thought about that but being a relatively new at web development I had read so many horror stories about framesets that I thought I would stay away from them. But, I will give it a try if this will solve my problem. Thanks so much for the reply.
I don't recommend the use of frames (or noise on web pages) but that's the only way I know to do what you want.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan
I am having the same issue where an iframe in contentform with a master page is refreshed on post backs, even those of ajax update panels (with update mode set to conditional) where the iand Mike are you thereframe is not supposed to reload.
I will look at framesets, with which I am not familiar, but was wondering if you ever figured out what was going on here?
Again, I have a page where I am required to have an iframe, and I'd like to use master pages, but the iframe in the contentform (which uses a master page) reloads on postbacks when it shouldn't. I put the same code in a page w/o a masterpage and the iframe does not reload on ajax postbacks.
In any case, would appreciate any wisdom you might have gained.
I am doing an async postback on page load from javascript and I was passing a javascript id that didn't include the "ctl00_ContentPlaceHolder1_" which are required bc of the master page.
In any case, not sure I made clear what my issue/resolution were, but if you have questions, don't hesitate to ping me. Code Below:
Bookmarks