Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 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 May 13th, 2009, 07:59 AM
Registered User
 
Join Date: May 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Errors in VB

1) Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl).
TheBeerHouseVB-final\TheBeerHouseVB\TBH_Web\Controls\ProductListi ng.ascx.vb

2)'Context' is not a member of 'MB.TheBeerHouse.UI.Controls.ProductListing'.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\tbh_web\24279c57\960c88b5\App_Web_b5gbpbtf.0 .vb

3)C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\tbh_web\24279c57\960c88b5\App_Web_b5gbpbtf.0 .vb

I am getting much errors like this when i m trying to debugg it.Please let me know how to solve these
 
Old May 13th, 2009, 10:48 AM
Lee Dumond's Avatar
Wrox Author
 
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

What does your ProductListing.ascx code behind file look like? Does it extend the UserControl base class?
__________________
Visit my blog at http://leedumond.com
Follow me on Twitter: http://twitter.com/LeeDumond

Code:
if (this.PostHelpedYou)
{
   ClickThanksButton(); 
}
 
Old May 13th, 2009, 11:50 AM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 207
Thanks: 2
Thanked 15 Times in 15 Posts
Default Your code....

Your code file should start like this...

Code:
Public Partial Class ProductListing
    Inherits System.Web.UI.UserControl
seems like you aren't inheriting the UserControl base class like Lee stated.
__________________
Jason Hall

Follow me on Twitter @jhall2013





Similar Threads
Thread Thread Starter Forum Replies Last Post
Single Typo in 'Final' VB Code - causes 37 errors irelandk BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 May 3rd, 2009 02:30 PM
VB.NET: recognize errors using DTS:Package2 object dan_code SQL Server DTS 0 November 8th, 2006 06:16 AM
handling script errors using vb web browser state Beginning VB 6 3 January 19th, 2006 09:01 AM
Can't get errors to display with <html:errors> michaeldill JSP Basics 0 August 2nd, 2004 01:47 PM
Professional VB 6; The 2003....Code errors machiavelli Wrox Book Feedback 1 September 17th, 2003 09:22 AM





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