Solved

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

Posted on 2010-11-18
2
864 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
Comment Utility
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
Comment Utility
Thank You  so much.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

762 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

9 Experts available now in Live!

Get 1:1 Help Now