Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
|
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 11th, 2009, 06:22 PM
Authorized User
 
Join Date: Dec 2009
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default getting the sub menu from the main menu

Hi,

I have a menu control (its a user control and not the web/UI control) and is referneced in all the web pages of the application. One of the menu items has 2 submenus.

Reports
Import
Export.

In the code behind, i would like to see which sub menu is being selected and accordingly perform the operation.

Any suggestions as to how can we select the sub menu from the menu user control (in code behind)

Thanks
 
Old December 12th, 2009, 12:52 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Wouldn't you know this once a user clicks on Import or Export?
__________________
===============================================
Doug Parsons
Wrox online library: Wrox Books 24 x 7
Did someone here help you? Click on their post!
"Easy is the path to wisdom for those not blinded by themselves."
===============================================
 
Old December 12th, 2009, 04:37 PM
Authorized User
 
Join Date: Dec 2009
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default Getting the sub menu from the main menu

Thtas what i want to find out. Once the Option from the report menu is clicked, i need to know which one is clicked: import or export summary. In short, i need to capture the menu item thats ben selected from the reports.
 
Old December 18th, 2009, 11:17 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 107
Thanks: 1
Thanked 8 Times in 7 Posts
Default

It would help in cases like this if you posted your code.

Normally a menu item would have a NavigateURL and this would define which link to follow.
 
Old December 30th, 2009, 11:27 PM
Registered User
 
Join Date: Dec 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by swatianand View Post
Thtas what i want to find out. Once the Option from the report menu is clicked, i need to know which one is clicked: import or export summary. In short, i need to capture the menu item thats ben selected from the reports.
I think so
--------------
quang cao online | quang cao





Similar Threads
Thread Thread Starter Forum Replies Last Post
Anable/Disable main menu item problem Dmitriy Oracle ASP 0 January 23rd, 2007 03:36 PM
Anable/Disable main menu item problem Dmitriy Ajax 0 January 23rd, 2007 03:29 PM
Anable/Disable main menu item problem Dmitriy Assembly Language 0 January 23rd, 2007 03:27 PM
Help with Main Menu GAF General .NET 0 March 18th, 2005 08:10 PM
Main menu function andy_study VB.NET 2002/2003 Basics 2 December 15th, 2004 06:48 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.