Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > BOOK: Beginning ASP.NET Databases
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET Databases Also see the forum ASP Databases for more general discussions of ASP database issues not directly related to these books.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET Databases section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old December 28th, 2005, 09:55 PM
Authorized User
Join Date: Jun 2004
Location: , , .
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default CH 12: Success With Bids Application

Okay, I now have the 'bids' application running successfully on my Win2K3/SQL2K server. For details on setting up the database, see my previous post. Here are a few additional notes on errata and other observations:

1. Page 410: In 'MenuForRegisteredUsers.aspx', the BoundColumn for "HighestBid" generated an error because there is no 'ID' property for a BoundColumn; deleting this attribute fixed it.

2. The 'Logout.aspx' page is included in the list on p.388, but the code for this page is not covered in the book. It is required for the system to work properly because it's the only place where the "EMail" cookie is cleaned up and the session is ended, so be sure to add it. Curiously, none of the other cookies set by the login function are cleaned up here, and they really should be.

3. Regarding the 'Item.vb' tools file: The 'ItemDetails' class is not actually [u]used</u> anywhere. It may have originally been intended to be used as a 'properties bucket' for the 'Item' class, similar to the 'PersonDetails' and 'Person' classes, but this is not the case. In any event, it's curious that the properties are just directly exposed without being encapsulated within Get and Set methods.

4. Regarding the 'Register.aspx' page: The 'ModifyCustomer' function is not working. Everything seems to be coded properly, both in the codebehind and in the Person.vb file. WTF?

5. Regarding 'ViewMySaleItems.aspx': The DataGrid has an ItemTemplate element called "Accept Bid". Within this element is an asp:hyperlink element. The 'NavigateURL' attribute of this hyperlink element has a call to a function called 'FormatURL'. This function requires three expressions separated by commas. If you are going to put line breaks between these expressions when you're building the aspx file, be sure to separate them with underscores, otherwise you'll get an 'expression expected' error.

6. P.442: In the 'AcceptBid.aspx.vb' file, the first line of the page_load event includes an 'LCase' function:
Dim strFrom As String = LCase(Request.ServerVariables("HTTP_REFERER"))
but the next line is looking for the following:
If InStr(strFrom, "ViewMySaleItems.aspx") > 0 Then [...]
however, this will fail, because the 'InStr' function is case sensitive.

One way to correct this is to edit 'Accept.aspx.vb' as follows:
If InStr(strFrom, "ViewMySaleItems.aspx") > 0 Then
If InStr(strFrom, "viewmysaleitems.aspx") > 0 Then
also replace
If InStr(strFrom, "MenuForRegisteredUsers.aspx") > 0 Then
If InStr(strFrom, "menuforregisteredusers.aspx") > 0 Then

One final comment: there is no discussion in this chapter of validation controls, and very little mention of them in the book at all!:( This is a huge, gaping hole which seriously damages the book as a learning tool.

The validation controls are one of ASP.NET's most useful and valuable additions. It used to be that you had to write all sorts of javascript to produce the kind of client-side validations that are now virtually built-in as part of ASP.NET, provided you [u]use</u> them! Validation is such an important topic that there really is no excuse for there not being a separate chapter in this book covering their use.

As with all the other Beginning Wrox books, this chapter (and this book) is okay as far as it goes, it's just that it doesn't go nearly far enough, and it leaves out a lot of really important details. Don't go through this book expecting that by the time you're through, you'll be ready to go out and start developing. Instead, get the Pro book,


and read through most of it or at least have it handy as a reference. [u]That</u> book (or something on a similar level) is what you'll [u]really</u> need.
Reply With Quote
  #2 (permalink)  
Old November 20th, 2006, 08:19 PM
Registered User
Join Date: Nov 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts

Another consideration to remeber is to keep a journal of the problems and resolutions as you prgress in developing your application programs
in the event you need to rebuild the installation on a new server.

Remeber to always continue making backup files of your work seperate from the server your working on otherwise if it crashs or . . . your hard drive fails you may find yourself creating the same anxiety and fustration putting it back together.

Reply With Quote
  #3 (permalink)  
Old February 22nd, 2010, 10:21 AM
Registered User
Join Date: Feb 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Where is Code of Bid wrox auction site or Beginning ASP.net Databases using VB.NET?

Hi every one
Can any body send me the link of the code Beginning ASP.NET DATABASesw USING VB.NET?Its urgent kiundly send me the link of this book because i have recently started the Bid wrox auction site project right now.or send me the link of this project code
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
CH 12 login nightmare gegala BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 2 December 31st, 2007 08:34 AM
Ch. 12 Connect.asp mcauliff BOOK: Beginning ASP 3.0 2 August 5th, 2005 02:47 PM
Ch. 4 & Ch. 12 athena BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 July 23rd, 2004 10:54 AM

All times are GMT -4. The time now is 07:07 AM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.