0
Answer

Itrerate through IList values from Class file in codebehind file.

Hi

How to get and iterate through IList values in codebehind file. IList is filled in class file. Following are code snippets of IList in class file.

Private m_MemberOf As IList

Public Sub New(ByVal UserId As String)
        Me.m_UserId = Server.HtmlDecode(UserId)
        Me.m_MemberOf = New ArrayList
        Try
            GetUserInfo()
        Catch ex As System.Exception
            Trace.Warn(ex.Message + " " + ex.StackTrace)
            Throw ex
            Exit Sub
        End Try

Private Sub GetUserInfo()
  -----
  XML file loaded
  -----
 'Following child nodes
                   Dim groupNodeList As System.Xml.XmlNodeList
                    groupNodeList = userNode.ChildNodes
                    If Not groupNodeList Is Nothing _
                        And groupNodeList.Count > 0 Then
                        Dim groupNode As System.Xml.XmlNode
                        Dim eN As IEnumerator = groupNodeList.GetEnumerator
                        While eN.MoveNext
                            groupNode = eN.Current
                            Me.m_MemberOf.Add(groupNode.Attributes("name").Value())
                        End While
                    End If
End Sub


In codebehind getting parent node attribute values but how to get and iterate IList.

Reply Plz.

Thanks