0℃
0℃
You just finished your ASP application in time, barely making the dealine! As you upload the final version to the webserver, you receive an email from your supervisor indicating that he's ready for your demo. You confidently stride into his office and give him instructions on accesses the application through the Intranet.
Your boss comes to the first page, and is asked to enter his name. You've created a slick, customized feel to the site, recording the user and his or he...
asp, ASP开发技巧阅读全文
0℃
使用 FileSystemObject (FSO) 对象模式,可以有计划地处理驱动器和文件夹,就像在 Windows 资源管理器中交互式地处理它们一样。可以复制和移动文件夹,获取有关驱动器和文件夹的信息,等等。
获取有关驱动器的信息
可以用 Drive 对象来获得有关各种驱动器的信息,这些驱动器是实物地或通过网络连接到系统上的。它的属性可以用来获得下面的信息内容:
驱动器的总容量,以字节为单位(TotalSize 属性)
驱动器的可用空间是多少,以字节为单位(AvailableSpace 或 FreeSpace 属性)
哪个号被赋给了该驱动器(Drive...
asp, ASP开发技巧, 文件夹, 驱动器阅读全文
0℃
0℃
0℃
0℃
0℃
2011年11月27日
⁄ ASP源码
对Query字段进行Encode操作:
利用一个Query字段在不同主页间传递信息时必须进行Encode操作(注意是在进行不同页面传递),因为如果不这样做,你很可能使得接受信息的那边接受到一些你所不期望的奇怪字串。
注:其实如果Query字段中没有一些特殊字符,例如空格和标点符号等,那么也可以不进行Encode操作。
其实,这种Encode操作是十分容易的,有一个特定的方法来执行这种操作:那就是Server.URLEncode()方法,看下面这个例子:
<a href=“response.asp?Message...
asp, ASP开发技巧, Encode阅读全文
0℃
2011年11月27日
⁄ ASP源码
下面的函数可以对Email地址格式进行检查,只有形如:
abc@abc.abc,abc@abc.abc.abc和abc@abc.abc.abc.abc状的串才能通过检查,
如下面这些非法地址都通不过:
@abc@163.net,abc@163..net,abc@163.net.,abc@163@net等等都能剔除出来。
邮件地址就这几种格式吧?比如:
swuse@yeah.net,liaojiayuan@BTamail.net.cn,abc@public.yj.gd.cn
还有没有更长的?
<script language="JavaScript1.2">
function checkmail(mail)
var strr;
re=/(\w+@\w+\.\w+)(\.{0,1}\w*)(\.{0...
asp, ASP开发技巧, Email, 函数阅读全文




