Hey folks, I know this has to be one we have all seen a time or two. I'm trying to get my gridviews to not flicker when there is a partial post back so I'm using AjaxUpdatepanel with a timer as the asynch control. What happens is the page no longer flickers.
However, when the page does its asynch postback, if I have another tab selected, teh tab index gets reset to 0. Anyway, onto my code:
All good suggestions. I discovered the real problem was I did not set autopostback="true" on the tab control. Sometimes it is the stupidest little thing that can cause the most grief.
All-Star
35218 Points
9955 Posts
Moderator
TabPanel ignoring the tab I change to on postback
Feb 28, 2014 08:13 AM|bbcompent1|LINK
Hey folks, I know this has to be one we have all seen a time or two. I'm trying to get my gridviews to not flicker when there is a partial post back so I'm using AjaxUpdatepanel with a timer as the asynch control. What happens is the page no longer flickers. However, when the page does its asynch postback, if I have another tab selected, teh tab index gets reset to 0. Anyway, onto my code:
aspx:
.cs
Member
610 Points
254 Posts
Re: TabPanel ignoring the tab I change to on postback
Mar 02, 2014 11:47 AM|er_abhi|LINK
May be the solution in the following link will help:-
http://stackoverflow.com/questions/4585567/tab-index-is-reset-in-updatepanel
Happy Coding
Thanks.
Have a great day
All-Star
30411 Points
3628 Posts
Re: TabPanel ignoring the tab I change to on postback
Mar 04, 2014 12:11 AM|Fuxiang Zhang - MSFT|LINK
Hi,
I made a demo below, and it works fine my side. The TabContainer tabpanel index not been reset.
Code behind:
Making sure you have not disable the ViewState of the page or parent container.
Thanks.
Best Regards!
All-Star
35218 Points
9955 Posts
Moderator
Re: TabPanel ignoring the tab I change to on postback
Mar 04, 2014 07:11 AM|bbcompent1|LINK
All good suggestions. I discovered the real problem was I did not set autopostback="true" on the tab control. Sometimes it is the stupidest little thing that can cause the most grief.