在线!急!

yyhyy23 2003-12-23 08:32:43
请问,怎样把字符串通过fso写如.asp文件中,fso我会用,但是,我打一个比方
strcomment="<!--#include file="ab.asp"-->"
strcomment=strcomment&"<!--#include file="ab.asp"-->"
把strcomment写到.asp文件中
的样式为
<!--#include file="ab.asp"-->
<!--#include file="ab.asp"-->
我遇到的主要问题是如何在.asp中换行
...全文
79 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
skyboy0720 2003-12-24
  • 打赏
  • 举报
回复
你的方法可以,最好用"&"不要用"+"
yyhyy23 2003-12-23
  • 打赏
  • 举报
回复
我说的是.asp,不是html.你门觉得我的办法怎么样,对不对
yyhyy23 2003-12-23
  • 打赏
  • 举报
回复
我瓜完了用chr(10)+chr(13)不就行了,哎,反应迟钝啊
bzscs 2003-12-23
  • 打赏
  • 举报
回复
不换行也行啊,反正html忽略换行,一定要换行的话,加一个vbcrlf
sinusoid 2003-12-23
  • 打赏
  • 举报
回复
是这样的:
strcomment="<!--#include file="ab.asp"-->"&"<br>"
strcomment=strcomment&"<!--#include file="ab.asp"-->"
sinusoid 2003-12-23
  • 打赏
  • 举报
回复
strcomment="<!--#include file="ab.asp"-->"
strcomment=strcomment&"<!--#include file="ab.asp"-->"&"<br>"

28,407

社区成员

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

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