易截截图软件、单文件、免安装、纯绿色、仅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>


相关文档:

UTF8数据转换成为GB2312(Asp中)

今天遇到一个asp程序,用ReWrite重写URL后,中文参数乱码,查资料后说是ReWrite所接收的参数自动转为UTF-8,而我的前台页面和数据库都为GB2312格式,后来在网上找了好久,终于找到一个能成功将UTF-8转换为GB2312的函数,函数转换代码如下
<%
function CodeConvert(fileContent)
dim stm
set stm=Server.Crea ......

asp execl 技术总结

 一、 环境设置
  服务器端的环境设置从参考数据上看,微软系列的设置应该都行,即:
  1.Win9x+PWS+Office
  2.Win2000 Professional+PWS+Office
  3.Win2000 Server+IIS+Office
  目前笔者测试成功的环境是后二者。Office的版本没有特别需求,考虑到客户机设置的不确定性和下兼容特性,建议服务器端Of ......

asp文件操作大全

<%
Class Cls_FSO
Public objFSO
Private Sub Class_Initialize()
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
End Sub
Private Sub class_terminate()
Set objFSO = Nothing
End Sub
'=======文件操作========
'取文件大小
Public Function GetFileSize(FileName)
Dim f ......

ASP实现同一虚拟主机空间安放多个网站的方法

ASP实现同一虚拟主机空间安放多个网站的方法
  现在的域名很便宜,不少朋友手里多少都有几个,如果您想用手中的几个域名做多个网站的话,并不用同时购买多个虚拟主机,您只要先将您所有的域名绑定到您的虚拟主机上,然后将虚拟主机根目录中的index.asp(首页文件)里加入下列代码就可以了:
<%
sn=lcase(Request.Se ......

【ASP.net技巧】asp.net弹出窗口 返回值

刚刚 看到这么一个问题,这里也做个标记:http://topic.csdn.net/u/20080411/14/7b0f9da5-0413-4149-91e9-72c3df3018a3.html?seed=327251592
第一种方式:
//在Visual Studio 2008中调试通过
testPop_Page.aspx:主页面ASPX代码
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
  ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号