Query to power RadSiteMap

In the article below, we show the data structure for a table designed to power the RadSiteMap control. It is, in fact, the table that powers the menu on this site

 

Table Structure

Query that becomes the DataSource for the RadSiteMap

 

 

Code Behind

Private Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
    Session("subject") = "eConnect Menu"
    Me.SiteMap1.DataSource = SPs.FP_Menu_SEL_forMenu("eConnect", "DynDeveloper").getTable
    SiteMap1.DataTextField = "Title"
    SiteMap1.DataNavigateUrlField = "URL"
    SiteMap1.DataFieldID = "ID"
    SiteMap1.DataFieldParentID = "ParentID"
    Me.SiteMap1.DataBind()
End Sub

 

 

 


RealWorldCode gives developers practical, real‑world solutions with clean, working code — no fluff, no theory, just answers.
Links
Home
Knowledge Areas
Sitemap
Contact
Et cetera
Privacy Policy
Terms and Conditions
Cookie Preferences