Solved

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

Posted on 2010-11-18
2
870 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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

749 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