response.end后还能么?

cyh19820115 2003-12-20 09:52:23
我是网页中间从数据库中调数据,如果数据记录为0
则 response.end

但是,网页末尾还有<!--#include file="copyright.asp"-->
我还想让他出现.请问有没有好办法?
...全文
51 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
sxsgssgs 2003-12-20
  • 打赏
  • 举报
回复
asp的执行是从往下一行一行的执行,response.end意思是不让下边的再运行。

网页末尾加<!--#include file="copyright.asp"-->根本不可能实现的。

除非,用条件判断,
if i=0 then
response.end
else
<!--#include file="copyright.asp"-->
end if
stefli 2003-12-20
  • 打赏
  • 举报
回复
不可能实现。
除非你的response.end是在一个if语句中,那么只有当他不成立的时候,就可以跳过了。
然后就执行后面的file.
yzwxjun 2003-12-20
  • 打赏
  • 举报
回复
你可以把COPYRIGHT.ASP中的内容做成一个函数,然后在页页包含含有这个函数的文件,在页未调就可以了。
angelheavens 2003-12-20
  • 打赏
  • 举报
回复
No
zsd820830 2003-12-20
  • 打赏
  • 举报
回复
应该不可以吧
suyoupeng6 2003-12-20
  • 打赏
  • 举报
回复
RESPONSE.END表示输出功能完全关毕,不能显现任何文件,你可以用上面的人所说方法做一个判断的来实现的.
Tal 2003-12-20
  • 打赏
  • 举报
回复
同意小尚的
动易网站源码--#include file="Start.asp"--> --#include file="Include/PowerEasy.Cache.asp"--> --#include file="Include/PowerEasy.Channel.asp"--> --#include file="Include/PowerEasy.Class.asp"--> --#include file="Include/PowerEasy.Special.asp"--> --#include file="Include/PowerEasy.Article.asp"--> --#include file="Include/PowerEasy.Soft.asp"--> --#include file="Include/PowerEasy.Photo.asp"--> --#include file="Include/PowerEasy.Product.asp"--> --#include file="Include/PowerEasy.SiteIndex.asp"--> --#include file="Include/PowerEasy.Common.Front.asp"--> <% '************************************************************** ' Software name: PowerEasy SiteWeaver ' Web: http://www.powereasy.net ' Copyright (C) 2005-2009 佛山市动易网络科技有限公司 版权所有 '************************************************************** ChannelID = 0 If fso.FileExists(Server.mappath("NotInsalled.txt")) Then Response.Write "
  • 请先运行 Install.asp 以进行系统安装过程!


  • " Response.Write "
  • 如果你已经反复运行此程序,但仍然出现此提示,请使用FTP工具手动删除 NotInstalled.txt 文件。
  • " Response.End End If If FileName_SiteIndex <> "Index.asp" Then Call CloseConn Response.Redirect FileName_SiteIndex Else If CurrentPage > 1 Or PE_Cache.CacheIsEmpty("Site_Index") Then Call GetHTML_SiteIndex If CurrentPage = 1 Then PE_Cache.SetValue "Site_Index", strHtml Else strHtml = PE_Cache.GetValue("Site_Index") End If Response.Write strHtml End If Call CloseConn %>
    <% BookIDList = Session("BookIDList")'session(BookIDList)第一次运行为空 ABookID = Split(Request("bookID"), ", ")'ABookID数组存入的是图书的id' For I=0 To UBound(ABookID)'显示数组的最大维数 If Len(BookIDList) = 0 Then BookIDList = "'" & request("bookID") & "'" ElseIf InStr( BookIDList, request("bookID")) 您的购物车为空! 您还没有选购任何书籍,您的购物车为空! <% if request.Form("jiezhang")="保存订单" then response.Redirect("checkout.asp") end if If Len(Session("BookIDList")) 0 Then sql = "Select * From tb_book Where isbn In (" &_ session("bookIDList") & ") Order By isbn" Set rs = cnn.Execute( sql ) else Response.Redirect "buycarempty.asp" end if %> 查看购物车 function stand(){ window.close();} 书号 书 名 单价 数量 金额 移去     <% sl = Request( "sl"&i) If sl (元) (元) 合计金额: (元) 清空购物车 <% session("mName")="" if request.Form("UserID")"" and request.Form("userPWD")"" then session("ID1")=request.Form("UserID") session("PWD")=request.Form("userPWD") set rs=Server.CreateObject("ADODB.RecordSet") sql="SELECT userid, password FROM tb_member WHERE userid='" & session("ID1")&"'" set rs=cnn.execute(sql) if rs.eof then %> alert("登录失败!"); window.history.back(); window.location.href="checkoutok.asp" alert("您输入的会员密码错误,请重新输入!"); history.back(); 保存订单信息 //检验会员ID号和密码 function check(){ if (form1.userID.value==""){ alert("请输入会员ID号!");form1.userID.focus();return;} if (form1.userPWD.value==""){ alert("请输入会员密码!");form1.userPWD.focus();return;} form1.submit();} 如果您还不是我们的会员,请单击“注册”按钮注册会员! 会员ID号: 注册 您的密码:   以下是您选购的图书: 书号 书名 单价 数量 金额   (元) (元) 订单保存成功!   <% '返回订单号等信息 orderid=objCmd.Parameters(3) sql1 = "Select * From tb_book Where isbn In (" & session("checkBook") & ")" Set rs = cnn.Execute( sql1 ) ASL1="" ASL1=split(session("sl"),",") i=0 sum=0 shuliang=0 while not rs.eof bookID=rs("isbn") price=rs("price") paSL=cInt(ASL(i)) booksum=cdbl(rs("price"))*ASL(i) sql2="insert into tb_orderdetail(orderid,isbn,num,money) values ('"&_ orderid&"','"&bookID&"',"&paSL&","&booksum&")" set rs1=cnn.execute(sql2) i=i+1 rs.movenext wend for each parm in objCmd.Parameters if parm.name="parID" then name1="会员ID" end if if parm.name="sum" then name1="订货金额" end if if parm.name="oDate" then name1="订购日期" end if if parm.name="aa" then name1="订单号" end if Response.Write name1 &":"& trim(parm) if name1="订货金额" then response.write "元" else response.write "" end if next %> 订单已经成功保存,欢迎下次惠顾! 网上图书订购 AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','639','height','119','src','../images/banner','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../images/banner' ); //end AC code 网站首页 查看购物车 会员登录 管理员登录 书号 书名 出版社 图书类型 作者 等于 Like 查询图书库存量 书号 书名 图书类型 等于 Like <% If (Request("cValue") "" and Request("sField") "") Then If (Request("cValue") "") Then session("INvalue") = Request("cValue") End If session("pBookName") = "BookName" If (Request("sField") "") Then session("pBookName") = Request("sField") End If session("pBookName")=Replace(session("pBookName"), "'", "''") session("INvalue")=Replace(session("INvalue"), "'", "''") If (Request("mode") "") Then session("rs_mode") = Request("mode") End If end if if session("rs_mode")"" then if session("rs_mode")="==" then sql= "SELECT isbn, bookname, kind, price,total FROM tb_total WHERE "_ + session("pBookName") + " = '" + session("INvalue") + "'" else sql = "SELECT isbn, bookname, kind, price,total FROM tb_total WHERE "&_ session("pBookName") & " Like '%" & session("INvalue") & "%'" end if else sql="SELECT isbn, bookname, kind, price,total FROM tb_total " end if set rs_search=Server.CreateObject("ADODB.RecordSet") rs_search.open sql,cnn,1,3 %> function newwin1(url){ var newwin=window.open(url,"","resizable=yes,scrollbars=yes,width=700,height=400"); newwin.focus(); return false; } 书号 书 名 图书类型 价格 库存 alert("无符合条件的图书!") history.back(1) <%response.end() end if '分页' rs_search.pagesize=7 page=CLng(Request("page")) if page <% if page1 then %> 第一页  上一页 <%end if if pagers_search.pagecount then %>  下一页  最后一页 无符合条件的记录! <% response.Expires=-1 username1=trim(request("username")) userpass1=trim(request("userpass")) if username1="" or userpass1="" then session("passed1")="" session("msg1")="用户ID和密码不能为空" else set rs=server.CreateObject("adodb.recordset") strsql="select * from tb_member where userid='"&username1&"'" rs.open strsql,cnn,3,3 if rs.eof then session("passed1")="" session("msg1")="用户ID不存在" else if rs("PassWord")userpass1 then session("passed1")="" session("msg1")="密码错误" else session("passed1")=true session("msg1")="" session("ID1")=username1 session("username1")=rs("UserName") end if end if end if response.Redirect("memberlogin.asp") %> 会员登录 function chkfields(){ if(document.myform.username.value==''){ alert("用户ID不能为空"); document.myform.username.focus(); return false; } if(document.myform.userpass.value==''){ alert("用户密码不能为空"); document.myform.userpass.focus(); return false; } return true; } function look(id){ window.open("orderhistory.asp?ID="+id,"","scrollbars=yes,resizable=yes,width=700,height=600"); } AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','639','height','119','src','../images/banner','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../images/banner' ); //end AC code 网站首页 查看购物车 会员登录 管理员登录 <% if session("msg1")"" then response.write session("msg1") else response.write "用户登录" end if %> I  D: 密 码:    用户 , 您已成功登录 会员注册成功 祝贺您,已经注册成功! 您的会员ID号为:[ ] 密码为: [ ] 请记好! 单击“返回”按钮保存订单信息。 End If end if Next If len(BookIDList)=0 Then session("BookIDList")= BookIDList Response.Redirect("buycarempty.asp") Else session("BookIDList")= BookIDList Response.Redirect "buycarsee.asp" end if %> <% response.Expires=-1 username1=trim(request("username")) userpass1=trim(request("userpass")) 'response.write 41 'response.End() if username1="" or userpass1="" then session("passed")="" session("msg")="请您先登录再进来!" 'response.Redirect("userlogin.asp") else set rs=server.CreateObject("adodb.recordset") strsql="select * from tb_operator where operatorname='"&username1&"'" rs.open strsql,cnn,3,3 if rs.eof then session("passed")="" session("msg")="管理员名称不存在" else if rs("password")userpass1 then session("passed")="" session("msg")="密码错误" else session("passed")=true session("msg")="" session("username")=rs("operatorname") 'response.Redirect("userlogin.asp") end if end if end if response.Redirect("operatorlogin.asp") %> 管理员登录 function chkfields(){ if(document.myform.username.value==''){ alert("管理员名称不能为空"); document.myform.username.focus(); return false; } if(document.myform.userpass.value==''){ alert("管理员密码不能为空"); document.myform.userpass.focus(); return false; } return true; } function take(){ window.open("lookup.asp","图书库存查询"); } AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','639','height','119','src','../images/banner','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../images/banner' ); //end AC code 网站首页 查看购物车 会员登录 管理员登录 <% if session("msg")"" then response.write session("msg") else response.write "管理员登录" end if %> 管理员: 密码:    管理员 , 登录成功 的订单一览表 的订单一览表 订单号书号书名价格数量金额购书日期 <% rs.pagesize=7 page=CLng(Request("page")) if page        第一页 <% end if if page1 then %> 第一页 asp?page=>上一页 <%end if if pagers.pagecount then %> asp?page=>下一页 asp?page=>最后一页 <% else response.write "您没有购书记录!" end if %> <% If (Request("cValue") "" and Request("sField") "") Then If (Request("cValue") "") Then session("INvalue") = Request("cValue") End If session("pBookName") = "BookName" If (Request("sField") "") Then session("pBookName") = Request("sField") End If session("pBookName")=Replace(session("pBookName"), "'", "''") session("INvalue")=Replace(session("INvalue"), "'", "''") If (Request("mode") "") Then session("rs_mode") = Request("mode") End If end if if session("rs_mode")"" then if session("rs_mode")="==" then sql= "SELECT isbn, bookname, author, price FROM tb_book WHERE "_ + session("pBookName") + " = '" + session("INvalue") + "'" else sql = "SELECT isbn, bookname, author, price FROM tb_book WHERE "&_ session("pBookName") & " Like '%" & session("INvalue") & "%'" end if else sql="SELECT isbn, bookname, author, price FROM tb_book " end if set rs_search=Server.CreateObject("ADODB.RecordSet") rs_search.open sql,cnn,1,3 %> function newwin1(url){ var newwin=window.open(url,"","resizable=yes,scrollbars=yes,width=700,height=400"); newwin.focus(); return false; } 书号 书 名 作 者 原价 现 价 购物 alert("无符合条件的图书!") history.back(1) <%response.end() end if '分页' rs_search.pagesize=7 page=CLng(Request("page")) if page <% if page1 then %> 第一页  上一页 <%end if if pagers_search.pagecount then %>  下一页  最后一页 无符合条件的记录!
    ​ 博主介绍:✌在职Java研发工程师、专注于程序设计、源码分享、技术交流、专注于Java技术领域和毕业设计✌项目名称基于Web的酒店客房管理系统的设计与实现系统说明3.2.1  用户模块功能分析前台模块应主要包括用户登录模块、用户注册模块、查看客房信息模块、客房预定 模块、用户留言模块、充值模块和个人信息维护模块。用户登录模块:用户通过输入注册的的账号和密码,然后进行身份验证,匹配成功 后实现登录功能。用户注册模块:用户输入合法的账号和密码可以实现注册功能。 查看客房信息模块:用户可以通过首页查看客房的价格,图片,详情等信息,从而   可以选择想要预定的房间。 客房预定模块:用户选择自己想要预定的客房后,可以通过输入相关信息进行订房操作。用户留言模块:用户可以向管理员发送留言。 充值模块:用户可以通过添加银行卡再为自己进行充值操作。 个人信息维护模块:用户可以修改自己的姓名、密码、身份证号等信息,还可以查看自己的订单。3.2.2  管理员模块功能分析对于管理员而言,一个好的管理系统总是能让酒店的管理工作事半功倍[7]。管理员 能够通过这个系统对自己的酒店情况一目了然,应该包括客户留言模块、客房管理模 块、订房信息管理模块、入住信息管理模块、统计分析模块、酒店新闻管理模块、会 员信息管理模块、员工信息管理模块、系统用户管理模块、个人信息维护模块。客户留言模块:管理员可以查看并回复用户的留言。客房管理模块:管理员可以管理客房信息,可以添加新的客房,删除已经停用的客房信息,还可以修改现有的客房信息。订房信息管理模块:管理员可以处理用户的订房请求,为用户办理入住手续。入住信息管理模块:对于没有注册的线下客户,也可以办理入住手续。统计分析模块:可以对酒店所有的入住信息进行记录和总结分析。酒店新闻管理模块:管理员可以更新网站上的新闻公告,展示图片等信息。会员信息管理模块:管理员可以查看到所有的注册会员信息,可以对会员信息进行删除,修改,添加操作。员工信息管理模块:管理员可以查看到自己公司所有的员工信息,而且还可以对员工的相关信息进行管理。系统用户管理模块:管理员可以查看到所有的系统管理员信息并对管理员信息进行管理。个人信息维护模块:管理员可以更改自己的登录密码或者是姓名、性别、手机号等 相关个人信息。​编辑 环境需要1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA;3.tomcat环境:Tomcat 7.x,8.x,9.x版本均可4.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS; 5.数据库:MySql 5.7版本;6.是否Maven项目:否;技术栈1. 后端:Spring+SpringMVC+Mybatis2. 前端:JSP+CSS+JavaScript+jQuery使用说明1. 使用Navicat或者其它工具,在mysql中创建对应名称的数据库,并导入项目的sql文件;2. 使用IDEA/Eclipse/MyEclipse导入项目,Eclipse/MyEclipse导入时,若为maven项目请选择maven;若为maven项目,导入成功后请执行maven clean;maven install命令,然后运行;3. 将项目中springmvc-servlet.xml配置文件中的数据库配置改为自己的配置;4. 运行项目,在浏览器中输入http://localhost:8080/ 登录运行截图​编辑​编辑​编辑​编辑​编辑​编辑​编辑​编辑​编辑​编辑​编辑​编辑​编辑​编辑​编辑 用户管理控制层:package com.houserss.controller;import javax.servlet.http.HttpSession;import org.apache.commons.lang3.StringUtils;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bind.annotation.RequestMethod;import org.springframework.web.bind.annotation.RequestParam;import org.springframework.web.bind.annotation.ResponseBody;import com.houserss.common.Const;import com.houserss.common.Const.Role;import com.houserss.common.ServerResponse;import com.houserss.pojo.User;import com.houserss.service.IUserService;import com.houserss.service.impl.UserServiceImpl;import com.houserss.util.MD5Util;import com.houserss.util.TimeUtils;import com.houserss.vo.DeleteHouseVo;import com.houserss.vo.PageInfoVo;/** * Created by admin */@Controller@RequestMapping(/user/)public class UserController if (ip != null && ip.length() > 0) String[] ips = ip.split(,);for (int i = 0; i  
    一个典型的档案管理系统源码 --#include file="conn.asp" --> <% action = request("action") %> <% if session("adminname") = "" or session("adminpassword") = "" then %> <script>alert('你还没有登录呢');history.back(); <% set rswebsite=server.createobject("adodb.recordset") sqlwebsite = "select *,web_id from website " rswebsite.open sqlwebsite,conn,1,1 %> 信息查询
    ">" alt="logo" name="logo" width="200" height="60" border="0" id="logo" />  
    首页 添加数据 添加班级 信息查询 快速浏览 收录设置 添加管理员 系统设置 数据备份 数据恢复 修改密码 留言管理 退出系统
    <%=rswebsite("web_note")%>
    信 息 查 询
       
    <% keyword=replace(replace(replace(replace(replace(trim(request("keyword")),"'",""),"<","("),">",")"),">",")"),"<","(") typeid=replace(replace(replace(replace(replace(trim(request("typeid")),"'",""),"<","("),">",")"),">",")"),"<","(") %>
    <% if action="ok" then %> <%set rsstudent=server.createobject("adodb.recordset") if keyword="" then response.redirect "admin_xxcx.asp" end if if typeid="" then sqlstudent="select * from student where name like '%"&keyword&"%' order by adid desc" end if if typeid="1" then sqlstudent="select * from student where name like '%"&keyword&"%' order by adid desc" end if if typeid="2" then sqlstudent="select * from student where class like '%"&keyword&"%' order by adid desc" end if if typeid="3" then sqlstudent="select * from student where spcialty like '%"&keyword&"%' order by adid desc" end if if typeid="4" then sqlstudent="select * from student where Source_school like '%"&keyword&"%' order by adid desc" end if if typeid="5" then sqlstudent="select * from student where sex like '%"&keyword&"%' order by adid desc" end if if typeid="6" then sqlstudent="select * from student where Native_place like '%"&keyword&"%' order by adid desc" end if if typeid="7" then sqlstudent="select * from student where nation like '%"&keyword&"%' order by adid desc" end if if typeid="8" then sqlstudent="select * from student where father_name like '%"&keyword&"%' order by adid desc" end if if typeid="9" then sqlstudent="select * from student where mother_name like '%"&keyword&"%' order by adid desc" end if if typeid="10" then sqlstudent="select * from student where Population_property like '%"&keyword&"%' order by adid desc" end if if typeid="11" then sqlstudent="select * from student where name2 like '%"&keyword&"%' order by adid desc" end if if typeid="12" then sqlstudent="select * from student where status_number like '%"&keyword&"%' order by adid desc" end if if typeid="13" then sqlstudent="select * from student where Political_feature like '%"&keyword&"%' order by adid desc" end if if typeid="14" then sqlstudent="select * from student where adnumber like '%"&keyword&"%' order by adid desc" end if if typeid="15" then sqlstudent="select * from student where status_number like '%"&keyword&"%' order by adid desc" end if if typeid="16" then sqlstudent="select * from student where tele like '%"&keyword&"%' order by adid desc" end if if typeid="17" then sqlstudent="select * from student where Population_property like '%"&keyword&"%' order by adid desc" end if if typeid="18" then sqlstudent="select * from student where nowaddress like '%"&keyword&"%' order by adid desc" end if if typeid="19" then sqlstudent="select * from student where Address like '%"&keyword&"%' order by adid desc" end if if typeid="20" then sqlstudent="select * from student where mother_work like '%"&keyword&"%' order by adid desc" end if if typeid="21" then sqlstudent="select * from student where father_work like '%"&keyword&"%' order by adid desc" end if if typeid="22" then sqlstudent="select * from student where admin like '%"&keyword&"%' order by adid desc" end if if typeid="23" then sqlstudent="select * from student where change like '%"&keyword&"%' order by adid desc" end if rsstudent.open sqlstudent,conn,1,1%> <%if rsstudent.eof and rsstudent.bof then%> <%response.write "
    姓名 班级 性别 联系电话 籍贯 民族 特长 来源学校 操 作