如何在ASP.NET中使用VBSCRIPT?
我在ASP中使用到下面的代码:
<%
disk=request.QueryString("disk")
user=request.QueryString("user")
if disk="" or user="" then
Response.Write "没有指定硬盘或用户(disk,user)"
else
Set colDiskQuotas = CreateObject("Microsoft.DiskQuota.1")
colDiskQuotas.Initialize disk, True
set objUser = colDiskQuotas.FindUser(user)
Response.write "警告等级:"
Response.write objUser.QuotaThreshold
Response.write "<p>配额限制:"
Response.write objUser.QuotaLimit
Response.write "<p>使用数量:"
Response.write objUser.QuotaUsed
Response.write "<p>状态:"
Response.write colDiskQuotas.QuotaState
end if
%>
现在我想把它改成ASP.NET来做,要如何做?
<%
disk=request.QueryString("disk")
user=request.QueryString("user")
if disk="" or user="" then
Response.Write "没有指定硬盘或用户(disk,user)"
else
Set colDiskQuotas = CreateObject("Microsoft.DiskQuota.1")
colDiskQuotas.Initialize disk, True
set objUser = colDiskQuotas.FindUser(user)
Response.write "警告等级:"
Response.write objUser.QuotaThreshold
Response.write "<p>配额限制:"
Response.write objUser.QuotaLimit
Response.write "<p>使用数量:"
Response.write objUser.QuotaUsed
Response.write "<p>状态:"
Response.write colDiskQuotas.QuotaState
end if
%>
现在我想把它改成ASP.NET来做,要如何做?
...全文
相关推荐
asp.net弹出窗口大集锦
弹出窗口大集锦》不仅提供了丰富的代码示例,还深入解释了如何在ASP.NET中使用JavaScript和VBScript来实现弹出窗口的各种功能。
ASP.NET程序设计基础教程课后习题答案
**ASP与ASP.NET虽然名称相似,但它们之间存在明显的差异:- **开发语言**:ASP主要依赖于无类型的脚本语言(如VBScript或JavaScript),而ASP.NET则支持多种强类型的编程语言
ASP技术常遇问题解答-Variant总能找到与之相匹配的数据类型吗?.zip
在ASP.NET后端开发中,虽然主要使用C#或VB.NET等强类型语言,但理解VBScript中的Variant对于处理旧有的ASP页面或与VBScript交互时依然有价值。
net、asp、php三个平台的sha256加密
**ASP平台的SHA256加密**: ASP(Active Server Pages)通常与VBScript或JScript配合使用,但不直接支持SHA256。
asp,net弹出窗口设计
在ASP.NET中,弹出窗口的设计通常涉及到JavaScript或者VBScript的使用,因为ASP.NET自身并不直接支持弹出窗口的功能。


