Home / Software / Tips and Tricks / ASP.Menu (asp dot net menu) to open web pages in a new window.

ASP.Menu (asp dot net menu) to open web pages in a new window.

Updated:  01/21/2011 15:01 PM
Author:  Shiju Mathews

Status:    Resolved.


Traditionally asp:Menu will open pages in the same window only. But .net 2.0 add a proprety called ‘Target’ to the ‘asp:MenuItem’. so that we can open that menu item in a new window.
With the release of ASP.net 4.0, asp:Menu is more attractive with the RenderingMode ="List" property.To know about more read ASP .net Menu in ASP 4.0/ ASP Menu using List Item.

Target values can be '_blank', '_parent', '_search', '_self', '_top'. For more information Please read MenuItem.Target Property

Let’s take a look at the ‘ASP Menu’ control


Here the top two menu item will open in the same window and the last one will open in a new window.