This is a migrated thread and some comments may be shown as answers.

RAD Menu and Querystrings

1 Answer 76 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Kev
Top achievements
Rank 1
Kev asked on 14 Nov 2008, 09:42 PM
So I have a radmenu configured to pull out the items in it from my database. This works well. . But I am having trouble because I need to use a querystring and cannot find a way to do this with your software. It data driven. I want to go to catalog.aspx and then pass the related querystring information for each sub category clicked. And I am also having trouble with root items and a query string using the hierarchical convention you advise in your video tutorials. please be as detailed as possible.




I want to put an expression like this in the navigate url or somewhere

"../Catalog.aspx?ParentID=" + Eval("DepartmentID") + "&CatID=" + Eval("CatID")

 

1 Answer, 1 is accepted

Sort by
0
Edgar
Top achievements
Rank 1
answered on 16 Nov 2008, 09:52 PM
Hi kev

try this


 Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then
            MenuData()
        End If
End Sub

 Public Sub MenuData()
        Dim Mesage As String
        Dim Conex As New clsConexion
        Dim DtMenu As Data.DataTable
        Dim squery As String = "select Menu, idMenu, nivel, padre, pagina from TABLE1"
        Try
            DtMenu = Conex.EjecutaSP(squery)
            RadMenu1.DataSource = DtMenu
            RadMenu1.DataFieldParentID = "padre"
            RadMenu1.DataFieldID = "idMenu"
            RadMenu1.DataTextField = "menu"
            RadMenu1.DataValueField = "pagina"

            RadMenu1.DataBind()
        Catch ex As Exception
            Mesage = ex.Message

        End Try
    End Sub


hope this help
Tags
Menu
Asked by
Kev
Top achievements
Rank 1
Answers by
Edgar
Top achievements
Rank 1
Share this question
or