When delete a url map, error occurs.

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.
10/14/2008 9:27:08 PM
Gravatar
Total Posts 59

When delete a url map, error occurs.

hi Joe:

When delete a url map, error occurs.

file UrlManager.cs:

private void dlUrlMap_ItemCommand(object sender, DataListCommandEventArgs e)
{

     int urlID = (int)dlUrlMap.DataKeys[e.Item.ItemIndex]; //

         ...

}

When

int urlID = (int)dlUrlMap.DataKeys[e.Item.ItemIndex];

changed to below

int urlID = Convert.ToInt32(dlUrlMap.DataKeys[e.Item.ItemIndex]);
then can work.

Thanks!

 

10/15/2008 3:55:20 PM
Gravatar
Total Posts 18439

Re: When delete a url map, error occurs.

Hi,

Thanks for letting me know. I just made the same fix here. I suspect this bug only occurred with SQLite and does not affect other db versions of mojoPortal.

Best,

Joe

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