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: 11/5/2007 4:05:39 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 35 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
khushi2005
Asp.Net User
Populating Child Menu with click on Parent menu11/5/2007 4:05:39 PM

0/0

Hi

I am trying to populate child menu when a Parent menu is clicked

Since  Iwant low maintainence code that with change in my sitemap I do not want to change the Page cs file

How can I write this code where I can avoid case and also default paths

protected
void Menu5_MenuItemClick(object sender, MenuEventArgs e)

{

 

switch (e.Item.Value)

{

case "Parent Menu1":

sitemapDSSecMenu.StartingNodeUrl = "~/WebPages/Menu1/Default.aspx";

break;

case "Parent Menu2":

sitemapDSSecMenu.StartingNodeUrl = "~/webpages/Menu2/Default.aspx";

break;

case "Other":

sitemapDSSecMenu.StartingNodeUrl = "~/Filtering/Default.aspx";

break;

}

}

Amanda Wang - M
Asp.Net User
Re: Populating Child Menu with click on Parent menu11/7/2007 6:29:28 AM

0/0

Hi

khushi2005:

I am trying to populate child menu when a Parent menu is clicked

Since  Iwant low maintainence code that with change in my sitemap I do not want to change the Page cs file

The menu control cannot support to populate the childitem when the parent menu is clicked. You can try to use the treeview control.

You use the sitemapdatasource for the menu's datasource, if the sitemapnode's url is not empty, the page will redirect to the url directly without postback, so the menuitem click event cannot be fired. If the sitemapnode's url is empty, the menuitem is unclickable, so the menuitem click event also cannot be fired.

Hope it helps.


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Active Directory Cookbook Authors: Robbie Allen, Laura E. Hunter, Pages: 962, Published: 2006
C# for Programmers: Updated for C# 2.0 Authors: Paul J. Deitel, Pages: 1317, Published: 2005
How to Build a Business Rules Engine: Extending Application Functionality Through Metadata Engineering Authors: Malcolm Chisholm, Ronald G. Ross, Pages: 484, Published: 2004
Business Intelligence with Microsoft Office PerformancePoint Server 2007 Authors: Craig Utley, Pages: 358, Published: 2008
Active Directory Cookbook Authors: Robbie Allen, Laura E. Hunter, Pages: 962, Published: 2006
Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter Kit: visual web developer 2005 express edition starter kit Authors: David Sussman, Alex Homer, Pages: 312, Published: 2005
TOAD Handbook: Tools for Oracle Application Development Authors: Bert Scalzo, Dan Hotka, Pages: 297, Published: 2003
Programming Microsoft Visual Basic 6.0: [master Object-oriented Programming Techniques for Rapid 32-bit Development] Authors: Francesco Balena, Pages: 1276, Published: 1999
Expert SQL Server 2005 Integration Services Authors: Brian Knight, Erik Veerman, Pages: 404, Published: 2007
Building Websites with the ASP.NET Community Starter Kit Authors: Cristian Darie, K. Scott Allen, Pages: 284, Published: 2004

Web:
CodeProject: Populating Menu Control in ASP.NET 2.0 - using ... An article on how to populate the Menu control in ASP.NET 2.0 using different data sources.; ... Call self passing the Child ITem as parent Item ...
Joomla Templates, Components and Free Downloads for Joomla CMS ... Once you've accessed the menu, click on the menu item you wish to make a 'child' item in your menu. You will see the 'Parent Item' parameter on the left ...
15 Seconds : Populating the TreeView Control from a Database Populating the TreeView Web Control from a database allows menu and input ... There must be a common field in both to define the Parent Child relationship. ...
The BalusC Code: Populate child menu's To populate a child menu of which its contents is to be determined based on the value of the parent menu, you have to submit the form to the server on ...
Using List/Menu form elements The list or menu uses a s tag to create the list and o tags for each entry in the ... Sub-options populate the Child List from the Dynamic Array based on ...
Welcome to the Enterprise Architect Version Control tutorial. This ... You can check in/out multiple packages in a branch using the context menu. Right -click on the parent node and select Package Control -> Check In Branch You ...
Silverlight: how to build a simple Menu Control at Guardian’s Home Sep 25, 2008 ... Menu and SubMenu items have a ParentMenu property to trace who’s his parent cause when you click on a SubMenu you have to close the popup ...
BUG: A new record that is added to a parent DataGrid control does ... 17. On the Debug menu, click Start. 18. Click Load, and then type a new record in the parent DataGrid. 19. Click the child DataGrid. ...
JavaServer Faces - Drop Down Lists and Value Change Events However, the example does not 'set selected values' in child menus depending on parent menus , it populates them based on the parent menu's ...
CodeProject: Populating DataGrid control from a parent-child ... Populating DataGrid control from a parent-child relationship DB table ..... how to insert treeviewCode(Dynamic Menu )into the DataGrid or GridView in . ...




Search This Site:










principalpermissionattribute with multiple roles

add information to createuserwizard and aspnetdb

create users on diff. applicationid -- help pls

random generated password

login and roles

opinions and help!

improper capitalization of username after login

protect and directory and files in it

a nother longin problem

weird problem caused by forms authentication

anyway to authenticate user against domain?

sha256 and windows impersonate

windows authentication

i need help with password security.

does anyone have a input 'scrubber' for validating input?

using email as the username

403 frob. error.......

enforcing pages on ssl

nt login via form authentication

access is denied error when customise mscrm validating with other .net application

http to https doesn't works in some servers.

making login work

aspnetsqlmembershipprovider and login problems - please help!

wrote my own profile manager, now i'm having troubles deleting the accounts.

web.config cannot load after impersonate=true

admin: approve new user

decrypting with signed pfx file

authenticate on sql syslogins

remember me on login control, how to persist cookie?

two cookies for a site good idea or bad?

  Privacy | Contact Us
All Times Are GMT