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: 9/30/2006 9:46:06 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 29 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
Callam.Fletcher
Asp.Net User
SITEMAP: How to add a click event handler to a node?9/30/2006 9:46:06 AM

0/0

Hello!

 I have a sitemap and i want to include a "Log Out" link. All i need to do is call the FormsAuthentication.SignOut() function when the node is clicked. Is it possible to add an event handler to a sitemap node from which i can call this code?

 I have thought of two other solutions but they seem messy. The first is to add a link button to the MasterPage (just next to the sitemap menu) and add this event handler there. The second solution is to set the URL of the sitemap to point to a page that signs the user out in it's On_Load() event.

 Is there a neat way to doing this? Thanks! :) - Callam

Fredrik N
Asp.Net User
Re: SITEMAP: How to add a click event handler to a node?9/30/2006 4:23:52 PM

0/0

Do you want to use the LoginStatus control that will automatically add the Logout link and do the logout for you?

If you don't want to use the LoginStatus and have the Logout as part of the navigation controls you can add a page to the SiteMap that will navigate the user to a logout page where you simply call the SignOut method.


/Fredrik Norm?n NSQUARED2
Microsoft MVP, MCSD, MCAD, MCT

Cornerstone

My Blog, ASP.Net 2.0 etc
Callam.Fletcher
Asp.Net User
Re: SITEMAP: How to add a click event handler to a node?9/30/2006 5:50:54 PM

0/0

Hi, thanks for your reply.

No, i don't want to use a LoginStatus control. I want to handle the click event of a link that is specified in a sitemap. At the very end of the build process all the sitemap nodes become LinkButtons to be displayed on the final output... right? There must be a stage at which i can intervene and add a handler to a specific sitemap node, no? - could you help me?

 Thanks - Callam

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


Free Download:

row node's click event calls an anonymous function to ... Let's update the click event handler by using our new addEventHandler() ...
CodeProject: Working with TreeView Controls. Free source code and ... This click event handler populates an array of nodes with an array of nodes .... Once this code is executed, you may right click on the main node and add as ...
Book Meeting Room Calendars Firstly we need to add the calendar list we are going to use. .... This is because you must first double-click the Event Handlers node which will then show ...
SitePoint » JavaScript Event Delegation is Easier than You Think Jul 23, 2008 ... Instead, using event delegation, you would add only one event handler to the table element, intercept the click event and determine which ...
Create Your Own Google Earth Application | geo2web.com Mar 6, 2008 ... Next, we will nee an event handler to capture the view. ... Double Click on MouseDown to automatically add a handler (see below). ...
Books:
Learning ASP.NET 3.5 Authors: Jesse Liberty, Dan Hurwitz, Brian MacDonald, Pages: 576, Published: 2008
ASP.NET 2.0 Black Book: black book Authors: Dreamtech Software, Dreamtech Software, Charul Shukla, Anil Kumar Barnwal, Dreamtech Software India, Pages: 1167, Published: 2006
Amazon.com Mashups Authors: Francis Shanahan, Pages: 379, Published: 2006
ASP. NET V. 2. 0-the Beta Version: The Beta Version Authors: Alex Homer, Dave Sussman, Rob Howard, Pages: 620, Published: 2004
Professional ASP.NET 2.0 XML Authors: Thiru Thangarathinam, Pages: 566, Published: 2005

Web:
SITEMAP: How to add a click event handler to a node? - ASP.NET Forums SITEMAP: How to add a click event handler to a node? Last post 09-30-2006 1:50 PM by Callam.Fletcher. 2 replies. Sort Posts: ...
Wicked Code: Three Cures for Common Site Map Ailments IsNullOrEmpty(node.Text)) list.Add(node.Text); SaveTreeViewState(node. ... The DataBound event handler ensures that when you click an item in the TreeView ...
How to Add a Node to a TreeView Control in VB.net at Run Time ... Oct 27, 2008 ... This button will be used to add the node at runtime. ... Code In the click event we will add nodes to our treeview control with this code: ...
Build dynamic context menus for trees - .NET for null reference on the node (if the user right clicks, but not on a node...). Create the menu items, add click event handler, and attach ...
W3C DOM Events I ignore the difference between [object Window] and the document node .... Add an onclick event handler that executes function doSomething() to element x. ...
How to Create an Ajax Autocomplete Text Field: Part 11 / Page 2 If you recall, the




Search This Site:










need help with menu navigation control

style sheets inclusion on demand

2 child pages pulled in to a master

regarding master page

read from master of a master!!! (not 1 master but 2)

problem rendering asp:menu control on a w2k server machine using ssl.

linkbutton onclick method

change sitemap attributes in runtime and store sitemap in cache

simple master pages question

add contentholder automatically to the content page

imagebutton problem!

asp menu control not updating properly

two level menus

master page folder level

localizing sitemaps

remove parent node(s) from asp.net 2.0 treeview...???

asp.net 2.0 menu control problems

maintaining tabs with nested sitemap nodes

menu item selected does not allow item value to be stored in a cookie

how to access a master's page control from default.aspx page

theme colour

treeview xhtml transitional validation error

css files

master.page updating header

menu control running javascript problem

asp menu control question

error: object expected. what am i missing?

image not visible in vs 2008

populating and expanding many treeview with a single click

problems of asp .net 2.0 treeview control

  Privacy | Contact Us
All Times Are GMT