最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
用文本+ASP打造新闻发布系统(五)新闻修改
时间:2022-07-02 23:28:13 编辑:袖梨 来源:一聚教程网
'#######news_update.asp
T ID=clientEventHandlersJS LANGUAGE=javascript>
<% dim myid
myid=Request.QueryString ("id")
if len(myid)=0 then
Response.Write "没有该新闻"
Response.End
end if
dim myfso,myread,mytext,newscontent
'#######打开对应的新闻内容文件,并读取用变量存储
set myfso=createobject("scripting.filesystemobject")
if myfso.FileExists (server.mappath("./news_content/"&myid&".txt")) then
set myread=myfso.opentextfile(server.mappath("./news_content/"&myid&".txt"),1,0)
<% dim myid
myid=Request.QueryString ("id")
if len(myid)=0 then
Response.Write "没有该新闻"
Response.End
end if
dim myfso,myread,mytext,newscontent
'#######打开对应的新闻内容文件,并读取用变量存储
set myfso=createobject("scripting.filesystemobject")
if myfso.FileExists (server.mappath("./news_content/"&myid&".txt")) then
set myread=myfso.opentextfile(server.mappath("./news_content/"&myid&".txt"),1,0)
相关文章
- 微信支付手续费怎么算 04-17
- 仙境传说重生-搬砖可行方法全解 04-17
- BOSS直聘PC端官网入口在哪 04-17
- qq网页版一键登录入口-QQ网页版官方登录入口 04-17
- 当当云阅读电子书怎么查看 04-17
- 百度贴吧怎么屏蔽广告词 04-17