views:

158

answers:

1

Hello,

I have some updatepanels in asp.net page. I want updatepanel 2 get refreshed when updatepanel 1 does, but UpdatePanel 2 has his UpdateMode attributed set to Conditional and ChildrenAsTrigger=False, because it has another updatePanels inside and i need to control the way it is refreshed. I was trying to make a trigger for the other updatepanel but this seems not work, maybe i am missing something

Is there a way to make this happen?

If you can't figure a valid example, imagine product category list and product list, when selected category change (linkbutton inside updatepanel) product list is refreshed which is inside another updatepanel, product list change for example when you order by price (order is inside other updatepanel) and i don't want category list gets refreshed.

thanks in advance.

+1  A: 

You can call updatePanelProdList.Update() inside the code-behind file of your page. The place to call this method in your scenario would be the event handler for the category change LinkButton.

Ronald Wildenberg
interting, but if understand well, that will cause another postback to updatepanelProductList when the page finish his event handling. i mean first post back linkbutton event is raised updatepanel is rendered in the page and another postback for updatepanelprodList update. Is there a way to avoid this two postbacks
dev-cu
There is only one postback. You select a category and a postback occurs. In your event handler (server side) you call Update. The only thing that happens is that you tell ASP.NET that it should rerender the UpdatePanel. No extra postback occurs.
Ronald Wildenberg