title: Preventing page refresh when handling MenuItemClick at server
body: <p>I have a menu item that when clicked is calling a C# codebehind function.<br>
  The function doesn't get called and the whole page get refreshed.  </p>
  
  <p>In aspx:</p>
  
  <pre><code>&lt;asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal" onmenuitemclick="NavigationMenu_MenuItemClick"&gt;  
    &lt;Items&gt;  
      &lt;asp:MenuItem Text="Item caption" Value="#" /&gt;  
    &lt;/Items&gt;
  &lt;/asp:Menu&gt;
  </code></pre>
  
  <p>In C#:  </p>
  
  <pre><code>protected void NavigationMenu_MenuItemClick(object sender, MenuEventArgs e)  
  {  
    Response.Redirect("");  
    SomeFunction();  
  }
  </code></pre>
  
  <p>If I'm removing the Redirect call, the page get refresh and looks like a mess.
  Any advice will be welcome.</p>