Articles in this section
Category / Section

How to prevent postback on click events of each menu bar in .NET WebForms (Classic) ?

1 min read

 

You can prevent postback while clicking on the root menu by calling client side event on each root menu item which will return false value. Please refer the below code snippet which illustrates this:

$cc1:MenuItem ID="SDate" Look="lookcommon" ClientOnItemSelect="Dummy()" Text="Server-Date"$

//Here we used "$" symbol instead of "<".

function dummy()

{

return false;

}

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied