asp.net开发WAP网站及集成在线wap模拟器(2)
Code [http://www.xueit.com] using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; using Rsion.Web; namespace Rsion.Web{ public abstract class Applicat

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; using Rsion.Web; namespace Rsion.Web { public abstract class Application:System.Web.HttpApplication { public static Template Template; /// <summary> /// 模板缓存时间 /// </summary> public static int TemplateCacheTime = 10; /// <summary> /// 重启Web进程 /// </summary> public static void RestartWebProcess() { HttpRuntime.UnloadAppDomain(); } } }
创建TempData用于与.aspx页数据交换

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; // Author : Sonven // Blog : Sonven.cnblogs.com namespace Rsion.Web { public class TempDatas<TKey,TValue>:CollectionBase { private Dictionary<TKey, TValue> dataArray; public TValue this[TKey key] { get { if (dataArray.ContainsKey(key))return dataArray[key]; throw new ArgumentException("未添加此数据项进入该集合!", "TKey", null); } set { dataArray = dataArray ?? new Dictionary<TKey, TValue>(); if (dataArray.ContainsKey(key)) dataArray[key] = value; else dataArray.Add(key, value); } } /// <summary> /// 添加一个键值数据 /// </summary> /// <param name="key"></param> /// <param name="value"></param> public void Add(TKey key, TValue value) { dataArray=dataArray??new Dictionary<TKey,TValue>(); dataArray.Add(key,value); } } }
精彩图集
精彩文章
热门标签
mysql自动备份
dll生成lib
connections
nginx
相册
3D扇形
捕获
双括号
SQLAlchemy
虚继承
验证用户名
os模块
bg
is
创建Web服务
屏蔽HOME键
data-*
Twitter
页面显示
华为
dbi
overload
城市判断
过滤选择器
Oracle用户解锁
边
连续获取
基础 无域
updatepanel用
js获取属性
readfile
解
构造icmp
逐行读取
水平滚动
读写分离
getopt模块
PHPThumb
自动调节
移除tr
音效
简介
排序数组
WinExec
大容量数据
sql数据库连接
脚本全局
charset
不用图片
mbstring扩展
php变量作用域
logcat命令
线程并发
横向报表
JS获取URL
目标函数
主框架
主分区
并发插入优化
PHP ddos
赞助商链接
@CopyRight 2002-2008, 1SOHU.COM, Inc. All Rights Reserved QQ:1010969229