CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 8/31/2007 2:51:44 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 61 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
vickyc
Asp.Net User
How to apply SelectedNodeStyle in Treeview8/31/2007 2:51:44 PM

0/0

Hello,  I have a user control that uses the Web.sitemap as a datasource for the Treeview control, each node has a URL value since this is for navigation.   I want to style the Current Node to look DIFFERENT,  but it seems that SELECTEDNODESTYLE is ignored for items with a NavigateURL.  How do I programmatically alter the style of the current node?

Amanda Wang - M
Asp.Net User
Re: How to apply SelectedNodeStyle in Treeview9/4/2007 7:56:12 AM

0/0

Hi,

As your description, your trrview's currentnode's selectednodestyle cannot work with the navigateURL.Is it right?

There is a litte difference between Navigation and selection. When you select a node, it is a function of posting back to the same page. But when you click on the node with a NavigationURL, the page will redirect to a new page.

 As your above said,  you bind the treeview to a SiteMapDataSource,  you can try to wirte some special code which can autoselect the current node.  Alternatively, if you write a similar piece of code in a Load event for your TreeView, you can cause a node to become selected and your style to appear.

 

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
vickyc
Asp.Net User
Re: How to apply SelectedNodeStyle in Treeview9/4/2007 9:30:07 PM

0/0

thanks Amanda...  you are right,  I understand the difference now between 'selected' and Navigation.  I am new to .Net2,  I want the Treeview node of the page I am currently ON to look different than the rest of the nodes.   What do I add to the Load event for the Treeview to cause the node to become selected? and my style to appear?

 Vicky

vickyc
Asp.Net User
Re: How to apply SelectedNodeStyle in Treeview9/4/2007 11:52:29 PM

0/0

I have resolved this by setting the SelectedNodeStyle to a css Class that also has hyperlink styles defined and now it applies it.  I was trying to set the SelectNodeStyle using the properties but finding that they were ignored.  This is a navigateURL so I guess it expects a style that has these defined.....

 

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


Free Download:

Books:
Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional Authors: Matthew MacDonald, Pages: 954, Published: 2007
Beginning ASP.NET 3.5 in VB 9.0: From Novice to Professional Authors: Matthew MacDonald, Pages: 1149, Published: 2007
Pro ASP.NET 2.0 in VB 2005: From Professional to Expert Authors: Laurence Moroney, Matthew MacDonald, Pages: 1253, Published: 2006
Pro ASP.NET 2.0 in C# 2005: Create Next-generation Web Applications with the Latest Version of Microsoft's Revolutionary Technology Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1426, Published: 2006
Beginning ASP.NET 2.0 in C# 2005: From Novice to Professional Authors: Matthew MacDonald, Pages: 1148, Published: 2006
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Visual C# 2005: A Developer's Notebook Authors: Jesse Liberty, Pages: 221, 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

Web:
How to apply SelectedNodeStyle in Treeview - ASP.NET Forums I want to style the Current Node to look DIFFERENT, but it seems that SELECTEDNODESTYLE is ignored for items with a NavigateURL. ...
TreeView.SelectedNodeStyle Property (System.Web.UI.WebControls) .NET Framework Class Library. TreeView.SelectedNodeStyle Property ... Dim instance As TreeView Dim value As TreeNodeStyle value = instance. SelectedNodeStyle ...
Treeview SelectedNodeStyle Problem Treeview SelectedNodeStyle Problem. microsoft.public.dotnet.framework.aspnet. webcontrols. Author. 3 Jul 2006 6:22 PM ...
ASP.NET Treeview selectedNodeStyle - .NET ASP ASP.NET Treeview selectedNodeStyle. Get answers to your questions in our .NET ASP forum.
ASP.NET Treeview selectedNodeStyle Talk about ASP.NET Treeview selectedNodeStyle. ... NET Treeview selectedNodeStyle. Hi, I use the selectednodestyle with a white background ...
ASP.NET 2.0 Treeview SelectedNodeStyle Problem I use treeview inside a frame so when a tree node is ... selectednodeStyle with BackColor=
ASP.NET 2.0 TreeView without Postback? Solved! | Bulahema Workshop NET 2.0 TreeView control. This control is meant to show a tree of items and each item .... And of course it also doesn't apply the SelectedNodeStyle either. ...
ASP.NET Treeview selectedNodeStyle NET Treeview selectedNodeStyle. microsoft.public.dotnet.framework.aspnet. Author . 14 Apr 2006 3:01 PM. [email protected] ...
TreeView.SelectedNodeStyle Property Use the SelectedNodeStyle property to specify the appearance of the selected node in a TreeView control. Common style attributes that can be set include ...
ASP.NET 2.0 Treeview SelectedNodeStyle Problem Talk about ASP.NET 2.0 Treeview SelectedNodeStyle Problem.




Search This Site:










vsts 2005 branching issues

help me about portal store 6.5 dnn 3.0 !!!

using profile to allow additional security

error message

what is up with vs2005 express

forms authentication

i cant get the web controls to display correctly

restricting admins from viewing skins

how to change wording in password recovery email

positioning page on postback...?

registration system

suggestion: discard

date formatting

3.0.7 - unhandled error loading module - help

file upload...strange problem

how to change data from content1 page to content2

please help datareader not instantiating in this function. where am i going wrong??

are there issues with this forum i used to be unmoderated, then i want now im moderated again

build a new development box and having a problem opening dnn 2.1.2 solution on new box

relative font sizes

how to get rs (from vb6) to .net (vb.net)

master pages and getting the sitemap.curentnode

multiple logins, same application

breadcrumbs.

restart createuserwizard

menu not showing over master page's contentplaceholder

a robust image gallery for asp.net - not !!

i need editable dropdown list in vb.net is it possible??

login control and validation

bulletins and newsletters

 
All Times Are GMT