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 20th, 2008, 09:59 PM
Authorized User
 
Join Date: Apr 2008
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Type 'RecordDeletedEvent' is not defined

I get the Type 'RecordDeletedEvent' is not defined error several times. Where/what file should this be defined in?
 
Old May 20th, 2008, 10:56 PM
Lee Dumond's Avatar
Wrox Author
 
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

This event class is defined in the TBHCustomEvents project.

Unless you have added the TBHCustomEvents project to your solution, and added a reference to it (or at least placed the dll for it in the bin folder), you will keep getting this error.

If you are not interested in tracking information about delete events (like which records were deleted, and by whom), you can simply remove the calls to the RecordDeletedEvent constructor in the various Delete methods in the BLL.

 
Old May 21st, 2008, 03:38 PM
Authorized User
 
Join Date: Apr 2008
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

How do you add in an entire project such as TBH_Custom_Events to another project, in this case, TheBeerHouse?
 
Old May 21st, 2008, 04:51 PM
Lee Dumond's Avatar
Wrox Author
 
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

Right-click on Solution.

Go to Add > Existing Project

Find the project and add it

Right-click on web site and choose Add Reference...

Go to the Projects tab

Choose the project you just added to the Solution

Build everything

Have fun.





Similar Threads
Thread Thread Starter Forum Replies Last Post
ADODB.Connection user-defined type not defined Wall st Guru Excel VBA 2 March 26th, 2014 03:44 PM
Type "RecordDeletedEvent" is not defined thuyvncr BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 March 7th, 2007 02:57 AM
type not defined - crystal report cathiec Crystal Reports 3 November 27th, 2006 01:45 PM
User-defined type not defined (Icecream.mdb) dloren01 BOOK: Beginning Access VBA 0 June 22nd, 2005 10:36 PM
Type is not defined mdbriggs BOOK: Professional Crystal Reports for VS.NET 0 April 8th, 2005 08:20 AM





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