ITPub博客

首页 > Linux操作系统 > Linux操作系统 > ASP.NET中Server对象的方法

ASP.NET中Server对象的方法

原创 Linux操作系统 作者:iDotNetSpace 时间:2008-09-12 11:45:52 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组件,语法格式为:

以下是引用片段:
  CreateObjectStatic(ByVal ProglD As String)As Object


  CreateObjectFromClsid 用CLSID建立COM组件,语法格式为:

以下是引用片段:
  CreateObjectFromClsid(ByVal Clsld As String)As Object


  CreateObject 建立COM组件,语法格式为:

以下是引用片段:
  CreateObiect(BVVal Pro~ID As String)AS 0biect


 

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/12639172/viewspace-446874/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-01-04

  • 博文量
    2376
  • 访问量
    5766142