473,385 Members | 1,392 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

how to create menu with sub menus dynamicly

I've got a problem with asp.net i am trying to make a menu control. and have
searched the web for serveral controls but they don't work correctly.

I am pretty new to asp.net building. What am i looking for. i am looking for
code to make a dynamical menu with submenus The menu items are stored in a MS
SQL Table and when by loading the page the items will be created. i have made
a asp table. i want my menu on the left cell, in the middle cell i want to
change my pages to the menu item choosen.

This is what my page look like right now
<form id="Form1" method="post" runat="server">
<asp:Table id="Table1" runat="server" Height="72px" Width="944px">
<asp:TableRow>
<asp:TableCell>
<asp:linkbutton id="btnLogOut" style="Z-INDEX: 102; LEFT: 8px; TOP:
8px" runat="server" Width="80px"
Height="8px">Logout</asp:linkbutton> </asp:TableCell>
<asp:TableCell>
<asp:textbox id="txtUsername" style="Z-INDEX: 101; LEFT: 112px; TOP:
8px" runat="server" Width="144px"
Height="24px"></asp:textbox>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell>
<uc1:Menu id="Menu1" runat="server"></uc1:Menu>
</asp:TableCell>
<asp:TableCell>
<uc1:messages id="Messages1" runat="server"></uc1:messages>
</asp:TableCell>
<asp:TableCell>test</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>
</body>

so for an instance i want to change the messages to Sent items page how can
i do that?
It would be great if some one can give me some examples of making menus and
how to change the page.
and is it possible to do it all from the code behind?
Nov 8 '05 #1
1 2321
paula wrote:
I've got a problem with asp.net


There was no way for you to know it (so don't bother apologizing), but this
is a classic asp newsgroup.
While you may be lucky enough to find a dotnet-knowledgeable person here who
can answer your question, you can eliminate the luck factor by posting your
question to a group where those dotnet-knowledgeable people hang out. I
suggest microsoft.public.dotnet.framework.aspnet.

I believe that what you want is not possible with server-side code. Dynamic
elements must use either CSS or DHTML (client-side code).

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Nov 8 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Raymond H. | last post by:
Hello, 1- How to see, in a Label, the URL of a link that the mouse pass over? (in the WebBrower control in a vb projet). 2- How to create a menu and a submenu via a button Command1? and...
7
by: johkar | last post by:
I am confused on childNodes or children. When you have nested lists, I would think it would all be one list in the Dom, this doesn't seem to be the case. So how do you traverse an unordered list?...
2
by: Jackson Yap | last post by:
can someone kind enough to help me look at the attached html and js file? Why is it that the javascript menu could not work at www.apchosting.net but could work at...
16
by: Jay | last post by:
I've been using Travis's Expanding Menu (http://www.squidfingers.com/code/dhtml/expandingmenu/) for a site i'm working on. The problem is I need to add some functionality to it. I need the the...
4
by: Dacian | last post by:
Hi, I´m trying to place a javascript navigation menu inside a cell of a table in my page, the problem is that the constructor of the menu object has parameters for menu positioning and size and...
7
by: cefrancke | last post by:
I cant seem to find a straight answer on the following. I want to programmatically hide all menus except a basic custom report menu (during report preview) and right click pop-up A-Z sorting on...
6
by: daniel.sumanth | last post by:
Hello, Have customized the menu options in Access 2000 in a computer. However, it seems that the customizations apply only when I'm logged in and not to other users. Is there any way to use the...
1
by: Fritz Switzer | last post by:
I have a two part question. I would like to provide a run-time feature that would duplicate the design-time capability to create a Context Menu. This would be where the user could create their...
3
by: Raghu Raman | last post by:
Hi, I am new to .net and got a good foundation in Vb and i hope i am picking up the .net framework. I could easily create a menu item in VB.NET But How to create a webpage with menu items...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.