Wrox Programmer Forums
|
BOOK: Professional ASP.NET 3.5 : in C# and VB ISBN: 978-0-470-18757-9
This is the forum to discuss the Wrox book Professional ASP.NET 3.5: In C# and VB by Bill Evjen, Scott Hanselman, Devin Rader; ISBN: 9780470187579
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET 3.5 : in C# and VB ISBN: 978-0-470-18757-9 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 11th, 2009, 04:26 AM
Authorized User
 
Join Date: Jun 2009
Posts: 70
Thanks: 18
Thanked 1 Time in 1 Post
Default Chap 29, Listing 29-7, Page 1305

Working on coding based on this listing, I get an error. Effectively, where the listing shows
Code:
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim ws As New WroxCustomers.Customers()
        GridView1.DataSource = ws.GetCustomers()
        GridView1.DataBind()
    End Sub
I am getting the error 'GetCustomers' is not a member of 'WroxCustomers.Customers'.

I must admit that I don't see how GetCustomers has been defined in the listing, and so am not surprised at the error - but realise I may have been missing something. I should appreciate advice on this.
 
Old September 11th, 2009, 05:53 AM
Authorized User
 
Join Date: Jun 2009
Posts: 70
Thanks: 18
Thanked 1 Time in 1 Post
Default

Just re-read the section - the answer is crystal clear in Fig 29-7.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 29 page 1370: not seeing service mike2cu2 BOOK: Professional ASP.NET 3.5 : in C# and VB ISBN: 978-0-470-18757-9 1 June 24th, 2009 08:19 PM
Chapter 29, IIS Host slginps BOOK: Professional Visual Basic 2008 ISBN: 978-0-470-19136-1 2 April 25th, 2009 04:40 PM
small spelling error on page 29 sandstrp BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 0 April 14th, 2009 04:20 PM
Where is the sample code for Chapter 29 reddyjyoshna BOOK: Professional C# 2005 with .NET 3.0 ISBN: 978-0-470-12472-7 0 December 18th, 2008 08:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.