Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
JavaScript error 1 53
c# regex: extract & replace text between braces 6 45
ASP.net Javascript use multiple sliders 2 20
Where can I ask about my ASP.NET MVC project? 6 23
Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

863 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now