欢迎来到天天文库
浏览记录
ID:23944862
大小:61.00 KB
页数:4页
时间:2018-11-11
《在asp中使用fso组件生成html页面》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、在ASP中使用FSO组件生成HTML页面>>教育资源库共有两个页面index.htm是首页.程序比较简单,主要是用了ASP里的文件操作对象。<!--index.htm-------------------------------------------------------------------------------><!DOCTYPEHTMLPUBLIC"-//L4.01Transitional//EN"".l4/loose.dtd"><html><head><title>UntitledDocument</titl
2、e><metahttp-equiv="Content-Type"content="text/html;charset=gb2312"></head><body><tablename="form1"method="post"action="send.asp"><tablee="msg"cols="100"roit"name="Submit"value="Submit"><inputtype="reset"name="Submit2"value="Reset"></div></td></
3、tr></table></form></td></tr></table></body></html>’//send.asp<%functionchan_time(shijian)’转换日期时间函数s_year=year(shijian)iflen(s_year)=2thens_year="20"s_years_month=month(shijian)ifs_month<10thens_month="0"s_months_day=day(shijian)ifs_day<10thens_
4、day="0"s_days_hour=hour(shijian)ifs_hour<10th123下一页>>>>这篇文章来自..,。ens_hour="0"s_hours_minute=minute(shijian)ifs_minute<10thens_minute="0"s_minutechan_time=s_years_months_days_hours_minuteendfunctionfunctionchan_data(shijian)’转换日期时间函数s_year=year(shijian)iflen(s_year)=2thens_year="20"s_years_mo
5、nth=month(shijian)ifs_month<10thens_month="0"s_months_day=day(shijian)ifs_day<10thens_day="0"s_daychan_data=s_years_months_dayendfunctionfunctionchan_file(shijian)’转换日期时间函数s_month=month(shijian)ifs_month<10thens_month="0"s_months_day=day(shijian)ifs_day<10thens_day="0"s_days_hour=hour(
6、shijian)ifs_hour<10thens_hour="0"s_hours_minute=minute(shijian)ifs_minute<10thens_minute="0"s_minutes_ss=second(shijian)ifs_ss<10thens_ss="0"s_sschan_file=s_months_days_hours_minutes_ssendfunctiontop="<html><head><title>ne="</body></html>"msg=request.Form("ms
7、g")msg=replace(msg,vbcrlf,"")msg=replace(msg,chr(9),"")msg=replace(msg,"","nbsp;")msg=replace(msg,"r","<br>")msg=replace(msg,"","<br>")msg=topmsgbotomSetfs=Server.CreateObject("Scripting.FileSyst
此文档下载收益归作者所有