Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional DotNetNuke Module Programming ISBN: 978-0-470-17116-5
This is the forum to discuss the Wrox book Professional DotNetNuke Module Programming by Mitchel Sellers and Shaun Walker - Wrox DotNetNuke Series Editor; ISBN: 978-0-470-17116-5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional DotNetNuke Module Programming ISBN: 978-0-470-17116-5 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 Search this Thread Display Modes
  #1 (permalink)  
Old March 6th, 2009, 01:16 PM
Registered User
Join Date: Mar 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Guestbook DNN Manifest

On page 142 & 143, the tags that appear in listing 8-19 and 8-20 are slightly different than what is in the actual project file. For example, the book says that the new module definition starts with a <moduleDefinition> tag. The actual source file in the project contains a tag named <module>. Other examples are <moduleControl> vs. <control> and <controlType> vs. <type>.

I am building the sample project in VS 2008 with a DNN 5.0.1 installation. Maybe the difference is due to something that changed between DNN 4 and DNN 5.

  #2 (permalink)  
Old March 13th, 2009, 10:41 PM
Registered User
Join Date: Mar 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default VB or CS?

Also, listing 8-20 (VB Manifest Module Addition) adds:

  #3 (permalink)  
Old March 14th, 2009, 12:36 AM
Registered User
Join Date: Mar 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Missed a step?

Go back to Listing 6-15. If you follow the instructions there and "entirely replace the text of the .dnn files generated by the templates," the issues with the tags will be cleared up.

Don't worry. I made the same mistake. There were a lot of code examples up to that point in chapter 6 that were meant only to be read, not copied into the project. Perhaps the authors should have told us more explicitly to stop reading and start typing. It is ironic that the first thing we are supposed to type into our sample project is the entire .dnn manifest, the most unfamiliar component of the whole process. No wonder we didn't do it.

Also, the instructions at 6-15 say to replace all occurrences of GuestbookCS with GuestbookVB to create the VB.NET manifest file. So, my previous post is also handled by following the instructions more thoroughly.

- Paul

Last edited by pgPlayer; March 14th, 2009 at 12:42 AM..
  #4 (permalink)  
Old March 31st, 2009, 12:41 AM
Wrox Author
Join Date: Jul 2008
Location: Des Moines, IA, USA.
Posts: 74
Thanks: 1
Thanked 8 Times in 8 Posts
Send a message via MSN to msellers

Paul and others,

Sorry about that, in reviewing the book, there are a few inconsistencies between the book figures/text and the proper ones.

Paul's approach outlined in the previous post is a proper workaround for the issue.
Mitchel Sellers
Microsoft C# MVP, MCITP
Director of Development
IowaComputerGurus Inc.

My blog for .NET and DotNetNuke info

Author of "Professional DotNetNuke Module Programming"

Tech Editor on "Visual Studio 2010 six-in-one" and "Pro C# 4.0"
  #5 (permalink)  
Old August 26th, 2010, 08:45 AM
Registered User
Join Date: Aug 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default ModuleId differs when posting and "moderating"


I'm not sure if I've missed something but, when you sign the guestbook it, for example, saves the post with ModuleId 405 in the database and when you try to approve or delete a post it has ModuleId 406, and of course nothing happens.

My question now is that what would the right way to correct this issue or have I just missed "some sort of linking"?

__________________________________________________ __________________________________________________ ______

I saw that you had code examples from all of your books and thought I'd take a look.

[SOLUTION] In EditGuestbookCS.ascx.cs there was a line missing. Right after requesting the query string "EntryId" and checking it with null:

//Get the sign module id
int oSignModuleId = int.Parse(Settings["WroxModules_Guestbook_SignModule"].ToString());
(In the book, this.ModuleId was used and now oSignModuleId)

Last edited by Simppi; August 27th, 2010 at 02:30 AM.. Reason: Solved

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Client Side Script not working in DNN rpdrake BOOK: Professional DotNetNuke ASP.NET Portals ISBN: 0-7645-9563-6 2 February 27th, 2009 03:06 PM
how to insert datatable data in mysql with dnn rizwanrizi SQL Server ASP 0 August 26th, 2008 05:36 AM
Getting a C# program with a manifest file to run i Bill_Thompson C# 2005 0 January 21st, 2008 06:27 PM
Guestbook in PHP karankapur_in PHP How-To 1 February 1st, 2006 05:51 AM

All times are GMT -4. The time now is 09:33 PM.

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