如何将整个页面纳入会话 [英] how to take total page into session

查看:62
本文介绍了如何将整个页面纳入会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,

我占用一页,即该页面中的Credits.aspx,我在视图1中放置了多视图,我显示了1000、2000、5000之类的Credits包.和数据网格的成本.如果用户选择1000个积分包,则该包信息将显示在view2中.

然后在View2中放置一个超链接,即goto shopingcart页面,如果他单击
,则在该shoppingcart页面中放置Back按钮
返回按钮,然后他转到先前选择的Pack信息(View2)


如何将Total page纳入会话先生.请提供解决方案



谢谢.

hi sir,

i am taking one page i.e., Credits.aspx in that page i place Multiview, in View1 i display Credits pack like 1000,2000,5000. and cost in datagrid. if user select 1000 credits pack that pack information is displayed in view2.

and in View2 i place one hyperlink i.e., goto shopingcart page, in that shoppingcart page i place Back button if he click

Back button, then he goes to previous selected Pack information (View2)


How to take Total page into session sir. please give a solution



Thanks.

推荐答案

一个方法:创建一个描述您的对象的类.填充课程并存储在会话中.必要时从类中读取值.
One method: create a class that describes your objects. Populate the class and store in session. Read values from class when required.


您可以在页面顶部使用Cache to和在页面指令使用CacheDuration

you can use Cache at the top of the page to and CacheDuration at the page directives

THanks,
Hiren Solanki


这篇关于如何将整个页面纳入会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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