Update Panel is affecting other Update panels!

Last post 07-08-2009 11:20 PM by Thomas Sun – MSFT. 7 replies.

Sort Posts:

  • Update Panel is affecting other Update panels!

    07-05-2009, 3:07 PM
    • Participant
      1,233 point Participant
    • Ibro
    • Member since 10-08-2008, 2:17 PM
    • Posts 391

     Hi everyone, I have three update panels in my MasterPage ; one for the main Content area, one for the baner and one for the log in section; the baner Panel has a timer to triger the images to be changed every three seconds. but it is affecting my login panel each time it changes the image. as i try to log in i cant because it blinks every three seconds and the cursor is lost,

    how can I overcome this vexatious thing. I dont understand why my textboxWatermarkExtender blinks every time the Baner Panel blinks as they are completely two deffirent panels.

    Many Thanks IBRO

    does this reply help you? mark as an answer
    Ibro
  • Re: Update Panel is affecting other Update panels!

    07-05-2009, 5:32 PM
    • All-Star
      60,801 point All-Star
    • anas
    • Member since 09-21-2006, 8:31 AM
    • Palestinian Territory, Occupied
    • Posts 6,851
    • Moderator

    Hi,

    Make sure to set the UpdateMode for each UpdatePanel to "Conditional"; if you didn't do that , each time you do a partial postack, all the updatepanels will be updated.

    Regards,

    Anas Ghanem | Blog

  • Re: Update Panel is affecting other Update panels!

    07-05-2009, 10:52 PM

     Set UpdateMode property to Conditional of UpdatePanel

    How UpdatePanel Controls Are Refreshed

    The following list describes the property settings of the UpdatePanel control that determine when a panel's content is updated during partial-page rendering.

    • If the UpdateMode property is set to Always, the UpdatePanel control’s content is updated on every postback that originates from anywhere on the page. This includes asynchronous postbacks from controls that are inside other UpdatePanel controls, and postbacks from controls that are not inside UpdatePanel controls.

    • If the UpdateMode property is set to Conditional, the UpdatePanel control’s content is updated when one of the following is true:

      • When the postback is caused by a trigger for that UpdatePanel control.

      • When you explicitly call the UpdatePanel control's Update() method.

      • When the UpdatePanel control is nested inside another UpdatePanel control and the parent panel is updated.

      • When the ChildrenAsTriggers property is set to true and any child control of the UpdatePanel control causes a postback. Child controls of nested UpdatePanel controls do not cause an update to the outer UpdatePanel control unless they are explicitly defined as triggers for the parent panel.

    If the ChildrenAsTriggers property is set to false and the UpdateMode property is set to Always, an exception is thrown. The ChildrenAsTriggers property is intended to be used only when the UpdateMode property is set to Conditional.

    Chetan Sarode
    Software Engineer,
    Approva Systems Pvt Ltd,
    Pune, India.
  • Re: Update Panel is affecting other Update panels!

    07-06-2009, 11:24 AM
    • Participant
      1,233 point Participant
    • Ibro
    • Member since 10-08-2008, 2:17 PM
    • Posts 391

    thank for the reply, i have set the property as said, but still the textboxwatermarkextender is blinking,

    please help;

    does this reply help you? mark as an answer
    Ibro
  • Re: Update Panel is affecting other Update panels!

    07-08-2009, 3:08 AM
    Answer

     Hi,

    I can repro the issue even though I set each Updatepanel's UpdateMode to Conditional.

    Based on my farther research, I find that when the page is submitted to server, the water mark text will be removed because it cannot send the water mark text to server. This is by design.

    In your case, Timer fires the post back event and page is submitted to server, and when response is sent back to client, Watermarktext control attaches text to Textbox again. So you get the Textbox flash.

    You can avoid it by without using Watermarktext control.

    Thanks.

     

    Thomas Sun
    Microsoft Online Community Support

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
  • Re: Update Panel is affecting other Update panels!

    07-08-2009, 12:21 PM
    Answer
    • Participant
      1,233 point Participant
    • Ibro
    • Member since 10-08-2008, 2:17 PM
    • Posts 391

     thanks Thomas, I get the point but I thought the update panel purpose was to update part of the page not sending the whole page to the server.

    does this reply help you? mark as an answer
    Ibro
  • Re: Update Panel is affecting other Update panels!

    07-08-2009, 2:25 PM
    • Member
      2 point Member
    • Nati0105
    • Member since 07-08-2009, 5:44 PM
    • Posts 3

    Hello!

    I have the same problem, and I still don't know how to fix it.

    I have 2 updatepanels, each one with a timer, and both updatepanel's UpdateMode set to "Conditional".

    When one of the timers ir working, the other can´t do anything.

    I also put the content of the timers event into threads, but still don't work.

    Is there a way to fix this?, I need that if one of the updatepanel’s element, like a timer, is in loop, or just waiting for any kind of response, the other updatepanels can work independently.

    Thanks in advance for any help.

    Regards,

    Nati.


  • Re: Update Panel is affecting other Update panels!

    07-08-2009, 11:20 PM
    Answer

     Hi,

    Thanks for your response.

    When we use Updatepanel, the whole page will be sent to server like normal postback. The difference is server only sends partial response for Updatepanel that needs to be updated, and then Ajax client library implements update operation for Updatepanel block in client.

    Thanks.

     

    Thomas Sun
    Microsoft Online Community Support

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.
Page 1 of 1 (8 items)