TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Kuna Sharma
NA
10
0
Itrerate through IList values from Class file in codebehind file.
Sep 19 2008 10:22 AM
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
Reply
Answers (
0
)
Testing forums
Word automation using ASP.net