Modules

Support Forums
We found and added the serial numbers for both sales and rental version
Last Post 04 Oct 2008 01:23 PM by Emit. 1 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Nancy
New Member
New Member
Posts:1

--
04 Oct 2008 11:08 AM  

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

Emit
New Member
New Member
Posts:33

--
04 Oct 2008 01:23 PM  
Hi Nancy,

Sorry to hear you are having trouble writing your own module. Unfortunately this is not the proper place to post this question. This forum is for people needing help with our digFlash module. You might find some useful answers to your problem by doing a search on Google. Good Luck.

Emit
You are not authorized to post a reply.

Active Forums 4.2