0

Hi! I am a .NET developer.
I have two consecutive web parts. Each webpart is inside an update panel.
So the scenario is like there are two update panels one after the other.
The problem I am facing is when one is fired the other is also firing.
The code snippet is too large to be shared, I am not sharing it.
Please help its urgent.
Thanks in advance.

3
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by soft_coder
0

The tutorial is excellent but the buttons are inside the webparts.
1. One webpart has three buttons.
2. The other has a dropdown list.

But the tutorial with the button outside.
Is there any way to solve the issue if the button are inside.

0

Yes when one updatepanel fires then all updatepanels on the page will also fire. You need to set the updatepanel UpDateMode to Conditional

<asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server">

Read
http://msdn.microsoft.com/en-us/library/bb386454.aspx

http://msdn.microsoft.com/en-us/magazine/cc163413.aspx

Edit: Sorry I see that svilla has already answer this. By the way in the first link I show it has the update button inside the update panel. I hope some of this help, as for myself I do not use asp updatepanels. The next link show other ways of doing updates.

Edited by Freon22: n/a

0

Thanks a lot svilla and Freon22. This has cleared all my doubts about Update Panels and its Pros and Cons.

Thanks once again.

Have a nice day.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.