Wrox Programmer Forums
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 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 October 19th, 2010, 10:34 PM
Registered User
Join Date: Oct 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Cannot delete/approve entries

The source code from Wrox website has some errors. I can't delete / approve entries. I fixed it as follows.
- In SqlDataProvider.cs, line 98:
return (IDataReader)SqlHelper.ExecuteReader(connectionString, GetFullyQualifiedName("GetAprovedEntries"), moduleId);
It must be :
return (IDataReader)SqlHelper.ExecuteReader(connectionString, GetFullyQualifiedName("GetApprovedEntries"), moduleId);
- In EditGuestbookCS.ascx.cs, from line 32 to line 37:
if (isApprove)
  oController.ApproveGuestbookEntry(oSignModuleId, entryId);
  oController.DeleteGuestbookEntry(oSignModuleId, entryId);

It must be
if (isApprove)
  oController.ApproveGuestbookEntry(oSignModuleId + 1, entryId);
  oController.DeleteGuestbookEntry(oSignModuleId + 1, entryId);

ModuleController.SynchronizeModule(oSignModuleId + 1);
But i can't understand why i must add 1 to oSignModuleId ? and why the moduleID of the setting "WroxModules_Guestbook_SignModule" different from the moduleID of the setting "WROX_Guestbook_AllowAnon" in table dbo.ModuleSettings?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to delete file System.IO.Delete error maricar C# 13 March 14th, 2014 06:50 AM
delete / approve sprocs shirk99 BOOK: Professional DotNetNuke Module Programming ISBN: 978-0-470-17116-5 0 February 18th, 2010 11:18 AM
Delete Blog Entries Tawanda BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 2 January 27th, 2007 03:53 PM
if the approve button is click for the second time debjanib ASP.NET 1.0 and 1.1 Professional 1 August 15th, 2006 08:21 AM
Delete duplicate entries from table expertcalling SQL Server 2000 2 January 2nd, 2005 11:51 PM

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