asp.net常用的命名空间及含义

using System;//引入核心命名空间,是一切类的基础 
using System.Collections.Generic;//引入集合类命名空间,能够使用泛型类等集合类 
using System.ComponentModel;//引入ComponentModel命名空间 
using System.Data;//引入数据操作命名空间,能够使用如DataSet数据集类 
using System.Drawing;//引入绘图命名空间,能够使用如Color的类—image 
using System.Text;//引入文本操作命名空间,能够使用如StringBuilder、字符操作等类 
using System.Windows.Forms; //引入窗体命名空间,支持窗体相关的类 
using System.Text; //文本操作 
using Microsoft.Win32; //对注册表操作 
using System.Collections; //使用Arraylist 
using System.Security.Cryptography;//加密解密 
using System.IO; //文件操作 
using System.Runtime.InteropServices;//调用DLL DllImport 
using System.Management; //获取硬件信息 
using System.Net; //获取IP地址用到 
using System.Net.NetworkInformation; //ping 用到 
using System.Text.RegularExpressions; //正则 
using System.Data.SqlClient;//sql数据库操作 
using Microsoft.VisualBasic; //简体转繁体时用到 
using System.Web; //html UrlEncode

加密解密

Server的调用 

System.Web.HttpContext.Current.Server.UrlDecode

System.Web.HttpContext.Current.Server.UrlEncode

System.Web.HttpUtility.UrlDecode

System.Web.HttpUtility.UrlEncode

response调用

System.Web.HttpContext.Current.Response
--------------------- 
作者:bejingcode 
来源:CSDN 
原文:https://blog.csdn.net/yhd0916/article/details/54344545 
版权声明:本文为博主原创文章,转载请附上博文链接!

猜你喜欢

转载自blog.csdn.net/qq_33380252/article/details/86136763