大雀软件园

首页 软件下载 安卓市场 苹果市场 电脑游戏 安卓游戏 文章资讯 驱动下载
技术开发 网页设计 图形图象 数据库 网络媒体 网络安全 站长CLUB 操作系统 媒体动画 安卓相关
当前位置: 首页 -> 技术开发 -> ASP专区 -> 利用C#在SQL Server2000存取图像 For Window

利用C#在SQL Server2000存取图像 For Window

时间: 2021-07-31 作者:daque

要害代码:<%set conn=server.createobject("adodb.connection")connstr="dbq="+server.mappath("db1.mdb")+";defaultdir=;driver={microsoft access driver (*.mdb)};"conn.open connstrfunction menu(id)set rs=server.createobject("adodb.recordset")sql="select * from menu where id1="&id&" order by url,id"rs.open sql,conn,1,1if rs.recordcount=0 then rs.close set rs=nothing exit functionend ifresponse.write("<table border='0' cellspacing='0' cellpadding='0'>")i=1while not rs.eofif len(rs("url"))>0 then if i=rs.recordcount then menutype="file1" else menutype="file" end if menuname="<a href='"&rs("url")&"' target='_blank'>"&rs("menuname")&"</a>" onmouseup=""else if i=rs.recordcount then menutype="menu3" listtype="list1" onmouseup="with(eval('id"&rs("id")&"'))if(style.display==''){style.display='none';this.classname='menu3';}else{style.display='';this.classname='menu4';}" else menutype="menu1" listtype="list" onmouseup="with(eval('id"&rs("id")&"'))if(style.display==''){style.display='none';this.classname='menu1';}else{style.display='';this.classname='menu2';}" end if menuname=rs("menuname")end if%> <tr> <td class="<%= menutype%>" onmouseup="<%= onmouseup%>"><%= menuname%></td> </tr><%if len(rs("url"))<3 then%> <tr id="id<%= rs("id")%>" style="display:none"> <td class="<%= listtype%>"><%menu(rs("id"))%></td> </tr><%end ifrs.movenexti=i+1wendresponse.write("")rs.closeset rs=nothingend function%><html><head><meta http-equiv="content-type" content="text/html; charset=utf8"><title>=========无穷级目次树=========http://bbs.asp2004.net</title><style type="text/css"><!--.menu1 { background-image: url(folder1.gif); background-repeat: no-repeat; height: 17px; left: 32px; padding-left: 32px; cursor: hand;}.menu2 { background-image: url(folder2.gif); background-repeat: no-repeat; height: 17px; left: 32px; padding-left: 32px; cursor: hand;}.menu3 { background-image: url(folder3.gif); background-repeat: no-repeat; height: 17px; left: 32px; padding-left: 32px; cursor: hand;}.menu4 { background-image: url(folder4.gif); background-repeat: no-repeat; height: 17px; left: 32px; padding-left: 32px; cursor: hand;}.list { padding-left: 20px; background-image: url(list.gif); background-repeat: repeat-y;}.list1 { padding-left: 20px;}.file { background-image: url(file.gif); background-repeat: no-repeat; height: 16px; cursor: hand; padding-left: 32px;}.file1 { background-image: url(file1.gif); background-repeat: no-repeat; height: 16px; cursor: hand; padding-left: 32px;}body { font-size: 9pt; color: #000000; background-color: #ffffff;}a:link { font-size: 9pt; color: #000000; text-decoration: none;}a:visited { font-size: 9pt; color: #000000; text-decoration: none;}a:hover { font-size: 9pt; color: #0000ff; text-decoration: none; position: relative; right: 1px; bottom: 1px;}a:active { font-size: 9pt; color: #000000; text-decoration: none;}--></style><meta name="keywords" content="asp2004,树,菜单,无穷级"><meta name="author" content="小灰,quxiaohui_0@163.com"></head><body><a href="http://bbs.asp2004.net/" target="_blank">http://bbs.asp2004.net/</a>供给最新载入《<a href="menu.asp">处置</a>》<br><%menu 0conn.closeset conn=nothing%></body></html>

热门阅览

最新排行

Copyright © 2019-2021 大雀软件园(www.daque.cn) All Rights Reserved.