当前位置: 移动技术网 > IT编程>开发语言>.net > 制作我们自己的Ebay(拍卖系统)(8)

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

2019年01月15日  | 移动技术网IT编程  | 我要评论

德高望重是什么意思,油桶加热器,陈丽华 赵勇

chris payne

september 11, 2000

so now youve got yourself a pretty functional auction. lets talk a bit about what we havent 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 havent 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 tvs and 5 vcrs. 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 wont 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 dont end up selling my $5000 car for $2 - seller protection.

a fully functional auction should also have more robust alerting mechanisms. i havent built in here the
ability to notify users when they have been outbid. (make sure though, that if you do build this
functionality, you dont send an alert every time the proxy engine places a bid - the user would get
flooded with tons of emails that arent 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, youll 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 youll 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!



如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网