1.HtmlEncode和HtmlDecode方法
HtmlEncode方法,是让一些脚本语言显示源码,例如:Server.HtmlEncode("<Script>window.alert("……");</script>")
HtmlDecode方法的作用与HtmlEncode方法正好相反,它会将HTML编码的代码解码,恢复代码的本来面目
2.UrlEncode和UrlDecode方法
对指定的代码以URL格式进行编码和解码。
3.MapPath方法
Server.MapPath方法将虚拟路径转换为绝对路径
例如:string sPath = Server.MaoPath("/");
返回值如:c:/Inetpub
4.Transfet(path)方法
终止当前程序的执行,进入path所指的程序
5.Excute(path)方法
在当前程序中执行path所指的程序,它与Transfer方法的不同之处在于,当path所指的程序运行完毕之后,将继续执行当前程序中后面的代码