网站地图| 免费获取|
毕业论文网
  • 网站首页|
  • 论文范文|
  • 论文降重|
  • 职称论文发表|
  • 合作期刊|
  • 论文下载|
  • 计算机论文|
  • 外文翻译|
  • 免费论文|
  • 论文资料|
  • 论文开题报告
搜索

当前位置:毕业论文网 -> 免费论文 -> 计算机论文 -> asp信息查询系统(十二)
计算机论文资料| ASP设计| Delphi| VB设计| JSP设计| ASP.NET设计| VB.NET| java设计| VC| pb| VS| dreamweaver| c#.net| vf| VC++| 计算机论文范文| 论文下载| 自动化论文

asp信息查询系统(十二)

最新活动:微信集50个赞就可获取任意一篇钻石会员文档。详情见微信集赞换文档
asp信息查询系统(十二) m("txturl"))
content=htmlencode2(request.form("txtcontent"))
typename=htmlencode2(request.form("typename"))
from=htmlencode2(request.form("from"))
fromurl=htmlencode2(request.form("fromurl"))
big=htmlencode2(request.form("big"))
vote=htmlencode2(request.form("vote"))

set rs=server.createobject("adodb.recordset")
sql="select * from learning where (articleid is null)"

rs.open sql,conn,1,3
rs.addnew
rs("title")=title
rs("url")=url
rs("content")=content
rs("type")=typename
rs("big")=big
rs("from")=from
rs("fromurl")=fromurl
rs("vote")=vote
rs("dateandtime")=date()
rs.update

articleid=rs("articleid")

rs.close
set rs=noting
conn.close
set conn=nothing

%> 

5.1.6编辑信息页
1.Edit.asp页面示例
图为管理员修改信息所看到的页面

2.页面中需要用户填写的表单元素
该页面中6个元素,如下图所示
Edit.asp页中的表单元素
名称 表单元素类型 含义 最大长度 
txttitle text 信息名称 70 
txturl text 连接地址 70 
txtcontent textarae 信息说明 350 
big text 信息大小 10 
from text 相关主页 10 
fromurl text 相关地址 70 
3.页面所涉及的数据库表信息
此页使用了系统中信息记录表learning
4.页面代码分析

<%
if request.cookies("adminok")="" then
  response.redirect "login.asp"
end if
%>
<!--#include file="articleconn.asp"-->
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<title>信息查询系统信息修改</title>
<script LANGUAGE="java script">
<!--

function FrmAddLink_onsubmit() {
if (document.FrmAddLink.txttitle.value=="")
 {
   alert("Sorry,信息名称没有输入!")
   document.FrmAddLink.txttitle.focus()
   return false
  }
else if(document.FrmAddLink.txturl.value=="" || document.FrmAddLink.txturl.value.toUpperCase()=="HTTP://")
 {
   alert("Sorry,链接地址没有输入!")
   document.FrmAddLink.txturl.focus()
   return false
  }

else if(document.FrmAddLink.txtcontent.value=="")
 {
   alert("Sorry,信息简介没有输入!")
   document.FrmAddLink.txtcontent.focus()
   return false
  }
else if(document.FrmAddLink.big.value=="")
 {
   alert("Sorry,信息大小没有输入!")
   document.FrmAddLink.big.focus()
   return false
  }
else if(document.FrmAddLink.from.value=="")
 {
   alert("Sorry,相关主页没有输入!")
   document.FrmAddLink.from.focus()
   return false
  }
else if(document.FrmAddLink.fromurl.value=="")
 {
   alert("Sorry,相关来源地址没有输入!")
   document.FrmAddLink.fromurl.focus()
   return false
  }

}

//-->
</script>
<link rel="stylesheet" href="/css/style.css">
</head>

<body bgcolor="#FFFFFF">
<form align="center" method="post" name="FrmAddLink" LANGUAGE="java script"
    onsubmit="return FrmAddLink_onsubmit()" action="saveedit.asp?id=<%=request("id")%>">
  <div align="center">&

首页 上一页 9 10 11 12 13 14 15 下一页 尾页 12/17/17

asp信息查询系统(十二)由毕业论文网(www.huoyuandh.com)会员上传。
原创论文资料流程 相关论文
上一篇:ASP网络购物系统 下一篇:ASP家教信息管理系统
推荐论文 本专业最新论文
Tags:asp 信息 查询系统 2010-03-31 16:54:26【返回顶部】
精彩推荐
发表论文

联系方式 | 论文说明 | 网站地图 | 免费获取 | 钻石会员 | 硕士论文资料


毕业论文网提供论文范文,论文代发,原创论文资料

本站部分文章来自网友投稿上传,如发现侵犯了您的版权,请联系指出,本站及时确认并删除  E-mail: 17304545@qq.com

Copyright@ 2009-2020 毕业论文网 版权所有