Internet Explorer Developer Center > Internet Explorer Development Forums > Internet Explorer Web Development > How do I troubleshoot an issue with the AJAX ReorderList DoReorder method?
Ask a questionAsk a question
 

QuestionHow do I troubleshoot an issue with the AJAX ReorderList DoReorder method?

  • Thursday, April 02, 2009 1:47 AMDerrick Lau Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I have a ReorderList control on an ASP.NET 2.0 web page.  The ReorderList has an edit template and an insert template.  These templates include TextBox controls that users can enter values for.  Some of these textboxes only allow decimal values by use of a FilteredTextBoxExtender control, which is added dynamically via the OnDataBound() event, since the ID of the textbox controls changes as new items are added to the list.

    Since doing this, I am getting an exception on every reorder.  The exception I get states I am trying to convert a System.Decimal value to System.Int32.  It seems to be thrown in the DoReorderInternal method of the ReorderList control, which I have inherited from to create my own custom ReorderList class.  However, the exception is thrown when calling a delegate method, and I cannot step into that method's source to see where the problem occurs.

    Would anyone have any suggestions as to how to troubleshoot this?

    Would anyone be able to tell me where to download the source code for the ReorderList AJAX control, in C#?
    Derrick Lau

All Replies

  • Monday, April 13, 2009 8:10 AMIECUSTOMIZERMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,


    Have you tried converting your decimal inputs to integer values by allowing only integer input on the client side and then converting it to the decimal value that you need on the server?


    eg. 1.01 = 101/100


    so for the interface you may have

    <span>.</span><input type=text value=""/>


    Regards.
    Rob^_^
  • Friday, November 06, 2009 1:59 PMluismolina Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    hi, i have similar problem, have you found the answer?
  • Friday, November 06, 2009 6:15 PMDerrick Lau Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Yes, the problem is solved.  When I used ReorderList, I had a helper class which passed the values back to the database. his class stored the integer value as a string.

    If you give me a high level description of your problem and the exception message and stacktrace, I can help you debug.
    Derrick Lau