re1:
生成html后
方法1可用ajax取登录后的信息
方法2用iframe 动态页面
方法3<script src="user.ashx"></script>
user.ashx里面用
Resposne.Write("document.write('"+...+"');");
生成html后
方法1可用ajax取登录后的信息
方法2用iframe 动态页面
方法3<script src="user.ashx"></script>
user.ashx里面用
Resposne.Write("document.write('"+...+"');");
不在缓存整个页面
缓存ArrayList对象
如: IList ItemList = new ArrayList();
string ItemListKey = "ItemListKey";
if (Cache[ItemListKey] != null)
{
ItemList = (ArrayList)Cache[ItemListKey];
}
else
{
ItemList = Wap.GetWapByCommand();//从数据库读数据返回ArrayList
System.Web.HttpContext.Current.Cache.Remove(ItemListKey);
Cache.Add(ItemListKey, ItemList, null, DateTime.Now.AddHours(1), Cache.NoSlidingExpiration, CacheItemPriority.High, null);
}