| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 612 人关注过本帖
标题:求助!!!!!!asp代码问题?
只看楼主 加入收藏
daidz
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2008-9-20
收藏
 问题点数:0 回复次数:1 
求助!!!!!!asp代码问题?
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<% Option Explicit %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>

<% response.charset="utf-8" %>
<!--#include file="../Include/NoSqlHack.asp" -->
<!--#include file="../Include/Const.asp" -->
<!--#include file="../Include/ConnSiteData.asp" -->
<% call SiteInfo %>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="copyright" content="Copyright 2005-2008 - />
<meta name="Author" content="万博网络技术工作室,www. />
<meta name="Keywords" content="<% =Keywords %>" />
<meta name="Description" content="<% =Descriptions %>" />
<title><% =SiteTitle %></title>
<script language="javascript" src="../Script/Html.js"></script>
<link href="../Css/Style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="Container">
  <div id="Header">
    <div id="mainMenu"><%=MainMenu()%></div>
    <div id="Header_search"><%=Search()%></div>
  </div>
<%
function MainMenu()
  dim rs,sql
  set rs = server.createobject("adodb.recordset")
  sql="select * from NwebCn_Navigation where ViewFlag and ParentID=0 order by Sequence asc"
  rs.open sql,conn,1,1
  response.write ("<ul>")
  if rs.eof then
    response.write "<li>暂无导航链接</li>"
  else
    do
      response.write "<li id=""mainMenu"&rs("ID")&""">"
      if rs("Color")="NoColor" then
        response.write "<a  href="""&rs("NavUrl")&""">"&rs("NavName")&"</a>"
      else
        response.write "<a  href="""&rs("NavUrl")&""" style=""color:"&rs("Color")&""">"&rs("NavName")&"</a>"
      end if
      response.write "</li>"
      rs.movenext
    loop until rs.eof
  end if
  response.write ("</ul>")
  rs.close
  set rs=nothing
end function

function Login()
  if session("MemName")="" or session("GroupID")="" or session("MemLogin")<>"Succeed" then
    response.write "<form name=""formLogin"" method=""post"" action=""MemberLogin.asp"">" &_
                   "  用户名:&nbsp;<input name=""LoginName"" type=""text"" class=""Login_text"" />" &_
                   "  <br />" &_
                   "  密 码:&nbsp;<input name=""LoginPassword"" type=""password"" class=""Login_text"" />" &_
                   "  <br /><br />" &_
                   "  <input name=""GoLogin"" type=""image"" src=""../Images/Login.gif"" width=""48"" height=""20"" align=""absmiddle"" />&nbsp;&nbsp;" &_
                   "  <a href=""MemberRegister.asp"" title=""新用户注册""><image src=""../Images/Register.gif"" width=""48"" height=""20"" align=""absmiddle"" /></a>" &_
                   "  <br /><br />" &_
                   "  <a href=""MemberGetPass.asp"" title=""忘记密码"">忘记密码了</a>" &_
                    "  &nbsp;|&nbsp;" &_
                   "  <a href=""ProductBuy.asp"" title=""查看订购车"">查看订购车</a>" &_
                   "</form>"
  else
    response.write "<br /><br />" &_
                   "您好," &_
                   "<font style=""color:#1874cd;font-weight: bold;"">"&session("MemName")&"</font>" &_
                   "&nbsp;-&nbsp;"&MemGroup(session("GroupID"))&"<br /><br />" &_
                   "<a href=""MemberInfo.asp"">帐户管理</a>" &_
                    "&nbsp;|&nbsp;" &_
                   "<a href=""MemberLogin.asp?Action=Out"">退出登录</a>" &_
                    "&nbsp;|&nbsp;" &_
                   "<a href=""ProductBuy.asp"">订购车</a>"
  end if
end function

function Search()
 response.write "<form action=""Search.asp"" method=""post"" name=""Search"">" &_
                  "<input name=""Keyword"" type=""text"" class=""Search_text"" />" &_
                  "<select name=""Range"" class=""Search_sel"">" &_
                "    <option value=""Void"" selected=""selected"">-请选择-</option>" &_
                "    <option value=""Product"">产品</option>" &_
                "    <option value=""News"">新闻</option>" &_
                "    <option value=""Down"">下载</option>" &_
                "    <option value=""Others"">其他</option>" &_
                "  </select>&nbsp;<input class=""Search_button"" type=""submit"" name=""Submit"" value=""搜索"" />" &_
                "</form>"
end function

function MemGroup(GroupID)
  dim rs,sql
  set rs = server.createobject("adodb.recordset")
  sql="select * from NwebCn_MemGroup where GroupID='"&GroupID&"'"
  rs.open sql,conn,1,1
  MemGroup=rs("GroupName")
  rs.close
  set rs=nothing
end function
%>
搜索更多相关主题的帖子: 代码 asp 
2008-09-27 16:25
yms123
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:209
帖 子:12488
专家分:19042
注 册:2004-7-17
收藏
得分:0 
报什么错误?
2008-09-27 19:07
快速回复:求助!!!!!!asp代码问题?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.018952 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved