Re: why does updating a div inside of an updatepanel still refreshes entire page?!?!!

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi again


GroupReader said:

Here's what I like best: Create updatePanels anywhere on your
page you want. Make sure they are all "conditional" and make sure you
DO NOT define any triggers. Make sure children as triggers is false.
Then, in the code-behind, call UpdatePanel.Update() method to tell
asp.net to refresh only the proper updatePanel and not the rest of the
page whenever you want. This seems to work really well.

That's sounds like great advice (why update twice, right?).
I implemented those changes.....Still got that darn update problem
(arg!)


GroupReader said:
My question: I don't really understant what you mean by "one of the
updatePanels has a webpage in it"? What, technically speaking, does
that mean? Are you using an IFrame? Are you fetching html from a
page and inserting it into a div for it to be rendered?

Yep, i am using a dynamically generated iframe:
Frame = HtmlGenericControl('iframe')
Then i point the src attribute to whatever url i want:
Frame.Attributes.Add("src", "http://www.google.com";)
That works great.
What stinks is that when i overlay a div on the iframe, and then tell
the UpdatePanel containing the div to update, the whole page flashes.

Kinda confusing....especially since if i change the div to an iframe,
i do not get an flash across the entire page....the update works as
expected

any thoughts.
thx again,
jojoba







.



Relevant Pages

  • Re: Document loaded:how to detect?
    ... The whole idea is to load into the DIV different texts clicking on the corresponding button. ... Let alone script injection, actually the code, in a nutshell, is: ... -frdata = a reference to the frame 'container' of div and iframe ... The button that should start the process of loading the iframe and transferring the content to the div is: ...
    (comp.lang.javascript)
  • Re: dynamic menu
    ... The problem occurs because of the z-index behaviour of HTML elements. ... "So what that means is an IFrame can block out the select box, ... DIV at the same time. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Editable IFRAME
    ... I have an editable Iframe control that I am using to allow users to ... two ways to accomplish this. ... when the button is clicked it moves the DIV based on how high the DIV ... location is set in the cells valign property. ...
    (comp.lang.javascript)
  • Re: newbie: css position of IFRAME
    ... Jeff wrote: ... > I want the iframe to fill the entire space the DIV it is ... side language tools (PHP, ASP, Server side inlcudes, etc). ...
    (alt.html)
  • Re: IE6 Bug Workaround ?????
    ... Using an iframe complicates matters, because I wanted the functionality ... use a "floating" iframe instead of a div. ... this should obscure the DDL, but it appears on the surface. ...
    (microsoft.public.dotnet.framework.aspnet)