Ajax postback causing UI to drop, full postback does not!

Last post 01-20-2009 9:45 AM by noahb. 5 replies.

Sort Posts:

  • Ajax postback causing UI to drop, full postback does not!

    01-19-2009, 10:57 AM
    • Member
      22 point Member
    • bmoyno
    • Member since 02-28-2006, 12:44 PM
    • Posts 45

    Hi there,

    From my masterpage, I have a scriptmanager setup. When a drop-down from a user control within the master page selects a different item, it does an postback which should update a header user control to display a different image.

    The alternative image displays fine, but the whole content seems to get pushed down about 10px when the ajax update is performed.

    When a full postback is done, the content displays perfectly (except for the postback!)

    I have looked at my css and can't see anywhere that is causing the content to be moved 10px down the screen. Any ajax update of my header user control, whether is displays an image or text or nothing causes the content to be dropped down.

    I'm totally at a loss here so any ideas are most welcome!

    Regards,
    Bmoyno

  • Re: Ajax postback causing UI to drop, full postback does not!

    01-19-2009, 12:22 PM
    Answer
    • Contributor
      2,049 point Contributor
    • noahb
    • Member since 12-13-2007, 1:08 PM
    • Brooklyn, NY
    • Posts 360

     You've gotta install something like FireBug so you can inspect the DOM & CSS right from your browser and see what the matter is.  Once you know the problem you can try to find a solution, but you don't yet really know the problem.  Let me know restate that: you know what's happening, but you don't know the problem (where are those 10px coming from) -- once you know the actual problem you can start to diagnose.

    Please click Mark as Answer if my reply helped you.

    http://blog.statichippo.com

    "Any fool can recall the flight of birds across a moonlit sky but it takes a genius to forget the face of his mother."
  • Re: Ajax postback causing UI to drop, full postback does not!

    01-20-2009, 3:13 AM
    • Member
      22 point Member
    • bmoyno
    • Member since 02-28-2006, 12:44 PM
    • Posts 45
    Thanks noahb, forgot about firebug ... will try that ...
  • Re: Ajax postback causing UI to drop, full postback does not!

    01-20-2009, 3:26 AM
    • Member
      22 point Member
    • bmoyno
    • Member since 02-28-2006, 12:44 PM
    • Posts 45

    Can't repeat the issue in firefox ... having a look at the developer toolbar for IE now ...

  • Re: Ajax postback causing UI to drop, full postback does not!

    01-20-2009, 5:53 AM
    • Member
      22 point Member
    • bmoyno
    • Member since 02-28-2006, 12:44 PM
    • Posts 45

    Firebug or the IE Developer toolbar didn't show up anything to explain the issue, but after lots of trial and error, I figured out that the RenderMode attribute of the UpdatePanel had to be set to:

    - RenderMode="Inline"

    That did the trick for me in IE and Firefox is still fine.

    Thanks for the help noahb and because of that I'm marking your response as answer.

    Cheers

  • Re: Ajax postback causing UI to drop, full postback does not!

    01-20-2009, 9:45 AM
    • Contributor
      2,049 point Contributor
    • noahb
    • Member since 12-13-2007, 1:08 PM
    • Brooklyn, NY
    • Posts 360
    Glad you got it working!
    Please click Mark as Answer if my reply helped you.

    http://blog.statichippo.com

    "Any fool can recall the flight of birds across a moonlit sky but it takes a genius to forget the face of his mother."
Page 1 of 1 (6 items)