制作我们自己的Ebay(拍卖系统)(8)

2016-01-29 17:20 2 1 收藏

制作我们自己的Ebay(拍卖系统)(8),制作我们自己的Ebay(拍卖系统)(8)

【 tulaoshi.com - ASP 】

  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 also give the seller the option to "not take
less," meaning that if all the items haven't been bid for, then the whole thing is off.

Another option could be adding "deeper lots." This allows sellers to specify that they have multiple lots
that they must sell together - for instance, 5 TV's and 5 VCR's. These could all go in one lot, but by
separating them into multiple lots that are sold together, you are offering the seller and buyers an
advantage (both pricewise and competiveness-wise).

Most auctions also allow "reserve prices." This is a price the seller specifies that must be met before
any items can be sold. For example, I want to sell a car, but I won't take less than $5000. This is a bit
different than the minimum acceptable bid, in that the latter is set low to encourage buyers to place
bids, while the former ensures I don't end up selling my $5000 car for $2 - seller protection.

A fully functional auction should also have more robust alerting mechanisms. I haven't built in here the
ability to notify users when they have been outbid. (Make sure though, that if you do build this
functionality, you don't send an alert every time the proxy engine places a bid - the user would get
flooded with tons of emails that aren't necessary. Rather, just send an alert when the price for an item
grows larger than the maximum bid the buyer specified, to give them another chance at the item.)

Finally, you'll need more functionality than just the functions I specified here. You might want to create
an admin interface that allows an adminstrator to view all bids, users, and auctions, delete specified
items, modify them, etc. And you'll need to build the visual front end - something so that buyers and
sellers can bid for and enter items to sell, and view the current status of an auction (the current
winning bid, the number of items sold, etc). You may also wish to "beef up" the tables specified here, to
allow users to enter in more specific information (i.e. a SKU number, a URL, etc).

Coding Practices

You may have noticed I specified the connection string and created a recordset object in every function.
While this was done for clarity in this article, a more efficient method would be to specify a global or
session variable somewhere else - for instance in the global.asa file, or an include file that is included
on every single page.

Also, this type of functionality would best be wrapped up in a COM object. This would enhance speed and
increase security. Do all the testing in the ASP first though!



 

来源:https://www.tulaoshi.com/n/20160129/1501029.html

延伸阅读
标签: windows系统
Win8怎样自己制作系统主题?   Windows 8主题是一组由图片和声音定制而成的桌面元素集合,可以给人们以视听享受。我们可以通过自定义主题的方式来实现你的要求。 右击桌面空白处,选择快捷菜单中的个(图老师整理)性化命令。 在弹出的个性化窗口中,任意选择一组主题。选择之后,下面的桌面背景相应就变成了该主题所使用...
标签: iphone 手机软件
第一步: 下载好你想做成铃声的音乐(本教程就以小苹果为例)然后打开itunes。 第二步: 根据音乐的播放时间,记录好铃声开始时间与结束时间。(作为铃声,尽量不要太长,控制在20秒左右就好) 第三步: 确定好开始时间与结束时间之后,对音乐单击右键,然后点击显示简介。 第四步: ...
Ebay 创意宣传广告设计欣赏[8P] 图片1 图片2 图片3 图片4 图片5 图片6 Ebay 创意宣传广告设计欣赏[8P](2) 图片7 图片8
标签: 电脑入门
老是听到有人抱怨:我的系统怎么越来越慢了呢?特别是装了Vista的朋友,感觉更明显。优化杀毒都试过了,就是不管用。到底系统变慢的罪魁祸首是什么呢?根据本人总结,除去硬件老化和病毒侵蚀两个不可抗拒的主要因素,再就是Windows系统过于臃肿和随机启动项目加载太多的原因了。 随机启动项我们可以以直接运行msconfig修改,禁用那些...
标签: 电脑入门
五.卸载无用的动态链接 删除资源管理器经常在内存中留下无用的动态链接,为了消除这种现象,你可以打开注册表编辑器,设置键值:HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionxplorerAlwaysUnloadDLL=DWORD:1将其设为0,这一功能就会被关闭。重新启动计算机。 六.让WINXP彻底瘦身的软件出来了!可以卸载任何捆绑组件...

经验教程

880

收藏

20
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部