ASP.NET - How to show menu in on button click

Asked By rajeev chandra on 01-Mar-12 09:44 PM

I need to show menu on button click 

Please help ASAP 

Venkat K replied to rajeev chandra on 01-Mar-12 10:07 PM

Hide the menu with your css display:none and then use jquery to display it:

$(document).ready(function() {

Somesh Yadav replied to rajeev chandra on 02-Mar-12 01:22 AM

Sure (not tested but this should work)

protected void yourMenu_MenuItemDataBound(object sender, MenuEventArgs e)
 // Add a client-side onclick event handler to the "Home" menu item...
 if ( e.Item.Text == "Home" )
   e.Item.Attributes.Add("onclick", "return getFile();");