想通过textarea 传输比较大的文件上去,但是textarea 里面不能接受什么样的字符?

joachern 2003-11-21 08:58:11
???????????????????????
...全文
44 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
flying310 2003-11-21
  • 打赏
  • 举报
回复
应该close或free一下。
joachern 2003-11-21
  • 打赏
  • 举报
回复
我是直接做了个控件,然后读取控件的属性
xieyj 2003-11-21
  • 打赏
  • 举报
回复
没有释放掉对象,你创建的是什么对象。
set 对象名 = nothing
lang11zi 2003-11-21
  • 打赏
  • 举报
回复
no limited
joachern 2003-11-21
  • 打赏
  • 举报
回复
我从文件中写入后发现ie一直占用cpu的问题???
DeltaCat 2003-11-21
  • 打赏
  • 举报
回复
你自己不限制的话,TEXTAREA本身是没限制的
编程最光荣 2003-11-21
  • 打赏
  • 举报
回复
提供一些编码的函数,你可能有用!

function escape(byval str)
str=replace(str,"%","%"+hex(asc("%"))) 'must be first

str=replace(str,chr(255),"%"+hex(255))
str=replace(str,chr(11),"%"+hex(11))
str=replace(str,chr(9),"%"+hex(9))
str=replace(str,";","%"+hex(asc(";")))
str=replace(str," ","%"+hex(asc(" ")))
str=replace(str,"_","%"+hex(asc("_")))
str=replace(str,",","%"+hex(asc(",")))
str=replace(str,"'","%"+hex(asc("'")))
str=replace(str,"=","%"+hex(asc("=")))
str=replace(str,".","%"+hex(asc(".")))
str=replace(str,":","%"+hex(asc(":")))
str=replace(str,"\","%"+hex(asc("\")))
str=replace(str,"/","%"+hex(asc("/")))
str=replace(str,"?","%"+hex(asc("?")))
str=replace(str,"@","%"+hex(asc("@")))
str=replace(str,"+","%"+hex(asc("+")))
str=replace(str,"!","%"+hex(asc("!")))
str=replace(str,"-","%"+hex(asc("-")))
str=replace(str,"#","%"+hex(asc("#")))
str=replace(str,"$","%"+hex(asc("$")))
str=replace(str,"&","%"+hex(asc("&")))
str=replace(str,"*","%"+hex(asc("*")))
str=replace(str,"<","%"+hex(asc("<")))
str=replace(str,">","%"+hex(asc(">")))
str=replace(str,"""","%"+hex(asc("""")))

escape=str
end function

function unescape(byval str)
str=replace(str,"%"+hex(255),chr(255))
str=replace(str,"%"+hex(11),chr(11))
str=replace(str,"%"+hex(9),chr(9))
str=replace(str,"%"+hex(asc(";")),";")
str=replace(str,"%"+hex(asc(" "))," ")
str=replace(str,"%"+hex(asc("_")),"_")
str=replace(str,"%"+hex(asc(",")),",")
str=replace(str,"%"+hex(asc("'")),"'")
str=replace(str,"%"+hex(asc("=")),"=")
str=replace(str,"%"+hex(asc(".")),".")
str=replace(str,"%"+hex(asc(":")),":")
str=replace(str,"%"+hex(asc("\")),"\")
str=replace(str,"%"+hex(asc("/")),"/")
str=replace(str,"%"+hex(asc("?")),"?")
str=replace(str,"%"+hex(asc("@")),"@")
str=replace(str,"%"+hex(asc("+")),"+")
str=replace(str,"%"+hex(asc("!")),"!")
str=replace(str,"%"+hex(asc("-")),"-")
str=replace(str,"%"+hex(asc("#")),"#")
str=replace(str,"%"+hex(asc("$")),"$")
str=replace(str,"%"+hex(asc("&")),"&")
str=replace(str,"%"+hex(asc("*")),"*")
str=replace(str,"%"+hex(asc("<")),"<")
str=replace(str,"%"+hex(asc(">")),">")
str=replace(str,"%"+hex(asc("""")),"""")

str=replace(str,"%"+hex(asc("%")),"%") 'must be last

unescape=str
end function
tigerwen01 2003-11-21
  • 打赏
  • 举报
回复
默认是什么样的字符都可接收,除非你编写程序来限制。
clon 2003-11-21
  • 打赏
  • 举报
回复
通过textarea传递文件?不明白
xieyj 2003-11-21
  • 打赏
  • 举报
回复
你是不是想把文件的内容读取到 textarea 中

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧