Delete page error with sqlitedb.

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
5/18/2008 11:39:56 AM
Gravatar
Total Posts 59

Delete page error with sqlitedb.

Hi, Joe:

Below code in file mojoPortal.Business\Module.cs

////////////////////////////////////////////////////////////

 public static void DeletePageModules(int pageId)
{
......

while (result.Read())
{
Module m = new Module();
m.ModuleId = (int)result["ModuleID"];

......

}

//////////////////////////

m.ModuleId = (int)result["ModuleID"];

shoule be

m.ModuleId = Convert.ToInt32(result["ModuleID"]);

All other lines with (int) should be Convert.ToInt32() too.

Otherwise I can't delete a page in "Add/Edit Pages":

 

 

Thanks!

5/18/2008 11:46:17 AM
Gravatar
Total Posts 18439

Re: Delete page error with sqlitedb.

Thanks! I will make the same changes here.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.