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: NewsGroup Date Entered: 5/7/2006 8:16:13 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 0 Views: 56 Favorited: 0 Favorite
1 Items, 1 Pages 1 |< << Go >> >|
nisarkhan
Asp.Net User
how to find current node ?5/7/2006 8:16:13 PM

0

i'm trying to find which node is the current node, and i have 5 root node and if the user click on any of the node, i want to disable the selected node and this is something i want put on master.page page_load event

string pageName = Path.GetFileName(Page.Request.FilePath); //getting the page name

foreach (TreeNode node in TreeView2.Nodes)
{
string _NavigateURL, _pageName;
_NavigateURL = node.NavigateUrl.ToString();
_pageName =
Path.GetFileName(_NavigateURL);

if (_pageName == clsConstant.pageInfo)
{
     TreeView2.Nodes[1].SelectAction =
TreeNodeSelectAction.None;
   
break;
}

note: i do not want to hard code the Node[1] <<<<<<<<----

Node[0]
node[1]
node[2]

 

is there a way to find in which node i'm in ?

<asp:TreeView ID="TreeView2" runat="server" Width="179px">

<Nodes>

<asp:TreeNode NavigateUrl="~/LandingPage.aspx" Text="Landing Page" Value="Landing Page"></asp:TreeNode>

<asp:TreeNode NavigateUrl="~/VisitBasicInfo.aspx" Text="Visit Basic Information" Value="Visit Basic Information"></asp:TreeNode>

<asp:TreeNode NavigateUrl="~/VisitFacilitiesInfo.aspx" Text="Visit Facilities Information" Value="Visit Facilities Information"></asp:TreeNode>

<asp:TreeNode NavigateUrl="~/VisitorsAttending.aspx" Text="Visitors Attending" Value="Visitors Attending"></asp:TreeNode>

<asp:TreeNode NavigateUrl="~/VisitHistory.aspx" Text="History" Value="History"></asp:TreeNode>

</Nodes>

<SelectedNodeStyle BackColor="#CCC" />

</asp:TreeView>

 
Its all about coding!
1 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Advances in artificial intelligence: 20th Conference of the Canadian Society for Computational Studies of Intelligence, Canadian AI 2007, Montreal, Canada, May 28-30, 2007 : proceedings Authors: Canadian Society for Computational Studies of Intelligence. Conference, Ziad Kobti, Dan Wu, SpringerLink (Online service), Pages: 552, Published: 2007
Computer models of mind: computational approaches in theoretical psychology Authors: Margaret A. Boden, Pages: 289, Published: 1988
Advanced Topics in Database Research Authors: Keng Siau, Pages: 460, Published: 2006
35th Annual Symposium on Foundations of Computer Science: November 20-22, 1994 Santa Fe, New Mexico : Proceedings Authors: Shafi Goldwasser, IEEE Computer Society. Technical Committee on Mathematical Foundations of Computing, Pages: 837, Published: 1994

Web:
how get current node's nid? | drupal.org You can use the more versatile function currentnode() to return more important information about that node, such as currentnode()->title or ...
Current-node() XSLT current node, current-node() ... xsl:apply-templates selects a set of nodes which becomes the "current node list". The XSLT processor looks at each ...
XSLT current() Function The current() function returns a node-set that contains only the current node. Usually the current node and the context node are the same. ...
SiteMapProvider.CurrentNode Property (System.Web) Implement the CurrentNode property. Public Overrides ReadOnly Property CurrentNode() As SiteMapNode Get Dim currentUrl As String = FindCurrentUrl() ' Find ...
Get current node: msg#00096 windows.devel.dotnet.umbraco msg:00096: Get current node - windows.devel.dotnet.umbraco.

Sitemap error: Could not find the sitemap node with URL - ng.asp ... Url only tells me the URL of the current node. What I'm asking is: how can I ... . could not find a part of the path "d:\". ...
How to search for a node in TreeNodeCollection - ng.asp-net-forum ... Oh, it was a mistake the Find Method only works on the current node child nodes. So i have really loop through all . ...
SiteMap.CurrentNode == null - always! - ng.asp-net-forum ... ... and within it I want to check for the current node like: SiteMap. ... chances are it can't find the appropriate node in your Sitemap. ...
Expand node in 'Browse for folder' dialog - borland.public.delphi ... Select node clientside after expand if (sInfoType == "FOLDER"){. //Expand current node. var tree= $find( DocsLibClientID + "_RadTreeView1") ...
FindControl with Master, User Control, Datalist, Footer - ng.asp ... Hide root node with XMLDataSource and Menu - ng.asp-net-forum ... user control, datalist, footer ยท how to find current node ? ...

Videos:
Circuit Analysis - Kirchoff's Voltage Law (KVL), Kirchoff's ... http://www.FreedomUniversity,TV. The series of videos describes how to combine element and connection equations to find the voltage and current ...
Vox Over The Top Boost www.ProGuitarShop.com-The infamous Vox Top Boost in a pedal! Introducing the Over the Top Boost Cooltron pedal from Vox Amplification. Imagine ...
LS-DYNA Finite Element Simulation of the Bowling Strike In the current work simulation of drop-down test of bowling ball to the composite lane was performed. The composite lane consists of supporting ...
Circuit Analysis - Kirchoff's Voltage Law (KVL), Kirchoff's ... http://www.FreedomUniversity,TV. The series of videos describes how to combine element and connection equations to find the voltage and current ...
LS-DYNA Finite Element Simulation of the Bowling Strike. Part 2 In the current work simulation of drop-down test of bowling ball to the composite lane was performed. The composite lane consists of supporting ...












how to avoid reloading of navigation menu every time

problem of tree control when used with model dialog window

treeview in master.page and content.pages

referencing a content page from the master

securitytrimming and sitemappath

how can i use image in menu control?

treeview - preserve extended nodes between pages

adding a simple menu by linking it to an access database

dynamically change skin of user control

dynamic breadcrumbs

gridview with contentpage problem when updating

how do you control the menu control?

asp.net master page javascript

accesskey for menuitem?

how can i trick the sitemappath?

logincontrol contents coming in reverse order in master page

masterpages - global - viewing design mode

different colours in navigation menu

how to create menu& submenus in webform using vb.net

treeview postback + populatenode

menu item not selecting

setting background color of .selecteditem.parent when a dynamic menuitem is selected?

master page with two menus, content place holder, sitemap and dynamic controls

masterpage problem.image in masterpage not shows in childpages

nested master pages and htmllink

event selectednodechanged of the treeview

it work on regular webpage but not webpage with masterpage...

hide "home" link in the menu

submenu hoverstyle

treeview right click problem

 
Search This Site:

 
  Privacy | Contact Us
All Times Are GMT