Solved

How to enable "open in a new tab" option while right click on my menu

Posted on 2010-11-18
2
873 Views
Last Modified: 2012-05-10
Hi,

I developed a webpage using asp.net 2008. I have used aps:menu to link other pages. The links are opened properly. But my problem is, when I right click on any link in the menu, "open in a new tab" and "open in a new window" options are disabled. How to enable this?  My code follows

 <asp:Menu ID="Menu3" runat="server" Font-Bold="True" Font-Names="Calibri"
            Font-Size="Small" ForeColor="#000099" Orientation="Horizontal"              
                style="position:absolute ;  z-index: 5; left: 750px; top: 5px;  height: 28px;
            width: 200px; text-align: center;">
            <StaticSelectedStyle Font-Underline="True" ForeColor="Black" />
            <StaticHoverStyle ForeColor="#FF0066"  Font-Bold="True" />
            <Items>
                <asp:MenuItem SeparatorImageUrl="~/images/MenuSplitBar.jpg" Text="Home"
                    Value="Home">
                </asp:MenuItem>
                <asp:MenuItem SeparatorImageUrl="~/images/MenuSplitBar.jpg" Text=" Enquiry"
                    Value=" Enquiry"  ></asp:MenuItem>
                <asp:MenuItem Text="Service Request"
                    Value="ServiceRequest"></asp:MenuItem>
            </Items>
        </asp:Menu>

I am using vb to write linksto the menu. the code as follows

 Protected Sub Menu3_MenuItemClick(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.MenuEventArgs) Handles Menu3.MenuItemClick
        Select Case e.Item.Value
            Case "Home"
                Response.Redirect("Default.aspx")
            Case " Enquiry"
                Response.Redirect("Enquiry.aspx")
            Case "ServiceRequest"
                Response.Redirect("ServiceRequest.aspx")
        End Select
    End Sub

Kindly help me to solve this problem.
0
Comment
Question by:gloier
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
hfpon earned 500 total points
ID: 34162372
Menu Control is a control, not a hyperlink.
So right clicking wont work for Menu.
You have use html type of hyperlink (like <a href..> in order to right click and open in new tab
0
 

Author Comment

by:gloier
ID: 34162940
Thank You  so much.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question