Hi everybody,
Sorry , i made mistake, i gave wrong subject name for my module.
i dont know how to edit subject option.
This is my subject : " Failed to compare two elements in the array"
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 |