Wednesday, March 21, 2012

Tabcontainer Postback Problem.

Hi friends,

I have a tabcontainer with six tabs in it. each tab has got a usercontroll. when i update contents in one tab it automaticaly loads all usercontrols in all six tabs . this slows down my application.i ahve wrapped each usercontrol with update panel with update mode = "conditional", still its not working. any idea on how to stop postback on other tabs when in update one tab.

Thanks

sandsanz

is your server side page_load wrapped in a page.ispostback? (in main page and all user controls?) is your outermost update panel set to conditional too? i've got the same scenario with tab controls and update panels (update containing 6 tabs containing updates and some with more tabs and updates) and it took some playing to get it to work right. All user controls load on the content page's page load and only reload on exposed methods...


Thanks Friend,

Actually my tabcontainer is not in update panel.. but each tabpanels inside it are in update panel with update mode condition. and all my usercontrols contains gridview.if i update one gridview in one usercontrol. it updates all usercontrols and application is terribly slow coz of that.i appreciate ur help.

Thanks


how do you originally load the grids and how are you updating the grids? (events?)


Hi,

Thank you for your post!

Are you create your usercontrols dynamically on the Init Event?

If so, no way to avoid the issue. I suggest you create your usercontrols at Design Time.

If not, create a simple repro of your problem for us, I cann't understand you well.

If you have further questions,let me know!

Best Regards,

No comments:

Post a Comment