Radtreeview and NavigateURL

1 posts, 0 answers
  1. Leszek
    Leszek avatar
    1 posts
    Member since:
    Jan 2009

    Posted 18 May 2009 Link to this post

    Hi,
    i'm using RadTreeView like menu on MasterPage. in code:

     

    protected void RadTreeMenu_DataBound(object sender, EventArgs e)

     

    {

     

    // add url to Nodes

     

     

    foreach (RadTreeNode node in RadTreeMenu.GetAllNodes())

     

    {

    node.NavigateUrl =

    "ProductList.aspx?color=" + node.Value ;

     

    }

    }


    I set NavigateUrl for each node but when I try get data from Request.Querystring["color"] (in pageLoad ProductList.aspx)
    I can to do only when I load page first time, from difrent page. When I'm on ProductList.aspx and click in tree node commends in PageLoad are not runing.

    How I can take value from valiable "color"?
    Regards.
    Leszek
Back to Top