Loading...
所在位置:
论坛首页
->
┈┋电脑网络┋┈
->
Asp/Asp.Net教程
-> 帖子列表
[
详细列表
]
新的帖子
发起交易
任务悬赏
发起投票
精华贴
回收站
贴子审核
无
<<
>>
站长俱乐部
制作我们自己的Ebay(拍卖系统)(2)
2006-6-25
Chris Payne September 11, 2000 Before we go jumping into code and databases, let's take a moment and examine the needs and strategies, as well as the different types of auctions. First of all, there are many different types of auctions (which we'll discuss in the next section), so you'll have to decide what your needs are, and adjust accordingly. I'll outline the needs for our auction here, and we'll reference these as we progress. First, let's get some definitions out of the way: Buyer/Bidder - The person who places a bid, and wants to buy an item. Item/Lot - O...
[
小糊涂神
] 点击:572 回复:0 最后更新: 2006-6-25 16:56:39
查看全文
制作我们自己的Ebay(拍卖系统)(3)
2006-6-25
Based on the information in the previous section, we have a good understanding of what our database schema should look like. The following tables list our database structure: tblAuctions AID:Unique ID to keep track of records Autonumber StartDate:Date the auction started Date/Time EndDate:Date the auction is to end Date/Time SellerID:The ID of the seller. (Foreign key to user table) Integer tblAuctionItems IID:Unique ID to keep track of records Autonumber AID:Which auction does this item belong to? (Foreign key to Auctions table) Integer Name: Name of the item being s...
[
小糊涂神
] 点击:553 回复:0 最后更新: 2006-6-25 16:56:39
查看全文
制作我们自己的Ebay(拍卖系统)(4)
2006-6-25
First, we'll discuss the easy part. You'll have to create a few forms - one for the users to register (that is, get themselves into our AuctionUsers table), and one for sellers to post their info. These forms should be easy to create if you know how to handle forms (check out this WDVL article for more information). Basically, you should collect all the information from the forms and update the appropriate tables: 'Set variables and create object strConnectionString = "DSN=MyAuction;UID=username;PWD=password;Database=MyAuctionDB" set rst = Server.Crea...
[
小糊涂神
] 点击:539 回复:0 最后更新: 2006-6-25 16:56:39
查看全文
制作我们自己的Ebay(拍卖系统)(5)
2006-6-25
This is the complex part - you must make sure everyone's bids are correct, update those that have proxy bids, reallocate lots to winners, notify buyers who have been outbid, and perform some upkeep. First let's look at the code to add a bid. Function DoBid(ItemID, BidderID, Price, optional MaxPrice, optional MaxItems) 'Set variables and create objects strConnectionString = "DSN=MyAuction;UID=username;PWD=password;Database=MyAuctionDB" set rst = Server.CreateObject("ADODB.Recordset") 'Check to see if a bid already exists for thi...
[
小糊涂神
] 点击:510 回复:0 最后更新: 2006-6-25 16:56:38
查看全文
制作我们自己的Ebay(拍卖系统)(6)
2006-6-25
Resolving Bids - Page 6 Chris Payne September 11, 2000 Function ResolveBids(ItemID) 'Set variables and create objects dim monIncrement, monHighPrice, intAvailable, intTotItems, flgQuit dim blnResolved 'Assume bids are resolved blnResolved = True strConnectionString = "DSN=MyAuction;UID=username;PWD=password;Database=MyAuctionDB" set rst = Server.CreateObject("ADODB.Recordset") 'Get information from items table strSQL = "SELECT Increment, Available FROM tblAuctionItems WHERE " & _ "IID = ...
[
小糊涂神
] 点击:501 回复:0 最后更新: 2006-6-25 16:56:36
查看全文
制作我们自己的Ebay(拍卖系统)(8)
2006-6-25
Chris Payne September 11, 2000 So now you've got yourself a pretty functional auction. Let's talk a bit about what we haven't covered, and a few miscellaneous things. Things to Add While this auction will work, it lacks a few features of finer products. For instance, you could have built in a "take less" option - if, for example, a user bids for 10 items, but is willing to take less if necessary, then this could be accommodated. It would require adding a boolean field to the database, and a few modifications to the ResolveBids() code. You should...
[
小糊涂神
] 点击:455 回复:0 最后更新: 2006-6-25 16:56:34
查看全文
制作我们自己的Ebay(拍卖系统)(9)
2006-6-25
Chris Payne September 11, 2000 Hopefully this article showed you that creating something as complex as an auction isn't impossible, but just takes some forethought and imagination. You're probably not ready to take on Ebay yet, but if you have need to set up something similar, you are now well-equipped to do so. There is also a lack of auction applications out there in the market now, so this is a good place to get started. And if you do end up creating the next Ebay and become zillionaires, remember where you read it first, and send some $$ this wa...
[
小糊涂神
] 点击:567 回复:0 最后更新: 2006-6-25 16:56:33
查看全文
检查sql字符串中是否有单引号,有则进行转化.
2006-6-25
<% rem 检查sql字符串中是否有单引号,有则进行转化 function CheckStr(str) dim tstr,l,i,ch l=len(str) for i=1 to l ch=mid(str,i,1) if ch="'" then tstr=tstr+"'...
[
小糊涂神
] 点击:649 回复:0 最后更新: 2006-6-25 16:56:33
查看全文
制作我们自己的Ebay(拍卖系统)(7)
2006-6-25
Chris Payne September 11, 2000 Well, now your auction can run for an indefinite time. People can keep placing bids until you decide to stop them (good for the seller, but makes bidders kind of unhappy, to say the least). Let's discuss the mechanisms for stopping an auction. There are two easy ways to do it. The first, and easiest to perform, though requiring more manual intervention in the long run, is to simply build in an "Active" bit field into your tblAuctions table. When you decide to stop the auction, flip the bit, and the auction is over. (...
[
小糊涂神
] 点击:544 回复:0 最后更新: 2006-6-25 16:56:32
查看全文
从ASP迁移至ASP+ --进入DataSet
2006-6-25
ADO+引入了DataSet和DataView的概念。DataSet类似于记录集的集合,因为它能保存一个或多个数据及其之间关系的表(table)。DataView是这些表中之一的实现,类似于ADO 记录集。在上面的例子中,我们的DataSet只保存一个表:Upcoming,我们要将之驻留于ASP+服务器控件中。 可以通过以下方式向DataSet中加入更多表。 *重新定义我们的SQL语句。 *将ADODataCommand的SelectCommand属性设置为一个新的ADODataCommand *调用ADODataCommand的FillDataSet方法 FillDataSet方法将SQL查询结果中的表存入到被传递至方法调用中的DataSet中。加入另一个表会导致如下改变: dscUpcoming = New ADODataSetCo...
[
小糊涂神
] 点击:607 回复:0 最后更新: 2006-6-25 16:56:32
查看全文
从ASP迁移至ASP+ --HTML表格转换为ASP+列表
2006-6-25
我们从数据存储中取回的数据将被用来显示eVille提供的下两节课程。基于页面设计方面的考虑,标准的表格在这里并不合适。数据需要以一种自定义的格式展示,用来显示课程名,课程描述,以及报名的链接(该链接通过QueryString传递Session_ID)。 下面是原始的ASP页面利用ADO记录集创建的一个循环,该循环为每条记录创建一个新的行。 < table width="100%" border="0"> < tr> < td class="headerRow">Upcoming Events< /td> < /tr> < %Do While Not rsUpc...
[
小糊涂神
] 点击:561 回复:0 最后更新: 2006-6-25 16:56:32
查看全文
从ASP迁移至ASP+ --转换其他的页面
2006-6-25
至于剩余的页面,我们依样画葫芦,使用ASP+ DataList或是Repeater控件。这样做是必要的,因为按设计要求需要定制的数据布局,而不是一个标准的表格显示。其中有个页面,classcatalog.aspx,有一处要求勾选值,然后根据选中的值,运行两个可能输出中的一个。 该页就利用了Repeater控件,因此我们显示地创建了表格的行与列,而没有让控件来完成这一切。这是在templates的内部完成的。在ASP中,看起来是这样子的: '检查是否提供优惠 If rsSessions("Special") = True Then '若本课程提供优惠,则输出“Special Offer!” Response.Write "< td valign=top align=cen...
[
小糊涂神
] 点击:525 回复:0 最后更新: 2006-6-25 16:56:32
查看全文
从ASP迁移至ASP+ --处理会话变量
2006-6-25
现存的ASP版的eVille禁止对站点的某些部分的访问,除非用户已经登录。一些功能像查看将来的优惠特价,报名上课,以及了解自己当前的入学状况是受限制区域。如果想在未登录的状态下访问这类区域,你只会被重新导回到登录页面。 用户在一份表格中输入他们的用户名与密码,然后与数据库的学生表进行比较,如果登录成功,一个名为blnLoggedIn的会话变量便被设为真。这种方法对这个站点是有效的,因为它架设在一台单一的服务器上。其它的方法将被用于web farms上的web应用程序,比如ASP+的会话存储,或SQL的会话存储。 ===确认用户输入=== 代码重写工作量最大的部分在于那些获取用户输入的页面,用户输入这些信息以登...
[
小糊涂神
] 点击:582 回复:0 最后更新: 2006-6-25 16:56:31
查看全文
asp+ 如何跨站抓取页面
2006-6-25
如何用 PHp 和 Asp 跨站抓取别的站点的页面,今天我们来测试一下 asp+ 是怎么实现 跨站抓取 别的站点的页面 Code Listing <%@ Assembly Name="System.Net" %> <%@ Import Namespace="System.Net" %> <%@ Import Namespace="System.IO" %> <script language="VB" runat="server"> Sub Page_Load(Src As Object, E As EventArgs) Dim HttpWResp as HTTPWebresponse Dim sr As StreamReader dim STRtemp as string text1.text = "" HttpWReq = WebR...
[
小糊涂神
] 点击:621 回复:0 最后更新: 2006-6-25 16:56:31
查看全文
在Asp中不借助第三方组件抓取别的站点的页面
2006-6-25
微软在Asp中给我们提供了一种使用ActiveX的来做页面的方法,我们就用一个简单的抓取页面的例子来实际讲解一下这种方法,在本站的专栏的php版面中,我曾经讲过如何使用php来抓取别的站点的页面. <% url = "http://www.asp888.net/study/testSSi.txt" set inet = createobject("InetCtls.Inet") inet.RequestTimeOut = 20 inet.Url = url strRet = inet.OpenURL() %> <HTML> <HEAD> <TITLE>抓取页面测试</TITLE> </HEAD> <BODY> <P>页面的内容是:: <%=strRet...
[
小糊涂神
] 点击:596 回复:0 最后更新: 2006-6-25 16:56:31
查看全文
如何在网页中变化图象(速度无延迟)
2006-6-25
有的朋友看到这个标题,可能不以为然,这还不简单吗? 只要用JS 替换 img的 src 就可以了,不错,确实很简单,可是这样的话,在替换图形的时候,图形需要下载,如果图形很大或者网速比较慢的话,就会使浏览者感到无法忍受,所以这个时候必须采取一种叫做 预先下载的方法,其实预先下载作起来也是很容易的,我在这里给大家一个函数,然后大家参照我的首页就会了 function newImage(arg) { if (document.images) { rslt = new Image(); rslt.src = arg; return rslt; } } m1=newImage("images/m1.gif"); 然后在使用图形的时候给img 确定src 的时候用 m1.src 就可以了 ...
[
小糊涂神
] 点击:583 回复:0 最后更新: 2006-6-25 16:56:31
查看全文
精彩ASP-镜象站点速度测试
2006-6-25
<html> <head><link rel="stylesheet" href="FORUM.CSS"> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>精彩ASP-镜象站点速度测试</title> </head> <body bgcolor=#006699 text="#FFFFFF" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF"> <p align="center"><img src...
[
小糊涂神
] 点击:572 回复:0 最后更新: 2006-6-25 16:56:31
查看全文
用多种方法制作WEB页面的计数器
2006-6-25
One way to do it: Do you like to know how many users visited your site? Creating a Web counter is very easy thing to do using ASP. The only thing you have to do is to use an application server variable called count, this variable will have the value zero when your application is started for the first time, and every time anew visitor will come to your site the count variable will be incremented, the increment section will be written in the Session_OnStart in the Global.asa through three steps: ¨Lock the application server so no more than one v...
[
小糊涂神
] 点击:584 回复:0 最后更新: 2006-6-25 16:56:30
查看全文
asp中的一个奇怪的函数
2006-6-25
asp中有很多的文章在研究如何提高asp程序的执行效率,我们 得出结论 在<% 和 %> 之间的代码执行的速度要高于 在这个 标签之外的代码,我们有没有想过 如何重复的利用这些在标签之外的代码呢? 有的人可能觉得 这个没有什么意义!但是我们可以 怀着 一种很轻松的心态来看看下面这个例子,看看 我们得到了什么有趣的现象!在这个例子中,我们用到了 MSDN 中没有介绍的 WriteBlock 函数: test.asp <html> <head> <title>看看,真奇怪</title> </head> <body> <% response.write "这个是测试。。。1<...
[
小糊涂神
] 点击:599 回复:0 最后更新: 2006-6-25 16:56:30
查看全文
asp+版本简单的留言板的制作(一)
2006-6-25
asp+版本简单的留言板的制作(一) /* 豆腐制作,都是精品 http://www.asp888.net 豆腐技术站 如转载,请保留版权信息 */ 前言: 俗话说,眼看千遍,不如手写一遍,的确,很多纯粹理论性的东西,看多了,只是有了个简单的认识,其实在具体的程序调试过程中,肯定会遇到很多很多的问题一直想给大家写个什么程序的,但是 豆腐最近特别忙,年底了,什么事情都要结算,再加上我一直要想办法写一些文章来奉献给大家,终于抽出来一个下午,来做了一个这样的程序,结果忘记关OICQ了,很多的网友的信息 都没有时间回复,在这里向 jspfuns 和 蓝 表示道歉。 程序开始前的准备工作: 首先要考虑的就是 如何在一个 所有的程序都可以访问...
[
小糊涂神
] 点击:1244 回复:0 最后更新: 2006-6-25 16:56:30
查看全文
如何在服务器上保存一定时间的信息
2006-6-25
/* 豆腐制作 都是精品 http://www.asp888.net 豆腐技术站 如转载 请保留完整版权信息 */ <%@import namespace="system.data.SQL"%> <%@OutputCache Duration = "3600"%> /* 这个 OutputCache 的前缀的意思是 这个页面在 server 被保持的 时间的长度 单位是 秒我现在把这个程序的 保持时间 设置成为 3600 也就是一个小时 这样,即使你对 数据库 的 数据进行 任何的 改变 程序都不会去理睬仍然显示的是 你的 没有修改的以前的 数据 */ <SCRIPT LANGUAGE="vb" RUNAT="server"> Sub Page_Load(myList AS O...
[
小糊涂神
] 点击:598 回复:0 最后更新: 2006-6-25 16:56:29
查看全文
用ASP发 WAP MAIL(=)
2006-6-25
mail.asp <% Response.Buffer = True Response.ContentType = "text/vnd.wap.wml" Response.Write "<?xml version=""1.0 %> <% Set Mail = Server.CreateObject("Persits.MailSender") '--------------------------------------------------------- ' 你可以修改ISP的邮件服务器 ' Mail.Host = "pun.chaozhou.gd.cn"&nb...
[
小糊涂神
] 点击:631 回复:0 最后更新: 2006-6-25 16:56:29
查看全文
用两行代码在浏览器中实现文件上传
2006-6-25
简介 文件上传是将任意的文件从客户机发送到服务器的过程。最简单、最方便的上传方法是使用支持RFC1867的浏览器,如微软的Internet Explorer4.0以上版本,Netscape3.0以上版本,或者带附件的Internet Explorer3.0。 基于浏览器的文件上传是通过带有属性ENCTYPE="multipart/form-data"的HTML form实现的。这个form也必须包含一个或多个<INPUT TYPE=FILE>项,以让用户指定要上传的本地文件。 带有ENCTYPE="multipart/form-data"属性的form所发送的数据必须被一个服务器端过程解析,以展开上传的文件和其他非文件项。在ASP环境中,这种任务用编译好的active server组件能...
[
小糊涂神
] 点击:587 回复:0 最后更新: 2006-6-25 16:56:29
查看全文
ASP文件操作--列出目录及文件
2006-6-25
把以下文件建在同一目录,IIS中确定文件操作组件可用,即可用ASP列出文件和目录了,呵呵欢迎光临我的主页 http://skypavilion.yeah.net ----文件folder.inc----- <% folderini="c:\" %> ----文件index.asp----- <!--#Include file="folder.inc"--> <html> <head> <title>FileSearch</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> </head> <frameset rows="80,*&quo...
[
小糊涂神
] 点击:525 回复:0 最后更新: 2006-6-25 16:56:29
查看全文
将站点加入频道栏源代码
2006-6-25
将站点加入收藏[修改显示的文字、链接、名称] 将以下代码加入HEML的<body><body>之间 <script language="javascript"> function bookmarkit(){window.external.addFavorite('http://andyda.home.sohu.com','人心工作室(网络磁场)')} if (document.all)document.write('<a href="#" onClick="bookmarkit()"><strong>将本站加入收藏夹</strong></a>') </script> ...
[
小糊涂神
] 点击:582 回复:0 最后更新: 2006-6-25 16:56:29
查看全文
bbs树形结构的实现方法(一)
2006-6-25
【bigeagle】 于 2000-12-6 14:38:50 加贴在 Joy ASP ↑: bbs的树形结构显示可以有很多种方法,其中比较容易想到的是递归和排序串方法,但这两种方法并不是很好,那么怎 样才算是比较合理的算法呢? 递归方法不用讲,大家都知道怎么用,先讲讲排序串方法,最简单的排序串方法可以这样用,只用一个id就可以完成树 型,向这样 1001 2002 3001001 4001001001 5001002001 用这个字符串排序后就变成这样: 001 &a...
[
小糊涂神
] 点击:509 回复:0 最后更新: 2006-6-25 16:56:29
查看全文
bbs树型结构的实现方法(二)
2006-6-25
bigeagle】 于 2000-12-6 14:43:38 加贴在 Joy ASP ↑: 下面这种方法是大怪兽和怡红公子现在采用的方法 create table forum ( ID int NOT NULL IDENTITY,/*帖子序列号*/ rootID int NOT NULL, /*根帖子序列号*/ parentID int NOT NULL default=0,/*双亲帖子序列号*/ indent tinyint,/*缩进*/ order tinyint,/*同主题帖子排序*/ username varchar(40) NOT NULL,/*用户名*/ time daytime NOT NULL,/*贴帖子时间*/ IP varchar(15) NOT NULL,/*发帖子的IP*/ subject varchar(60) NOT NULL,/*帖子题目*/ text text,/*帖子正文*/ bytes int,/*帖子字数*/ status bit,/*状态*/ hits tinyint,/*hit数*/ primary key(ID) /*主关键...
[
小糊涂神
] 点击:654 回复:0 最后更新: 2006-6-25 16:56:29
查看全文
bbs树形结构的实现方法(三)
2006-6-25
【bigeagle】 于 2000-12-6 14:45:13 加贴在 Joy ASP ↑: 下面这种方法是white提出来的。 BBS数据库结构的浮点数表示法 BBS由一系列的文章组成,每篇文章有一些基本属性,比如作者,创建时间,文章编号等。其中最为重要的,用以表示树形结构的是层和序数。层表示位于文章树的第几层,最高层的帖子层等于0,其回复的层为1,回复的回复层为2,以此类推。所有层等于0的帖子依时间顺序其序数分别为1,2,3.....剩下的帖子的序数满足以下条件:当所有帖子按照树形显示的时候,其序数从大到小排列,没有例外。 上述方法具体到BBS的实现时,各种操作如下进行: 0、系统维护一个记数器,表示当前使用的整数序数。 1、显示帖子列表...
[
小糊涂神
] 点击:589 回复:0 最后更新: 2006-6-25 16:56:28
查看全文
避免表单的重复提交又一方法(js)
2006-6-25
以前自己的论坛因为程序源码跟WIN2000的注册表有冲突,帖子发出后会出现无效页面,以致于论坛里有很多无恶意的重复帖子,后来想出了一个办法,用JS避免重复提交,下面是部分源码: <script Language='javascript'> function formsubmit() { Today = new Date(); var NowHour = Today.getHours(); var NowMinute = Today.getMinutes(); var NowSecond = Today.getSeconds(); var mysec = (NowHour*3600)+(NowMinute*60)+NowSecond; if((mysec-document.formsubmitf.mypretime.value)>600) //600只是一个时间值,就是5分钟内禁止重复提交,值随你高兴设 { document.formsubmitf.mypr...
[
小糊涂神
] 点击:635 回复:0 最后更新: 2006-6-25 16:56:28
查看全文
灵活实用的页面广告实例
2006-6-25
灵活实用的页面广告实例 目前,许多主页上流行放置一个浮动层的广告图像(通常位于页面右下方),显示在文字层之上,当页面上下滚动时,广告图像并不随页面滚动,它总能在窗口中保持一个固定位置。 本程序就是这种广告效果的一个实例,并在原有的基础上增加了拖动功能,如果在浏览页面时需要观察的内容正好被广告图像遮挡,可将广告图像拖到其它位置。并解决了图像拖动中鼠标按键的Click动作与执行广告图像链接的Click动作之间的冲突。直接点击广告图像即可执行图像链接,而在图像拖动过程中的鼠标按下和释放的动作不会触发广告链接。这样改进后,用户在浏览你的页面时会感到更加方便、自然。 程序是由javascript...
[
小糊涂神
] 点击:588 回复:0 最后更新: 2006-6-25 16:56:28
查看全文
热门帖子
第491页 共520页 本页30条 主题数 15586
<<
>>
普通贴
精华贴
固顶贴子
总固顶贴子
商品贴子
投票贴子
结贴
锁帖
首页
|
购买指南
|
虚拟主机
|
特色介绍
|
下载中心
|
支付方式
Copyright 2004-2008 BBSGood.com Powered By:
BBSGood.Speed Version 5.0
咨询电话:
0575-85513832、0575-85513825
(传真)、7*24小时咨询服务:
13606552007
不良信息举报中心 浙ICP备05029817号
业务QQ:
38958768
、客服QQ1:
415896239
、客服QQ2:
343896043
、MSN:
jccsxx@hotmail.com