在页面的变化asp.net自由会话变量 [英] asp.net free session variables on page change

查看:108
本文介绍了在页面的变化asp.net自由会话变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有使用一些十个分量DataTable的状态会话变量的Web应用程序。我不使用视图状态不增加体重的页面。

I have a web application that use Session variables for mantain the state of some datatable. I'm not using viewstate for not increase weight of the page.

我不需要十个分量在换页的状态,所以我想免费的网页让这些会话变量。

I not need to mantain the state on page changing, so I want free these session variables on page leave.

如何当用户改变网站的页面我拦截?有没有像页面休假的方法?

How can I intercept when user changing website page ? There is a method like "Page Leave"?

推荐答案

会话数据是用于存储超出页面的寿命数据是有用的。如果你不希望将其存储超过一页,然后会话数据的生命是不是你在这里。

Session data is useful for storing data beyond the lifetime of a page. If you don't want to store it beyond the life of a page then Session data is not for you here.

这篇关于在页面的变化asp.net自由会话变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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