用排序串字段实现树状结构(原理) 2005-10-28 0 · 实现原理:以一排序字段(字符型实现排序),该字段的实际长度即为回复深度(用一位字符代表一层深度时)。
所受限制:回复深度只受排序串定义长度的限制(有点象空间换深度),每贴回复数(包括根贴和子贴)为30左右(当sql server使用Dictionary order,case-insensitive排序方式,即不区分字...
用排序串字段实现树状结构(存储过程) 2005-10-28 0 · 加贴存储过程:
if exists (select * from sysobjects where id = object_id("lybsave"))
drop proc lybsave
CREATE PROCEDURE [lybsave] @keyid int=0,@guestname varchar(20),@guestitle varchar(100),@guestcomm text,@guestemail varchar(50)='',@emailflag bit=0,@fromip varcha...
用排序串字段实现树状结构(例程——保存贴子... 2005-10-28 0 · 程序名称:savelyb.ASP
程序功能:保存贴子内容<!-- #include file="lybcon.inc" -->
<%
posttype=request("posttype")
pageno=request("pageno")
keyid=request("keyid")
if keyid="" then keyid=0
emailpost=request("emailpos...
用排序串字段实现树状结构(例程——删除贴子) 2005-10-28 0 · 程序名称:delrec.ASP
程序功能:删除贴子(剪枝)<!-- #include file="lybcon.inc" -->
<%
flag=request("flag")
keyid=request("keyid")
pageno=request("pageno")
password=request.form("password")
if flag="1" then
...
用排序串字段实现树状结构(例程——连接字串) 2005-10-28 0 · 程序名称:lybcon.inc
程序功能:数据库连接字符串<%
lybstr="Provider=SQLOLEDB.1;Password=密码;Persist Security Info=True;User ID=sa;Initial Catalog=数据库名;Data Source=数据库服务器名;Connect Timeout=15"
%>
注意:一时疏忽,请使用.ASP作为连接字符串文件名——有些...
我加一点,转自msdn 2005-10-28 0 · Variable Description
ALL_HTTP All HTTP headers sent by the client.
ALL_RAW Retrieves all headers in the raw-form. The difference between ALL_RAW and ALL_HTTP is that ALL_HTTP places an HTTP_ prefix before the header name and the header-name is always capitalized. In ALL_RAW...
常用headers以及Server变量的列表,目前适用 ... 2005-10-28 0 · Server变量的列表。下列解释几个最为常用的:
HTTP_REFERER.当某人通过链接到达当前页时,HTTP_REFERER header就保存了这个用户的来源,例如,如果你想知道用户有多少是从yahoo中访问这个站点,就可以利用HTTP_REFERER来获取这样的信息。
HTTP_USER_AGENT. 这个Header指示了用户访问站点所用的网...
对Query字段进行Encode操作的一点看法 2005-10-28 0 · 对Query字段进行Encode操作:
利用一个Query字段在不同主页间传递信息时必须进行Encode操作(注意是在进行不同页面传递),因为如果不这样做,你很可能使得接受信息的那边接受到一些你所不期望的奇怪字串。
注:其实如果Query字段中没有一些特殊字符,例如空格和标点符号等,那么也可以不进行E...
使用多中值排序基数实现大型树状结构 2005-10-28 0 · 使用多中值排序基数实现大型树状结构 在“中值排序基数法实现树状结构”中,为了解决回复限制的问题,我们可以增加第二(三、四……)基数字段。
其实在一般的BBS中,使用一个基数已经足够,因为一个贴子的回复太多或深度太大的时候,无论你的树状结构做得多好,由于屏幕的限制(显示折行),显...
不用递归实现树形结构的一种方法 2005-10-28 0 · 不用递归实现树形结构的一种方法主要的技巧在Level(帖子回复深度)的操作上SunADM 于 2000.07.26
____________________________________________
演示表的结构
____________________________________________表名:BBS字段
数据类型
说明ID自动编号 RootIDInt根帖ID,本身为根帖则RootID = IDFID...
left() 函数是 VBScript 的函数,VBScript 将... 2005-10-28 0 · left() 函数是 VBScript 的函数,VBScript 将1个汉字看作1个字符,因此用 left()不能得到正确的字符长度。我自己编写了如下3个函数,用来取代 len()、left()、right(),希望能解决您的问题。'--------------------------------------------------------
'Name: lenX
'Argument: uStr...
ASP在Scripting.Dictionary对象的作用是什么? 2005-10-28 0 · <br>
<b>5.3 Scripting.Dictionary</b><b>对象</b><br>
许多Microsoft的编程语言,如Visual Basic、VBScript和Jscript,都提供集合(collection)。可以把集合想象为数组,可以使用其中内建的函数完成存储和操纵数据等基本任务。无须担心数据是在哪些 ...
不要节约使用变量 2005-10-28 0 · Now, you might be wondering, what does he mean, Don't skimp on the variables? Well, often times it is more
efficient to use variables to store results from ADO queries or from objects, and then reference the
variable as opposed to continuously referencing the object. For ex...
ASPHttp使用范例-远程读取别人的页面,并自动... 2005-10-28 0 · <HTML>
<head>
<title>AUTOGET</title>
<meta http-equiv="Content-Type" content="text/HTML; charset=gb2312">
</head>
<body bgcolor="#FFFFFF">
<%'on error resume next
'-----------建一个叫data的access表,...
关于内部服务器500错误的文档 2005-10-28 0 · 老外真多废话
其实在INTERNET选项里把显示友好错误信息勾掉酒可以了Why do I get a 500 Internal Server error for all ASP errors? (2,943 requests)
If you're using IE5 and/or developing on Windows 2000, you might find it difficult to debug ASP errors in a browser. This is becaus...
TO:张日,在ASP文件中让客户端下载文本文件! 2005-10-28 0 · 在服务器向浏览器发送数据时,会先发送HTTP 协议中的Header数据
要让客户端下载一个文本文件而不是显示在浏览器里
就要改变Header数据,如下例:<%@ Language=VBScript %>
<%
fn="thefilenametosave"
Response.AddHeader "Content-Disposition: ","attachment;...
利用owc建立EXECL的例子 2005-10-28 0 · 呵呵,这个是我介绍制作EXECL的第三种方法了,对于OWC,我在前面的文章里也已经有所介绍,废话少说,请看代码:<%
Option Explicit Class ExcelGen Private obJSPreadsheet
Private iColOffset
Private iRowOffset Sub Class_Initialize()
Set obJSPreadsheet = Server....
不用组件实现上载功能(英文NT)2. 2005-10-28 0 · '---- file name /handld_upload.ASP<% Option Explicit %><%
Response.Expires=0
Response.Buffer = TRUE
Response.Clear
Const IMAGE_SIZE = "width=""200"" height=""150"""
Dim UploadRequest
Set UploadRequest = Server.CreateO...
日期选择器 2005-10-28 0 · 'file name /getDate.ASP/<%rec=Request("rec")%>
<HTML>
<HEAD><META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<style type="text/CSS">
<!--
.head_tab { font-family: "Times New Roman"...
Debugging ASP - Part 1: Debugging by Insertion 2005-10-28 0 · By Tom ParkhurstThe debugging process can be painful for both novice and seasoned
developers alike. The next three newsletters will cover the basics of
debugging ASP code. While I can't promise that the methods I'll
describe will ease the pain, they will get you through th...
页次:163 /283 20篇/页 首页 上一页 下一页 尾页 合计 5658 篇 Go:第1页 第2页 第3页 第4页 第5页 第6页 第7页 第8页 第9页 第10页 第11页 第12页 第13页 第14页 第15页 第16页 第17页 第18页 第19页 第20页 第21页 第22页 第23页 第24页 第25页 第26页 第27页 第28页 第29页 第30页 第31页 第32页 第33页 第34页 第35页 第36页 第37页 第38页 第39页 第40页 第41页 第42页 第43页 第44页 第45页 第46页 第47页 第48页 第49页 第50页 第51页 第52页 第53页 第54页 第55页 第56页 第57页 第58页 第59页 第60页 第61页 第62页 第63页 第64页 第65页 第66页 第67页 第68页 第69页 第70页 第71页 第72页 第73页 第74页 第75页 第76页 第77页 第78页 第79页 第80页 第81页 第82页 第83页 第84页 第85页 第86页 第87页 第88页 第89页 第90页 第91页 第92页 第93页 第94页 第95页 第96页 第97页 第98页 第99页 第100页 第101页 第102页 第103页 第104页 第105页 第106页 第107页 第108页 第109页 第110页 第111页 第112页 第113页 第114页 第115页 第116页 第117页 第118页 第119页 第120页 第121页 第122页 第123页 第124页 第125页 第126页 第127页 第128页 第129页 第130页 第131页 第132页 第133页 第134页 第135页 第136页 第137页 第138页 第139页 第140页 第141页 第142页 第143页 第144页 第145页 第146页 第147页 第148页 第149页 第150页 第151页 第152页 第153页 第154页 第155页 第156页 第157页 第158页 第159页 第160页 第161页 第162页 第163页 第164页 第165页 第166页 第167页 第168页 第169页 第170页 第171页 第172页 第173页 第174页 第175页 第176页 第177页 第178页 第179页 第180页 第181页 第182页 第183页 第184页 第185页 第186页 第187页 第188页 第189页 第190页 第191页 第192页 第193页 第194页 第195页 第196页 第197页 第198页 第199页 第200页 第201页 第202页 第203页 第204页 第205页 第206页 第207页 第208页 第209页 第210页 第211页 第212页 第213页 第214页 第215页 第216页 第217页 第218页 第219页 第220页 第221页 第222页 第223页 第224页 第225页 第226页 第227页 第228页 第229页 第230页 第231页 第232页 第233页 第234页 第235页 第236页 第237页 第238页 第239页 第240页 第241页 第242页 第243页 第244页 第245页 第246页 第247页 第248页 第249页 第250页 第251页 第252页 第253页 第254页 第255页 第256页 第257页 第258页 第259页 第260页 第261页 第262页 第263页 第264页 第265页 第266页 第267页 第268页 第269页 第270页 第271页 第272页 第273页 第274页 第275页 第276页 第277页 第278页 第279页 第280页 第281页 第282页 第283页