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.

Recommended Answers

There is a updatemode on the update panels that you can set to conditional. Here is a tutorial on how to use it:

http://www.asp.net/ajax/videos/how-do-i-use-the-conditional-updatemode-of-the-updatepanel

Jump to Post

All 4 Replies

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.

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.

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.