Stop post back for certain <div>'s
Posted on 2006-11-01
Wonder if you guys can help me?
I'm using ASP.NET/C#/VS2005.
I have a master page with 3 <div>'s
the menu <div> has a treemenu (not VS treemenu), its all done in JS. When a user clicks on a menu it will open up and display submenus, and they can click on any of the hrefs.
My problem is when someone clicks on any of the submenu links, it does a post_back, and because of that, it refreshes the whole screen, so the menu is collapsed. Is there a way to stop a post back on the menu <div>?
Thanks, and I hope that makes sense?