RAD Menu and Querystrings

2 posts, 0 answers
  1. Kev
    Kev avatar
    11 posts
    Member since:
    Nov 2008

    Posted 14 Nov 2008 Link to this post

    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")

  2. Edgar
    Edgar avatar
    2 posts
    Member since:
    May 2008

    Posted 16 Nov 2008 Link to this post

    Hi kev

    try this

     Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            If Not IsPostBack Then
            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"
                DtMenu = Conex.EjecutaSP(squery)
                RadMenu1.DataSource = DtMenu
                RadMenu1.DataFieldParentID = "padre"
                RadMenu1.DataFieldID = "idMenu"
                RadMenu1.DataTextField = "menu"
                RadMenu1.DataValueField = "pagina"

            Catch ex As Exception
                Mesage = ex.Message

            End Try
        End Sub

    hope this help
Back to Top