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 March 17th, 2010, 10:45 PM
Registered User
 
Join Date: Mar 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hello, Chris, I can confirm the same problem. when I insert an entry into the db it is attached to module 377 on my server, but when I am trying to delete or approve it, the module ID is 376.

It would seem that the EditGuestbookCS/VB is a different moduleID from the ViewGuestbookCS/VB which is also different from the SignGuestbookCS/VB

To solve I used a similar approach to what was used in ViewGuestbook to retrieve the modules. Here is the changes I made in (I have bolded the changes I made):

if ((Request.QueryString["EntryId"] != null))
{
object signModuleSetting = Settings["WroxModules_Guestbook_SignModule"];
int signModuleID = int.Parse(signModuleSetting.ToString());

entryId = Int32.Parse(Request.QueryString["EntryId"]);
bool isApprove = false;

if(Request.QueryString["approve"] !=null)
isApprove = true;
GuestbookCSController oController = new GuestbookCSController();
if (isApprove)
oController.ApproveGuestbookEntry(signModuleID, entryId);
else
oController.DeleteGuestbookEntry(signModuleID, entryId);

ModuleController.SynchronizeModule(this.ModuleId);

}


Does this look about right?
 
Old March 18th, 2010, 11:14 AM
Registered User
 
Join Date: Jul 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello mgeiger1,

It's been a while, but actually I believe this turned out to be a setting. If I remember right, I went into the module settings for the Guestbook Module, and at the bottom of the page I found "Point to the corresponding Sign Guestbook Module:"... I set this to my instance of "Sign Guest Book CS" and then the deletion worked correctly ( originally this setting pointed to "Enter Title", I believe.)

Like I said it's been a while, but that's how I remember it.

Chris





Similar Threads
Thread Thread Starter Forum Replies Last Post
type load exception crazy_eye_bob Crystal Reports 4 November 7th, 2005 01:16 PM
the err of SignOut allanhu BOOK: ASP.NET Website Programming Problem-Design-Solution 3 May 3rd, 2005 09:13 PM
Err.Number -2147217873 MSUser General .NET 2 April 5th, 2004 11:54 AM
How 2 Solve ActivexComponents err amar Pro VB 6 2 December 10th, 2003 05:29 AM





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