Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
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

1 solution

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.
 
Share this answer
 
Comments
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900