推荐一篇文章 2005-10-28 0 · 防止使用者按上一頁按鈕 討論區上常有網友問到這個問題, 如何防止使用者按回上一頁按鈕, 為何會問這一個問題? 應該通常是在防止使用者重複執行一個應用程式, 例如資料庫的新增, 如果使用者按了回上一頁, 有可能會造成重複新增資料, 今天這篇文章就要介紹如何 "盡可能" 的防止使用者按回 ...
一段显示论坛贴子的程序 2005-10-28 0 · 一段显示论坛贴子的程序///////////////////////////////////////////////////////////////////////////////
//
// File name: showtopic.cs
//
// Description: showtopic.ASPx的后台代码
//
// date: 2000/11/01
//
// Programming: Bigeagle
//
// History: ...
处理文件 2005-10-28 0 · 有两种主要的文件处理类型:创建、添加或删除数据,以及读取文件
移动、复制和删除文件
创建文件
创建空文本文件(有时被叫做“文本流”)有三种方法。
第一种方法是用 CreateTextFile 方法。 下面的示例示范了在 VBScript 中如何用这种方法来创建文本文件:Dim fso, f1
Set fso = CreateObject(...
附录:数据结构及测试数据 2005-10-28 0 · 数据库说明ID:节点ID
NodeName:节点名称
BrotherNode:兄弟节点,当前节点的下一个兄弟节点的ID
SonNode:子节点,当前节点的第一个子节点的ID测试数据
ID NodeName ParentNode SonNode BrotherNode
01 管理文挡 00 0101 02
02 开发...
一种效率极高的分类算法(转--非常好,帮助很 ... 2005-10-28 0 · 分类算法要解决的问题
在网站建设中,分类算法的应用非常的普遍。在设计一个电子商店时,要涉及到商品分类;在设计发布系统时,要涉及到栏目或者频道分类;在设计软件下载这样的程序时,要涉及到软件的分类;如此等等。可以说,分类是一个很普遍的问题。我常常面试一些程序员,而且我几乎毫无例外 ...
几个常用的小函数(二) 2005-10-28 0 · //opt1 小数 opt2 负数
//当opt2为1时检查num是否是负数
//当opt1为1时检查num是否是小数
//返回1是正确的,0是错误的
function chknbr(num,opt1,opt2)
{
var i=num.length;
var staus;
//staus用于记录.的个数
status=0;
if ((opt2!=1) && (num.charAt(0)=='-'))
...
介绍一个制作下拉菜单完全不同的办法。 2005-10-28 0 · ……
我是头一回知道这个方法,以前从没听用过,以前如果我从数据库里读出内容来制作下拉菜单的话都是用循环来做的,现在,让我们来看一下老外的办法。利用RecordSet.GetString来制作动态下拉菜单。adodb.recordset的getstring方法有一些BUG,但是你使用得小心一点的话它可以为您工作的很好。
先介...
哈哈写了个新的二文件上传!才30行代码啊。很... 2005-10-28 0 · <%
' upload.ASP
Function IntMin(n,y)
If n<y and n>0 Then
IntMin=Int(n)
ElseIf y>0 Then
IntMin=Int(y)
Else
IntMin=n
End If
End FunctionFunction getFormValue(Name)
Dim formSize,formData,DataHeader,DataStart,DataEnd,form...
把以下代码加在网页里 2005-10-28 0 · <script language="javascript">
function printit(){
if (NS) {
window.print() ;
} else {
var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>...
一个在vbscript中读取cookie的程序函数,献给 ... 2005-10-28 0 · function cookievalue(pcook)
lhowlong=len(pcook)
lwhereis=instr(documents.cookie,pcook)
if lwhereis=0 thencookievalue=false
elselstartpos=len(documents.cookie)-lwhereis-lhowlong
lstartstring=right(documents.cookie,lstartpos)
dolchar=left(lstartstring,1)if ...
贴一段可以近视替代remote script的代码,或 ... 2005-10-28 0 · 这个资料是以前收集的,希望能对你有所帮助。1、page1.htm<HTML><head>
</head><body>
<form id=scr_Data>
First Name: <input type=text id=s_FName value="none">
<br>
Last Name: <input type=text id=s_L...
没啥好东西了,贴一段我现在在用的产生随机密... 2005-10-28 0 · <%
response.write makePassword(16)function makePassword(byVal maxLen)Dim strNewPass
Dim whatsNext, upper, lower, intCounter
RandomizeFor intCounter = 1 To maxLen
whatsNext = Int((1 - 0 + 1) * Rnd + 0)
If whatsNext = 0 Then
'character
upper = 90
lower = ...
Raise Method 2005-10-28 0 · Syntax
object.Raise(number, source, description, helpfile, helpcontext)
The Raise method has these parts:Part Description object: Always the Err object. number: A Long integer subtype that identifies the nature of the error. VBScript errors (both VBScript-defined and user-def...
Generating Sensible Error Messages Using E... 2005-10-28 0 · Okay, I'll admit it, if there's one area where my ASP scripts are lacking: it's in the area of error checking. I've looked at the Err object included with VBScript but have been really frustrated with it's seemingly lack of information. (For more information on the Err object...
处理Asp中的错误 2005-10-28 0 · You just finished your ASP application in time, barely making the dealine! As you upload the final version to the webserver, you receive an email from your supervisor indicating that he's ready for your demo. You confidently stride into his office and give him instructions on...
用ASP做一个TOP COOL的站内搜索。 2005-10-28 0 · 该搜索引擎由一个HTM文件一个ASP文件组成,主要是运用FILESYSTEMOBJECT组件来达到目的,功能强大,修改界面以后可以直接拿来使用,当然加上一点自己的东西就更加好了。searchpage.htm
该HTM文件用来传入条件<HTML>
<HEAD>
<TITLE>ASP搜索引擎范例</TITLE>
...
嘿,大家瞧瞧这老外在页面之间传递元素的办法 2005-10-28 0 · 在第三方页面传递参数这个思路倒是的确可以省下一些代码,至少我以前是从没这样子传过。
<%
'Pass form objects submitted by a form G
' ET
If Request.QueryString.Count>0 Then
QStr="?"
For Each x In Request.QueryString
QStr = QStr & x &...
程序员上看来的文章,也是关于页面和代码分离的 2005-10-28 0 · 为了避免ASP程序和HTML代码混写造成维护困难的情况,本文介绍了一种方法,利用模板来分离程序和页面,使程序设计更加轻松。 在使用ASP制作一个站点的时候,常常会出现一个ASP文件中,程序代码和HTML代码混合的情况。这样子做有许多缺点:
1. 且不说编程时就要对页面布局进行设计和编排,造 ...
无组件图文混合上传示例,与大家分享 2005-10-28 0 · 以下代码没有规范,还有些功能没完成,有那位高手能把它修改一下,封装成类则更是造福大众,或者以后有时间我会做的。有任何错误或建议请一定要给我发E-mail:sobina@21cn.com,谢谢。好了,少说多做,本示例在w2kServer,IIS5,SQL SERVER7中测试通过。
如有不明白的可到精华区查“图象”或“图片...
用ASP程序来删除指定的文件或文件夹 2005-10-28 0 · DeleteFolder Method<br>
Deletes a specified folder and its contents.<br>
<br>
object.DeleteFolder folderspec[, force] <br>
<br>
Arguments <br>
object<br>
<br>
Required. Always the name of a FileSystemObject.<br>
<br>...
页次:164 /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页