把textarea内容在服务器端保存成asp文件
来源:互联网 发布:数据库怎么查询视频 编辑:程序博客网 时间:2024/05/06 05:12
<%
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>
- 把textarea内容在服务器端保存成asp文件
- android客户端把SD卡文件上传到服务器端并保存在PC硬盘文件夹中
- vc把文字内容存成word文件和把doc文件保存为txt格式
- asp.net mvc中读取input file上传的txt文件内容,但不需要把文件保存到服务器上
- 让ViewState 保存于服务器端文件 (asp.net C#)
- 让ViewState 保存于服务器端文件 (asp.net C#)
- 怎么让文件的内容在textArea中显示出来?
- 把JScrollPane内容保存成JPEG图片
- textarea 保存在展示时保存回车
- 用jsp把网页内容保存为excel文件
- 把CRichEditCtrl的内容保存到Word文件
- file标签之把书包中的内容保存到文件
- chtml/ChinaHtml标签能把节点内容保存为文件
- VC++把图像内容保存在数据库的例子
- 如何写可以不提交服务器而把输入内容保存在本机的HTML文件
- c#客户端图片上传到服务器端文件并且把路径保存到SQL数据库
- 把UIWebView内容保存图片
- android把文件保存在SD卡上
- 约瑟夫问题数学方法的理解
- 《Microsoft Visual Studio 6.0 Enterprise Edition》
- 应用程序访问在根路径下访问,需要在server.xml文件中配置
- Bin文件夹中.PDB文件
- ruby备忘录
- 把textarea内容在服务器端保存成asp文件
- tabs选项卡
- 国际象棋 数据结构
- 继《const修改过程》的反汇编分析
- 忆阻器
- 简单sql查询接口(需要在文件中指定conn才能进行sql语句操作)
- php 支持 asp 写法
- (转)Tomcat+MySQL+JSP+LCDS+Flex+Eclipse环境搭建完美攻略
- 网元管理系统