<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>
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
string url = "URL.aspx"; HttpContext.Current.Response.Write("<SCRIPT LANGUAGE='JavaScript'>window.open('" + url + "', '_new');</SCRIPT>");
Target="_blank"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)