Home Search Member List Faq Register Login  
UltimateTabstrip
Hoe to maintain viewstate from tab to tab.

Thread Starter: Kaashi   Started: 10-01-2009 11:12 AM   Replies: 7
 Karamasoft Support Forums » General Discussions » UltimateTabstrip » Hoe to maintain viewstate from tab to tab.
 Printable Version    « Previous Thread   Next Thread »
  01 Oct 2009, 11:12 AM
Kaashi is not online. Last active: 12/9/2015 10:14:49 AM Kaashi

Top 10 Posts
Joined on 01-30-2009
Posts 8
Hoe to maintain viewstate from tab to tab.
I am using Ultimate Tab Strip as a user control in a master page.
When ever I move from one tab to another tab, selections on the tab are gone and page is reloaded. How to avoid this?
I am not using the content template, but using a URL to attach various pages to the tab.

Thanks,
Kaashi.

  
  02 Oct 2009, 10:17 AM
Karamasoft is not online. Last active: 11/10/2017 3:24:14 PM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,818
Re: Hoe to maintain viewstate from tab to tab.
Please make sure that you set the AutoPostBack property of your UltimateTabstrip control to False to prevent postbacks when the active tab is changed. If you navigate to a different URL when you click the tabs, you will lose your selections in your page because you are not doing any postbacks when you navigate to a different URL.
  
  02 Oct 2009, 10:54 AM
Kaashi is not online. Last active: 12/9/2015 10:14:49 AM Kaashi

Top 10 Posts
Joined on 01-30-2009
Posts 8
Re: How to maintain viewstate from tab to tab.
In my application we will be navigating to a different page every time a tab is clicked. I think Autopostback=False setting wouldn't help me, right? Is there any other way to keep page selections?

Thanks,
Kaashi.

  
  04 Oct 2009, 12:22 AM
Karamasoft is not online. Last active: 11/10/2017 3:24:14 PM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,818
Re: How to maintain viewstate from tab to tab.
If you are navigating to a different page by setting the URL of your page, you will lose the state of your page because it is a separate HTTP request. In order to keep the state of your page, you have to do a normal page postback by setting the AutoPostBack property to True. If you reply with your sample code and explain what exactly you are trying to achieve, we can help you better. Thanks.
  
  10 Apr 2011, 12:43 AM
alsig is not online. Last active: 8/26/2013 12:14:19 PM alsig

Top 10 Posts
Joined on 02-17-2011
Posts 22
Re: How to maintain viewstate from tab to tab.
ok. i'm confused. Should AutoPostBack for the UltimateTabstrip be set to True or False?  I have tried both settings in this scenario - using Master Page and tabstrip as User Control - and I always lose all entries after changing tabs - regardless of AutoPostBack setting.

I notice that the Master Page and User Control samples on your website, surprisingly, also do not retain data after changing tabs.

please advise.
thanks,
alan s.


  
  11 Apr 2011, 10:17 AM
Karamasoft is not online. Last active: 11/10/2017 3:24:14 PM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,818
Re: How to maintain viewstate from tab to tab.

We tested our Master Page and User Control samples in our live demo at http://www.karamasoft.com/Samples.aspx?component=UltimateTabstrip and they work properly by retaining the selected tab after changing tabs. What spepcific OS and browser version are you testing on?

You can click on Show Code link at the bottom of the sample page to see how ActiveTabIndex is set in a method called SetActiveTabIndex method in master page's code-behind and the SetActiveTabIndex methdo is called in each ASPX page's code-behind in Page_Load event handler as follows: Master.SetActiveTabIndex(0)


  
  12 Apr 2011, 9:19 PM
alsig is not online. Last active: 8/26/2013 12:14:19 PM alsig

Top 10 Posts
Joined on 02-17-2011
Posts 22
Re: How to maintain viewstate from tab to tab.

Setting the ActiveTabIndex in Page_Load works fine for me.  The problem is persistance - retaining the entered data (i.e. checkbox, textbox) when I switch tabs.

When I use your Master Page and User Control samples - either from the web or my local machine - the data I select is lost when I navigate away from a page, and then come back.

For example, if I select Nikon D40 6.1MP from the Products page and then click on the Purchase tab, when I go back to Products the Nikon D40 6.1MP is no longer selected.

I am using IE 8.0.6001.18702 on Windows 2003 Server SP2.
Thanks.


  
  13 Apr 2011, 1:44 PM
Karamasoft is not online. Last active: 11/10/2017 3:24:14 PM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,818
Re: How to maintain viewstate from tab to tab.
In both master page and user control samples, since you are navigating to a different page by setting the URL of your page, you will lose the state of your page because it is a separate HTTP request. In order to keep the state of your page, you have to do a normal page postback by setting the AutoPostBack property to True, which may not be suitable for master page or user control scenarios.
  
 Page 1 of 1 (8 items)
Karamasoft Support Forums » General Discussions » UltimateTabstrip » Hoe to maintain viewstate from tab to tab.

You can add attachments
You can post new topics
You can reply to topics
You can delete your posts
You can edit your posts
You can create polls
You can vote in polls
Forum statistics are enabled
Forum is unmoderated

© 2002-2018 Karamasoft LLC. All rights reserved.