2007-11-20

ASP.NET中Server对象的方法

来源: 天极网 作者: 评论 0 条
  本文给大家简单介绍一下 ASP.NET 中的 Server 对象的方法,初学者可以当个参照表来用。

  urIEncode 将URL字符串编码,语法格式为:

以下是引用片段:
  UrlEncode(ByVal String As String)As String

  urIDecode 将编码后的URL字符串解码,语法格式为:

以下是引用片段:
  UrlDecode(ByVal String As String)As String

  MaDPath 取得文件的实际路径,语法格式为:

以下是引用片段:
  MapPath(ByVal path As String)As String

  HtmlEncode 将字符串编码为HTML数据,语法格式为:

以下是引用片段:
  HtmlEncode(ByVal String As String)As String

  HtmlDecode 将HTML编码后的数据解码还原为HTML,语法格式为:

以下是引用片段:
  HtmlDecode(ByVal String As String)As String

  CreateObjectStatic 用ProglD建立COM组件,语法格式为:


(本文仅表明作者个人观点,不代表本站及其管理员立场.) 推荐 收藏 投稿 打印 返回 关闭
上一篇:关于ASP.NET编程中的嵌套If语句  
下一篇:如何应用ASP操作数据库的类
    评论加载中…
以下是引用片段:
  CreateObjectStatic(ByVal ProglD As String)As Object
共2页: 上一页 1 [2] 下一页
 推荐文章
     

网站首页  -  网站地图 -   站长论坛  -  网站投稿  -    -  网站管理
Copyright © 2008 芜湖站长站 All Rights Reserved 皖ICP备07500611号