troubleshooting Question

Simple menu control shows childitems count =0

Avatar of Camillia
CamilliaFlag for United States of America asked on
.NET ProgrammingASP.NET
14 Comments1 Solution797 ViewsLast Modified:
This cant be that hard. I have an XML with 1 parent node and 3 childnodes. I bind this to a Menu Control. I want to set the URL of the code behind. I do this in *** OnMenuItemDataBound ***

**** THE COUNT Comes as zero*** why??

Protected Sub test(ByVal sender As Object, ByVal e As MenuEventArgs)
        Dim t As Integer = e.Item.ChildItems.Count
         If e.Item.Value = "jobseekers" Then
            Dim test As String = e.Item.ChildItems(0).Text
            e.Item.ChildItems(0).NavigateUrl = Page.ResolveUrl("~/" + ConfigurationManager.AppSettings("jobseekerfolder") + "/" + e.Item.ChildItems(0).NavigateUrl)
        End If

**** I see the menu on the screen with the child nodes. The XML is this:

    <PostResume url="postresume.aspx"></PostResume>
    <SearchJobs url="jobsearch.aspx"></SearchJobs>
    <MyFavorites url="MyFavorites.aspx"></MyFavorites>
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 14 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 14 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros