CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 8/23/2007 10:14:57 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 22 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
leolander
Asp.Net User
Dynamic Menu8/23/2007 10:14:57 AM

0/0

Hi all, would like to make an enquiry, I am trying to build a dynamic collapsible menu which means the items in the menu are not hard coded and will have to be dynamically added in during runtime. I have look at some examples and realise that they actually put the items which are suppose to be in the menu between <span> or <div> tags, how can I generate these tags from code behind dynamically and place the items between these tags, do I use htmltextwriter? or is there a easier way to build this menu.

Thanks

Adam.Kahtava
Asp.Net User
Re: Dynamic Menu8/23/2007 12:31:20 PM

0/0

 Which menu are you using? Are you using the ASP.NET 2.0 CSS Friendly Control Adapters or the standard ASP.NET Menu? Have you looked into using an SiteMap or database to populate your menu?

Here are a couple great articles:


-Adam Kahtava [http://adam.kahtava.com]
Johnson2007
Asp.Net User
Re: Dynamic Menu8/27/2007 10:10:57 AM

0/0

The following is just a sample. May it helps...

 ASPX file:

  

    <div>
        <asp:Panel ID="Panel1" runat="server" Height="50px" Width="125px">
        </asp:Panel>
    </div>

 cs file:

 

protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            Menu menu = new Menu();
            menu.Orientation = Orientation.Horizontal;

            MenuItem item1 = new MenuItem();
            item1.Text = "Item1";
            item1.NavigateUrl = "Default1.aspx";

            MenuItem item11 = new MenuItem();
            item11.Text = "Item1_Item1";
            item11.NavigateUrl = "Default2.aspx";

            item1.ChildItems.Add(item11);
            menu.Items.Add(item1);

            MenuItem item2 = new MenuItem();
            item2.Text = "Item1";
            item2.NavigateUrl = "Default1.aspx";

            MenuItem item22 = new MenuItem();
            item22.Text = "Item1_Item1";
            item22.NavigateUrl = "Default2.aspx";

            item2.ChildItems.Add(item22);
            menu.Items.Add(item2);

            Panel1.Controls.Add(menu);
        }
    }
  

 


Johnson
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Foundations of GTK+ Development Authors: Andrew Krause, Pages: 630, Published: 2007
Beginning JavaScript Authors: Paul Wilton, Pages: 1056, Published: 2000
CSS Cookbook: Covers CSS 2.1 Authors: Christopher Schmitt, Pages: 252, Published: 2004
Alan Simpson's Windows XP Bible Authors: Alan Simpson, Pages: 1200, Published: 2005
Designing Web Navigation: Optimizing the User Experience Authors: James Kalbach, Pages: 394, Published: 2007
Foundation PHP for Dreamweaver 8 Authors: David Powers, Pages: 510, Published: 2005
ASP.NET 2.0 Cookbook Authors: Michael A. Kittel, Geoffrey T. LeBlond, Pages: 989, Published: 2005
Practical Web Technologies Authors: P. K. Yuen, V. Lau, Pages: 928, Published: 2003
Practical Art of Motion Picture Sound Authors: David Lewis Yewdall, Pages: 424, Published: 2003
Beginning Ajax Authors: Chris Ullman, Lucinda Dykes, Pages: 498, Published: 2007

Web:
Dynamic Drive- DHTML & JavaScript Menu And Navigation scripts Pop-it allows you to associate a dynamic menu with regular links on your page. As the mouse moves over the link in question, a menu pops up containing "sub ...
Dynamic Drive DHTML Scripts- Simple Tree Menu A folding DHTML menu tree with persistance feature, created via cookies.
PHP Dynamic Menu Tools But before doing so, I decided to evaluate the existing dynamic menu tools available. In the end I junked mine and starting working with a modified version ...
SimplytheBest DHTML slide-out menu script dynamic menu Simply the Best DHTML scripts and javascripts: slide-out menu script dynamic menu.
YADM-Yet Another Dynamic Menu Oct 13, 2004 ... YADM-Yet Another Dynamic Menu. (Page 1 of 4 ) YADM is an accessible DHTML dropdown/flyout/explorer solution with complete separation of CSS ...
Accessible and styleable drop down menu with DOM and CSS YADM - Yet another dynamic menu. YADM is an accessible DHTML dropdown/flyout/ explorer solution with complete separation of CSS and Javascript. Skip to news ...
Building a dynamic drop down menu Learn how to use the power of PHP and CSS to build dynamic drop down menus.
Dynamic menu with submenus Tutorial details: Written by:Lesley Thiel | www.thielgroup.com Difficulty Level: Advanced Requirements: Flash MX Download FLA.
Building a Dynamic Menu with CSS and JavaScript, part 1 Jun 22, 2005 ... We’re going to build a dynamic navigation menu that will identify the active page ... Since I’ll be progressively building the dynamic menu, ...
Build a Dynamic Menu in JavaScript [JavaScript & Ajax Tutorials] They're versatile, they're popular, and they're not as complicated as they look! Premshree shows you how to build your own dynamic JavaScript menu in this ...

Videos:
Dynamic Menu Board Dynamic Menu Board
Ciphone 3G face,mobile phone,More features will be added in. MSN:[email protected] SKype:markma424 www.made-in-china.com/showroom/aiwahn. The world's first 1: 1 3G clone with same size same weight, same dyn...
Demo of the new "Dynamic Reflections" (and it's bugs) This may only be available on the latest (Second Life 1.13.3.57575) First Look Viewer. To access the option, go into the Client debug menu ([Ctrl] +...
ZT529 Dynamic UI menu display Dual SIM dual standby soundasia www.soundasia.com Double SIM double standby, fantastic dynamic UI menu display, keyboard shining with colorful lights while music playing. FM radio,...
C-IPHONE VS IPHONE THIS IS A WAR NO BLOOD NO GUN JUST A GAME CIPHONE SELL BY http://www.fastcardtech.com ACCEPT PAYPAL SHIP TO WORLD WIDE REALLY CRAZY COPY PHONE,ALMOST IS SAME,SAME CASE SAME SIZE SAME LOGO,C...
[GIMP Tutorial]Dynamic Shortcuts I still believe dynamic shortcut assignment is the most user-friendly way to define custom shortcuts. However functionality like mnemonics clash with...
199USD 8G CIPHONE NEW VERSION WITH JAVA 2.0 QUICK VIEW ITEM SELL BY http://www.fastcardtech.com Email: [email protected] Msn:[email protected] THIS IS REAL 8GB STORAGE IN PHONE NEWEST VERSIO...
C-IPHONE 100% IPHONE COPY SYSTEM FAST REVIEW SUPER COOL Email: [email protected] http://www.fastcardtech.com Msn:[email protected] IPHONE SELL PRICE USD399,THIS PHONE ONLY HALF,BUT FUNCATION I...
MISSISSAUGA PELCOrporate Security This- is PELCO Mississauga. MISSISSAUGA EMERGENCY PREPAREDNESS DAY... In the interest of fairness and cooperation, I wanted to highlight Mississaug...
CECT C902 TV Phone with Shake and Tilt and Gravity Sensor An innovative phone model. It has recording function for TV programs; "shake and tilt" feature to switch wallpaper, songs, videos, TV channels; grav...




Search This Site:










banner ad space & master pages

2 quesions/issues

bug with masterpages and usercontrol outputcache shared=false?

where is header and side template insert table ??

how to override <menu> default output & have a css stylesheet control all rendering

menu click event handling problem on master page...

navigation menu question.

2.0 menu control not working in beta 2

content area problem

menu control does not appear the same in ie and firefox

position a panel to the right

treeview - selectednodechanged event with showcheckbox activated.

2 master pages within one site not nested

descending into folders

style sheet not attaching to forms or pages

treenode not returning parent

html size of menu

master pages, styles and ids

asp menu control

how many content place holders?

export template

masterpages; adding content to head and strict xhtml

stylesheet won't load for the signon form

menu item with image

problems with css - site looks different in ie and firefox

remove arrow from menu

master pages and page base classes

menu control in master pages

master page returns null

how come this doesn't work? label on master page will is not accessible?

  Privacy | Contact Us
All Times Are GMT