最新下载
热门教程
- 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)
相关文章
- 《QQ》情侣空间历史情侣查看方法 08-02
- win11系统防火墙在哪里关闭?win11关闭防火墙和杀毒软件方法 08-02
- 澳大利亚证券投资委员会警告Bitget在澳提供“未经许可”的高杠杆加密货币期货产品 08-02
- 《怪兽大联盟》开荒推图阵容推荐 08-02
- win11自带的应用商店不能用为什么 win11无法打开应用商店如何解决 08-02
- 《QQ》资料卡背景封面设置方法 08-02