Click here to Skip to main content
15,881,139 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello Everyone

I have created a menu taking from the internet.Some its a built in menu. now i want clicking on a particular menu item it will redirect to another page.

how to do that?
my menu looks like this:-

signout jewelry stock
-add
-update

under jewelry add and update sub menu are there.

now i want clicking on add will redirect to additem.aspx which i have created already.

how to redirect that?

i will be obliged if anyone can help

Thanks
Posted
Comments
[no name] 21-Nov-14 0:11am    
Is it the MenuControl or it is the ul-li on masterpage ?
Could you show us the code ?
sudeshna from bangkok 21-Nov-14 0:13am    
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
CodeFile="Menu.aspx.cs" Inherits="Menu" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
<div class="example">
<ul id="nav">
<li class="current">Sign Out</li>
<li>Jewelry
<ul>
<li>Add An Item</li>
<li>Update An Item</li>
</ul>
</li>
<li>Stock
<ul>
<li>View Stock List</li>
<li>View Sold List</li>
<li>View All Items</li>
</ul>
</li>
<li>Search
<ul>
<li>By Serial Number</li>
<li>By Category</li>
<li>By Price</li>
<li>By Stone</li>
<li>By Category-Price</li>
<li>By Category-Stone</li>

</ul>
</li>
</ul>
</div>



this is the code.
sudeshna from bangkok 21-Nov-14 0:17am    
did you see it?
King Fisher 21-Nov-14 0:19am    
i see it go to Solution1
[no name] 21-Nov-14 0:54am    
hi sudeshna, I see it is ul-li. Just follow solution 1 and your problem will be solved

1 solution

use <a href="Root your path"> </a> tag

C#
<ul>
  <li>
        <li><a>Master </a>
              <ul>
               <li><a href="../Admin/Form1.aspx">Form1</a></li>
              <li><a href="../Admin/Form2.aspx">Form2</a></li>
              <li><a href="../Admin/Form3.aspx">Form3</a></li>
              <li><a href="../Admin/Form4.aspx">Form4</a></li>


              </ul>
        </li>
     </li></ul>
 
Share this answer
 
v2
Comments
sudeshna from bangkok 21-Nov-14 0:19am    
didnt get it.can you explain?
sudeshna from bangkok 21-Nov-14 0:22am    
ya i saw the solution1,but didnt understand what you meant.can u explain?
King Fisher 21-Nov-14 0:24am    
add anchor tag within <li></li>
sudeshna from bangkok 21-Nov-14 0:30am    
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
CodeFile="Menu.aspx.cs" Inherits="Menu" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
<div class="example">
<ul id="nav">
<li class="current">Sign Out</li>
<li>Jewelry
<ul>
<li>Add An Item</li>
<li>Update An Item</li>
</ul>
</li>
<li>Stock
<ul>
<li>View Stock List</li>
<li>View Sold List</li>
<li>View All Items</li>
</ul>
</li>
<li>Search
<ul>
<li>By Serial Number</li>
<li>By Category</li>
<li>By Price</li>
<li>By Stone</li>
<li>By Category-Price</li>
<li>By Category-Stone</li>

</ul>
</li>
</ul>
</div>


Check the Add an Item line. i gave the path. but its not coming anything
sudeshna from bangkok 21-Nov-14 0:31am    
<li>Jewelry
<ul>
<li>Add An Item</li>

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900