CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 3/25/2008 12:26:51 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 35 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
nimeshprabhakar
Asp.Net User
Arranging items in Menu COntrol3/25/2008 12:26:51 PM

0/0

I am using menu Control to display Some items.

Home | Manitain Customers | Maintain Accounts | Maintain Credits | Customers ================> i am having a menu like this.

Out of these 5 menu's, 4 are static and the last one is dynamically generated during the runtime. This beign displayed at last, but what should i do if i wanna display it in the first like this:

 Home | Customers | Manitain Customers | Maintain Accounts | Maintain Credits

 

Thanks in Advance




Thanks and Regards
Nimesh Prabhakar
ramblor
Asp.Net User
Re: Arranging items in Menu COntrol3/25/2008 12:39:58 PM

0/0

You can use 'AddAt' to add the menu item at the index you want, e.g.:

        MyMenu.Items.AddAt(1, new MenuItem("Customers"));      // where 1 is the index to insert your new menu item at
 


Sometimes I think my posts are invisible :(
anas
Asp.Net User
Re: Arranging items in Menu COntrol3/25/2008 12:43:27 PM

0/0

you need to use Menu.Items.AddAt(index, newMenuITem)

e.g:

protected void Page_Load(object sender, EventArgs e)

{

MenuItem Customer=new MenuItem("Customer");

// insert the customer at the second item

this.Menu1.Items.AddAt(1,Customer);

 

}


Anas Ghanem | My Blog | Online VB - C# Converter | Aljazeera
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Alan Simpson's Windows XP Bible Authors: Alan Simpson, Pages: 1200, Published: 2005
The Psychology of Menu Selection: Designing Cognitive Control at the Human/computer Interface Authors: Kent L. Norman, Pages: 350, Published: 1991
Macromedia Flash MX: Training from the Source Authors: Chrissy Rey, Pages: 460, Published: 2001
Windows XP All-in-One Desk Reference For Dummies Authors: Woody Leonhard, Pages: 816, Published: 2004
PC QuickSteps Authors: Guy Hart-Davis, Hart-Davis Guy, Pages: 240, Published: 2008
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Alan Simpson's Windows Vista Bible Authors: Alan Simpson, Todd Meister, Pages: 1176, Published: 2007
Dreamweaver 8: The Missing Manual Authors: David Sawyer McFarland, David Pogue, Pages: 936, Published: 2006
Dreamweaver MX 2004: The Missing Manual Authors: David Sawyer McFarland, David Pogue, Pages: 836, Published: 2004

Web:
Arranging items in Menu COntrol - ASP.NET Forums Arranging items in Menu COntrol. Last post 03-25-2008 8:43 AM by anas. 2 replies . Sort Posts:. Oldest to newest, Newest to oldest ...
Arrange Menu Bar items - The Apple Blog Community Arrange Menu Bar items Arrange Menu Bar items ... Hold control (the apple key) while you click, and you can drag menu bar items. ...
Visual Studio Magazine Online | Wahlin on .NET: Creating a Flyout ... This example uses a parent StackPanel control to arrange two child StackPanel ... it expands to a height of 40 so that they can see all of the menu items. ...
Ribbon Gallery Control Much like a menu control, the gallery control is simply a container for its child elements. The child elements for a gallery are the gallery "items" and ...
Hierarchical menu Simply arrange the items hierarchically when defining the menu through the ASPX. A menu control has an Items property that represents its items. ...
Customizing your menu bar, arrange, remove, and add menulets | OS ... Mar 6, 2008 ... The items you have as a default will largely depend on your computer. .... Wow, I never even noticed I had a volume control in the menu bar. ...
Walkthrough: Creating an MDI Form with Menu Merging and ToolStrip ... In this procedure, you will define a separate child form class that has its own MenuStrip control. The menu items for this form are merged with those of the ...
Menu Reference | Constructor for Palm OS® The Arrange menu is available when a form layout window is active. ... Items in this menu control the layout grid, and item visibility. ...
ComponentOne Studio for Silverlight Menu Control for Custom Navigation in Silverlight ... for Silverlight provides a full suite of controls for arranging items on your Silverlight application. ...
CorelDraw 101 pg 5: Production Graphics with Wendy Peck at ... Click on any of the Menu Items to expand the menu choices. The Main Menu provides ... This selection provides control for all page properties. Arrange Menu ...

Videos:
Me playing Tetris Tetris is a puzzle game where seven different types of blocks continuously fall from above and you must arrange them to make horizontal rows of ...
Imaging: Irfanview - Collage Project Episode 25 (of a 25-part series) This Nortel LearniT tutorial offers a collage project to further familiarize students with Irfanview.
Imaging: Irfanview - Collage Project Episode 25 (of a 25-part series) This Nortel LearniT tutorial offers a collage project to further familiarize students with Irfanview.
Full Focus: Tax Returns For Sale; New Medicine; Violinist ... new IRS proposal would make this legal with just a signature on a consent form. On Wednesday's Full Focus, it's a marketer's dream -- but could ...




Search This Site:










can the user retrieve the sql server login name and passwords?

skinning questions

preserving links

add web reference error message in visual studio 2005

error on initial startup on clean system (could not load skin: ~/portals/_default/skins/_default/admin.ascx)

custom control question

formsauthentication- asp.net 1.1 sp1

integer inbetween

datagrid

new programmer

how to maintain data in the class modules with c#

conversion problem from vs2005 to vs2008 beta 2

how to write validaterequest = false in code behind

are windows hosting rates killing us rapidly

multi-user webisite question

any help on providing the download of the old intranet template ?

deriving a control from a base class declared mustinherit

row height

newbie question - module installation

must be missing something obvious with searching

problem with cryptographic service provider (csp) implementation (rc2cryptoserviceprovider class)

weird - pages content does not show

tree view depth

carry out code every time when an .aspx page is loaded - how?

problem with flash

menu/treeview hybrid site navigation?

is it required to have a global.asax file

using response.addheader on the same page as asp.net control

search function

webpart design time issue with xmldoc as control public property.

 
All Times Are GMT