[Mono-bugs] [Bug 376519] New: DataList SelectedValue throws an exception

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Apr 2 16:16:27 EDT 2008


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: mhabersack at novell.com
        ReportedBy: svyatogor at gmail.com
         QAContact: mono-bugs at 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.


More information about the mono-bugs mailing list