像IE标签一样实现标签 [英] Implementing Tabs Like IE Tabs

查看:164
本文介绍了像IE标签一样实现标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的网站中实现IE选项卡,这不是telerik或其他组件的作用.我们需要一个用于在选项卡控件中加载页面的解决方案,并且每个选项卡都包含一个aspx文件(注意:物理aspx文件是不同的,与上面所述的所有选项卡内容都在一页和一个物理aspx文件中不同). ..我没有为此找到任何解决方案...但是我要在会话中存储页面的状态和控件属性的值,并且当用户更改选项卡时,我会还原状态和保存的属性,一切正常,直到您可以在会话状态下使用进程内模式或自定义模式.当您在sql或asp状态模式下使用会话状态时,会发生问题.问题是:不支持可序列化的对象,并且将引发异常.因此,我尚未找到任何解决此问题的方法.请帮助我

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

推荐答案

您可以尝试在要存储在会话中的对象上添加SerializableAttribute.如果仍不能解决,则可以实现ISerializable接口.如果模式是SQL Server,则以会话状态存储的对象必须可序列化.
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.


这篇关于像IE标签一样实现标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆