CodeVerge.Net Beta


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




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: Date Entered: 2/2/2007 11:00:49 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 2 Views: 285 Favorited: 0 Favorite
3 Items, 1 Pages 1 |< << Go >> >|
BGM
Asp.Net User
<asp:MenuItem onClick event?2/2/2007 11:00:49 AM

0

Hi,

I have a menu with items that I would like to perform different things when they are selected instead of navigating away from the page.. is this possible?

If so, what is the best way to go about doing it

Ideally i would just like to access some sort of onclick event that i can then tell to execute doSomeStuff()

Cheers!

Chris
 

tfsmag
Asp.Net User
Re: &lt;asp:MenuItem onClick event?2/2/2007 2:35:02 PM

0

yes you can use the menuitemclick event like so...

protected sub MenuID_MenuItemClick(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.MenuEventArgs) Handles MenuID.MenuItemClick 

    if e.item.value="item value here" then

        'this is where you perform the action

   end if

end sub
 


------------------------------------------------
Jeff Turner (simpleModus)

Don't forget to mark the correct answer for your
question to help out future visitors!
BGM
Asp.Net User
Re: &lt;asp:MenuItem onClick event?2/4/2007 7:18:29 PM

0

oh yes, oops :D

thank you very much for pointing out something so obvious, works like a charm :) 

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


Free Download:

Books:
Excel 2003 VBA Programming with XML and ASP Authors: Julitta Korol, Pages: 948, Published: 2005
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
Beginning ASP.NET 2.0 Authors: Chris Hart, John Kauffman, Chris Ullman, David Sussman, Pages: 759, Published: 2005
Pro ASP.NET 3.5 in VB 2008: Includes Silverlight 2 Authors: Matthew MacDonald, Mario Szpuszta, Vidya Vrat Agarwal, Pages: 1500, Published: 2009
ASP.NET kick start Authors: Stephen Walther, Pages: 608, Published: 2002

Web:
OnClick not working. - ASP.NET Forums The onClick event for a menuItem only fires when there is not a .... I'm pretty new to ASP.NET so I am open to suggestions on how to accomplish this. ...
JavaScript: How to trap click even of MenuItem? Jul 2, 2007 ... Hi Experts, Now can I pick up the click even of a MenuItem with JavaScript? ... 1, trap Menu click event in JavaScript? ASP.Net Programming ...
Menu item click client confirm - C1 Community Looking for ASP.Net components or . ... I tried the same code for the onclick event of the item as return confirm('r u sure') and it worked. ... I have a context C1WebMenu with a Delete menu item and I must ask client ...
Menu Does Not Respond to click Event On First Time - Toolbox for ... Nov 26, 2008 ... Menu Does Not Respond to click Event On First Time ... ...

asp:MenuItem onClick event?, > ROOT > NEWSGROUP > Asp.Net Forum > general_asp. net.master_pages_themes_and_navigation_controls, ...
Menu Item onClick width - ng.asp-net-forum ... asp:menu click event not getting fired - ng.asp-net-forum ... When i click on any menu item the click event on my server side doesnot gets fired. ...
asp:menu click event not getting fired - ng.asp-net-forum ... menu control + sitemap + menuitem_click event not fired - ASP.NET ... The menu item click event is not being fired. I know it has something to do . ...
MenuItem Will Not Select - ng.asp-net-forum ... I have read the post about "MenuItemClick Event Does Not Fire" located here .... I would like the user to be able to click on a menuitem the ...
Help applying styles to menu items - ng.asp-net-forum ... Apr 13, 2007 ... For example, this code will not fire an onclick event and the style will not change for the selected menu item:












menu control menuitems

contentpageholder alignment

property in masterpage not being bound correctly to controls

problem with themes and gridview

maserter page

stopping redundancy on content pages

event selectednodechanged of the treeview

treeview in masterpage

how to set a page footer for a webpage?

hide a tree node at runtime

getting data to the master page

any code for .skin files

disabled menuitem with child items still shows hover styling

selected menu item of menu control doesn't work well for url with querystring

call property in master page from another pages

master pages, styles and ids

access a usercontrol in a content page.

subdomain rewriting

colorfull menu control

setting a colour and a font for all text on a website

"type not supported" error for <% %> codes in msater page

how to get web page theme name?

is masterpage only apply to pages? not usercontrols?

site map

firefox with ui layout..!

applicationpath in global.asax or somewhere else - how?

form not working

want to use base classes for code behing inheritance / shared logic

help needed in menu

how to append the a selected item from the sitemap

event inside masterpage and a cached content page

sitemapnodes visible by roles

multiple sitemap files

global login

form names and master pages

analyze this: object reference shortcut

masterpages and vs 2008 issue

going nutz trying to display dataset data in a treeview... help?

two sitemaps

images from masterpage cant be seen on subfolders

content page/transparent textbox error

[asp:menu] dynamicmenu - orientation horizontal

header content and footer

sharing master pages across iis applications

treeview as site navigation menu?

browser rendering problems

different menu items for authenticated and unauthenticated users

specific css stylesheet to associate with skinfile

need to expand treeview control to specific node on page load... index out of range error

everything must be centered in all browsers ?

 
Search This Site:

 
  Privacy | Contact Us
All Times Are GMT