Click here to Skip to main content
13,054,615 members (62,610 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I want to implement IE tab in my website, this is not what telerik or other component do. We need a solution for loading the page in the tab control and each tab contains one aspx file (attention: the physical aspx files are different ,unlike what you described above that all tab contents are in one page and one physical aspx file) so ... i do not find any solution for this ... but i'm going to store the state of the page and the value of control properties in session and when user changes tab i restore the state and saved properties Everthing workes fine until you use in-proc mode or custom mode for session state . Problem occurs when you use session state in sql or asp state mode. the problem is: unserializable Objects are not supported and the exception will throw. So,i have not found any solution for this problem yet. please help me
Posted 15-Feb-11 20:04pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You can try with adding SerializableAttribute on the objects you are storing in session. If this does not solve you can implement ISerializable interface. Objects stored in session state must be serializable if the mode is SQL Server.
ali_web 16-Feb-11 2:56am
I have stored panel in session
,in other word i have copied my contol in the array of object and stored the array in session
in the panel i have various types of controls like grid view ,panel,dropdown list, textbox , check box, lable , ... i can't impelement all controls whith ISerializable interface because it is so hard and if i do that my method can be used just in one application and not as a general method
Vivek Krishnamurthy 16-Feb-11 3:54am
In this case, I would suggest you re-write some parts of the control so that you put only data used by control not the control itself. I understand this would take additional rendering time for the tabs / and some challenges with some control states.

Another option is to keep these in ViewState, this may not be good for the performance of you pages, because of the nature of the tab control.
ali_web 16-Feb-11 4:49am
This solution is good and i thought about it before but as you said this kind of method for saving page state will have low performance and by every switch on tabs two methods should execute: save method and load method that will take so much time that is not acceptable. Thanks for your help

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 16 Feb 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100