Reputation: 4301
I have an ASP.Net page that is contained within an iframe the page has an update panel, that, in isolation, works however when the page is within the iframe, the update panel always produces a full postback. I guess that the problem is the iframe itself but id like to know
a) why it doesnt work b) if there is a solution beyond rolling my own controls and writing a whole load of js
EDIT
ok its ASP.Net 2.0 and the 1.0 toolkit the page broadly looks like this (Note for the pedants i haven't closed tags, this is just to show the basic structure)
Main Page
Form
table
td
iFrame
! -- contained page --
Form
asp:ScriptManager
asp:UpdatePanel
asp:Repeater
Upvotes: 0
Views: 1718
Reputation: 37225
Today I came across the same problem (trying to load gridviews asynchronously): A postback inside an iframe would reload the whole page, and ignore the postback event handler.
My solution was to use UFRAME.
Upvotes: 1
Reputation: 21685
I have been using some of my pages in IFrames using UpdatePanel, and they DO NOT produce any full page postbacks.
Can you describe the whole setup in more detail?
EDIT: Hmmm. The setup looks OK. Did you check whether the control which triggers the postback is placed inside the panel? Also, did you check for JS errors occuring before the ajax request fires?
Upvotes: 1