DNN Hosting
Register
Login
Web
Site
Home
Products
Purchase
Support
Downloads
Latest Discussions
UMG 5.2.2
by facuseh01
Hello,I have two questions:1. Does UMG 5.2.2 work with Presentation Pack 3.1? 2....
Comments by userID
by daviking
Thank you for a great product! I am really enjoying working with the new UMG5 ga...
users add albums
by OKCChopper
I want my users to be able to add there own albums but not delete others.. can t...
UVG Videos to play in Smart Phones
by Ibbs
HiIs it possible for UVG videos to be played on Smart phones. e.g black berry or...
Copy to another page
by OKCChopper
I want to copy the module to another page and also have access to the same album...
How to add a link to view all videos?
by anthonyar
Sorry this is a newbie question...i want to add a link to the menu to VIEW ALL t...
Personal vs Profile mode
by coolvibe
I carefully read the description for both modes. but, I'm not exactly sure which...
Permission Check Failed
by tbredweb
I am getting the message: The binary pack is not installed, or ASPNET/Network_Se...
Furniture Showroom major crash
by myearwood
Hi PengstenI sent you an email via service@bizmodules.net. It concerns the furni...
Top photos windows size restriction
by OKCChopper
I have it so that i can restrict the size of the photos. However since some arn...
Our Partnership
If you are looking for good
DNN hosting
, then PowerDNN is the
best DNN host
around!
Support Forum
Unanswered
Active Topics
Forums
Search
Forums
>
Ultra Media Gallery
>
General Questions
Subject: Failed to compare two elements in the array
Email me when someone replies to this thread.
Prev
Next
You are not authorized to post a reply.
Author
Messages
Oldest First
Newest First
soona rai
Posts:1
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:5179
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.
Ultra Media Gallery
--<b>General Questions</b>
--<b>Support Questions</b>
--<b>Suggestions and Ideas</b>
--<b>Share your language pack</b>
Ultra Video Gallery
--<b>General Questions</b>
--<b>Support Questions</b>
--<b>Share your language pack</b>
Other Products
--<b>Portal Tooltip</b>
--<b>Personal Gallery</b>
--<b>Site Analyzer</b>
--<b>Module Permission Manager</b>
--<b>Other Modules</b>
Forums
>
Ultra Media Gallery
>
General Questions
> Failed to compare two elements in the array
Enterprise level
DotNetNuke
Solutions
Copyright © 2005-2008 BizModules
| Contact Us |
Terms Of Use
|
Privacy Statement