Biz Modules Solutions
Contact us
  • Home
  • Products
    • Ultra Media Gallery 8
      • Overview
      • Feature Highlights
      • Sample Galleries
        • UMGClassicNG (since UMG 8.9)
        • WidescreenTour1 2.0 (UMG 8.8)
        • SmoothGallery 2.0 (UMG 8.6)
        • Galleria (UMG 8.5)
        • Translucent Slider (UMG 8.4)
        • Tonic Gallery (UMG 8.3)
        • Slider Master (UMG 8.2)
        • Carousel Evolution (UMG 8.1)
        • Spotlight Slider ( UMG 8.1)
        • TripleLayerSlider | homepage slider
        • MediaLibrary | mixed media gallery
        • WidescreenTour2 | stills & trailers
        • Piecerotator | multi media rotator
        • Html Slideshow | image slideshows
        • Widescreenshowroom | showcase
        • UMG Professional | photo gallery
        • RSS subscription
        • Shooting places on Google maps
        • Virtual Tour
        • Photo calendar
      • Trial & Downloads
      • Testimonials
      • Release Notes
    • Ultra Video Gallery 4
      • Overview
      • Feature Highlights
      • Release Notes
      • Sample Sites
      • Reviews
      • Sample Videos
      • Trial & Downloads
    • Ultra News Article 1.1
      • Overview
      • Feature Highlights
      • Sample
    • Save as PDF
    • Custom development
  • Downloads
  • Buy now
    • License Upgrade
  • Support

Host Partnership

If you are looking for good DNN hosting, then PowerDNN is the best DNN host around!

Need a custom module?

Should you have any questions about custom DNN modules or web projects, please let us know.

Latest Discussions

UMG causing "Manage" button disabled after upgrade from DNN 5.x to 6.1.5 by Mohiuddin Parekh
Hi, We upgraded our site (www.hope-ngo.com) few days ago from DNN 5.x to 6.1....
UMG Mobile View requires jQuery upgrade by Mike Ricketts
I am using UMG 8.10.1. I am running DNN 5.6.2 on a DNN installation with multip...
UMG-Free Content List Sorting Options by Jeremy Close
Is there a way for the Free Content List to sort albums in the same order that t...
Paging Options by eric peerless
We are looking to have a scrolling paging option where you roll over a down arro...
Video player z-index, main menu not visible. wmode? by victor mois
Hi, when I open a page with video player module on it and it is at the top of th...
Home  > Support

Support Forum

Unanswered Active Topics Forums Search
Forums > Ultra Media Gallery > General Questions
Subject: Failed to compare two elements in the array
Prev Next
You are not authorized to post a reply.

Author Messages
soona rai
Posts:1
New Member

10/04/2008 4:58 AM  
Hi everybody,


i create own module for image slides . the selected images will show in  flash slide using

 dotnetnuke4.2.8 .


I have critical error :

    when i click the sort options(button move up slide and move down slide) in my module .

    This error shown:

  "Failed to compare two elements in the array."

 I checked my source code . i didnt found any mistake in my source code.

So, Please check where i made mistake in my source or else.

This is my module source :

/********************************************/
 
.ascx
       

        .ascx.cs
protected void Previous_Routine(object sender, CommandEventArgs e)
        {
            Controller obj = new Controller();
            List lstItems = objs.Gets(this.ModuleId);
            lstItems.Sort();
            int Sorter = 0;
            foreach (Info obj in lstItems)
            {
                obj.SortId = Sorter;
                objs.Update(obj);              
                Sorter++;
            }
            for (int i = 0; i < lstItems.Count; i++)
            {
                Info obj = (Info)lstItems[i]
                if (obj.ItemId == Convert.ToInt32(e.CommandArgument.ToString()))
                {
                    if (i == 0)
                    {
                        break;
                    }
                     obj.SortId--;
                     objs.Update(obj);                

                     obj = (Info)lstItems[i - 1]
                     obj.SortId++;
                     objs.Update(obj);                   
                }
            }

            //refresh cache
            SynchronizeModule();

            ExportXml(false);

            Response.Redirect(Request.Url.AbsoluteUri, true);
}



/****************************************************/

Please replay with good solution.

This help will  give 100% God Blessing.....


Thanks everybody













Pengtsen R
Posts:11533


10/04/2008 9:11 AM  
let me try to analyze your problem, you are going to sort a arraylist, and you get "Failed to compare two elements in the array." when run the sort code. your code is only a part of your control but please note to sort a arraylist you need to implement IComparer.Compare interface, did you?

Pengtsen R
http://www.bizmodules.net
You are not authorized to post a reply.
Forums > Ultra Media Gallery > General Questions > Failed to compare two elements in the array



ActiveForums 3.7
Copyright © 2005-2011 BizModules
Register Login