Get Value of DataFieldID

2 posts, 0 answers
  1. Tommy
    Tommy avatar
    27 posts
    Member since:
    Feb 2008

    Posted 09 May 2008 Link to this post

    Hello,

    is it possible to get the value of the DataFieldID from a menu item onClick?

    I have in the DataValueField a different value than in the DataFieldID, so I can't write it in the DataValueField.

    Tommy
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 09 May 2008 Link to this post

    Hi Tommy,

    Try the following code snippet to get the DataFieldID in the ItemClick event of Menu.

    CS:
      protected void RadMenu1_ItemClick(object sender, RadMenuEventArgs e)  
        {  
            string strData = RadMenu1.DataFieldID.ToString();  
        } 


    Thanks
    Princy.
Back to Top