?
Solved

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

Posted on 2010-11-18
2
Medium Priority
?
874 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 2000 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

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