易截截图软件、单文件、免安装、纯绿色、仅160KB

把textarea内容在服务器端保存成asp文件

<%
response.Charset = "gb2312"
if request("test") <> "" then
   On Error Resume Next
   dim fso
   set fso = server.createObject("Scripting.FileSystemObject")
     
   if Err.Number > 0 then
     response.end
   end if
   dim ts 
   set ts = fso.OpenTextFile(server.mappath(".\" & session("testfilesystemobject")), 2, True, false)
   if Err.Number > 0 then
     response.end
   end if
   ts.Write(request("test"))
   if Err.Number > 0 then
     response.end
   end if
   ts.close()
   On Error GoTo 0
end if
if request("testfilesystemobject") = "" then
   response.end
else
   session("testfilesystemobject") = request("testfilesystemobject")
end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Language" content="zh-cn" />
</head>
<body>
<form ACTION="" METHOD=post>
<textarea name=test>
</textarea>
<input type=submit>
</form>
</BODY>
</html>


相关文档:

利用Global.ASP定时执行ASP

Using the global.asa to schedule ASP code execution.
Have you ever had some asp code that needed to execute every once in a while but, you just didn't know how ......

asp基本


VBSCRIPT标记索引 
基本运算 
+ 数字加法及字符串连接 
- 数字减法 
* 数字乘法 
/ 数字除法 
Mod 求余数 
\ 求商数 
& 字符串连接 
^ 次方 
= 相等 
<> 不相等 
>= 大于或等于 
> 大于 
<= 小于或等于 
< 小于&nb ......

如何调试ASP代码

环境工具:
Visual studio 2008/2005
IIS 6.0
调试步骤如下: 
 
(1) IIS启用调试
1.     计算机管理->服务和应用程序->Internet信息服务->网站->默认网站->属性
2.     主目录->应用程序配置->调试
3.     启用ASP服 ......

ASP实现HashMap

'--------------------------------------------------------------
'ASP版HashMap实现
'该实现存储数据为有序数据,类似Java中的LinkedHashMap
'--------------------------------------------------------------
Class HashMap
 dim arr()
 dim arr_len
 
 '构造函数
 private Sub Clas ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号