Support

Modules

News

Support Forums
Subject: We found and added the serial numbers for both sales and rental version
Prev Next
You are not authorized to post a reply.

Author Messages
Nancy
Posts:1

10/04/2008 6: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
Posts:15

10/04/2008 8:23 AM  
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.
Forums > Modules > digFlash > We found and added the serial numbers for both sales and rental version



ActiveForums 3.7
Latest Requests Minimize
Urgent Play in Reverse Order, Sort options, Image Count Thu, 20 Nov 2008 18:12:10 GMT

video contest? Fri, 19 Sep 2008 13:08:55 GMT

user comments Fri, 19 Sep 2008 13:03:43 GMT

Hot or not style voting Thu, 03 Jul 2008 08:59:49 GMT

ability to change sort order on closed contests Fri, 30 May 2008 16:49:56 GMT

Pause on MouseOver Sun, 27 Apr 2008 10:53:00 GMT

add contest status on "open contests" page Wed, 02 Apr 2008 00:28:25 GMT

Contestant voting Wed, 26 Mar 2008 05:56:42 GMT

Previous and next links in the Entry Detail layout Sun, 23 Mar 2008 20:20:13 GMT

Lightbox support Tue, 26 Feb 2008 09:59:26 GMT

 Print