This seems like a simple problem but I am not getting it.
I need my menu to bind to a DB and navigate as follows.
www.mysite.com/Default.aspx?ID=[DatabaseID]
If I use
RadMenu1.DataNavigateUrlField = "ID"
Then it navigates as follows
www.mysite.com/[DatabaseID]
If I use
RadMenu1.PostBackURL = "Default.aspx?ID="
Then I dont get the ID at the end... Where have I gone wrong?
I need my menu to bind to a DB and navigate as follows.
www.mysite.com/Default.aspx?ID=[DatabaseID]
If I use
RadMenu1.DataNavigateUrlField = "ID"
Then it navigates as follows
www.mysite.com/[DatabaseID]
If I use
RadMenu1.PostBackURL = "Default.aspx?ID="
Then I dont get the ID at the end... Where have I gone wrong?
Private Sub RenderMenu() |
If Not Page.IsPostBack Then |
Dim PagesDC As New Dal.icms_PagesDataContext() |
Dim results = From r In PagesDC.icms_Pages_GetPageMenu _ |
Select r |
RadMenu1.DataTextField = "MenuName" |
RadMenu1.DataFieldID = "ID" |
RadMenu1.DataFieldParentID = "ParentID" |
RadMenu1.DataNavigateUrlField = "" |
RadMenu1.DataSource = results |
RadMenu1.DataBind() |
End If |
End Sub |