ASP.NET中Server对象的方法

资讯 驱动中国 若水 1,518 次阅读 0 条评论
分享 Q
本文给大家简单介绍一下 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
#p#分页标题#e#
版权声明:本文由驱动中国整理发布,转载需注明出处与原文链接。如有疑问请联系 editor@qudong.com
本文价值 成为第一个评分的人
登录后为本文打分
网友评论0 条评论
正在回复 的评论取消
评论加载中…
🔐

登录后参与互动

评论、点赞均可赚积分
连续签到、邀请好友也有奖励 🎁

电脑端: 微信扫码登录 微信内: 一键登录

微信扫一扫

打开微信「扫一扫」,分享本文到朋友圈或好友