https://bugzilla.novell.com/show_bug.cgi?id=376519


           Summary: DataList SelectedValue throws an exception
           Product: Mono: Class Libraries
           Version: 1.9.0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: mono-bugs@lists.ximian.com
          Found By: ---


When trying to access SelectedValue of a System.Web.UI.WebControls.DataList the
following exception is thrown:

System.Reflection.TargetInvocationException: Exception has been thrown by the
target of an invocation. ---> System.ArgumentOutOfRangeException: Index is less
than 0 or more than or equal to the list count.
Parameter name: index
-1
  at System.Collections.ArrayList.get_Item (Int32 index) [0x00000]
  at System.Web.UI.WebControls.DataKeyCollection.get_Item (Int32 index)
[0x00000]
  at System.Web.UI.WebControls.DataList.get_SelectedValue () [0x00000]


if it is important - I am access it in OnSelectedIndexChanged event of this
DataList.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to