Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: Geting the Index of a Datalist member?


Message #1 by "John Hamman {Hamman Interactive}" <johnhamman@C...> on Mon, 10 Jun 2002 15:46:48 -0400
hi all, Im trying to modify the ibuyspyportal forum.
And i would like to get the index of the current datalist Item,
but there code is as below.Where TopLevelList.SelectedIndex is the index of
the item selected not the current item.
Can someone help me change that to the ItemsIndex?
thanks
john


Function GetThreadMessages() As SqlDataReader

            ' Obtain a list of discussion messages for the module
            Dim discuss As New Akolade.DiscussionDB()
            Dim dr As SqlDataReader 
discuss.GetThreadMessages(TopLevelList.DataKeys(TopLevelList.SelectedIndex).
ToString())

            ' Return the filtered DataView
            Return dr

        End Function


  Return to Index