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

You are currently viewing the ASP.NET 2.0 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 February 17th, 2006, 05:03 PM
Authorized User
 
Join Date: Oct 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default asp.net 2.0 treeview select node does not respond

I have a base.aspx with a frameset
<frameset cols="30%, 75%">
<frame name="Menu" src="TView.aspx"/>
<frame name="Content" src="right.aspx"/>
</frameset>
I have a masterpageL.master that has a content place holder for treeview
<asp:contentplaceholder id="TView" runat="server" >
Treeview</asp:contentplaceholder></td>

The TView.aspx corresponds to the above masterpageL.master and defines the TreeView

<asp:Content ID="Content2" ContentPlaceHolderID="TView" Runat="Server">
<asp:TreeView id="TreeView1" runat="server" ImageSet="Simple" OnSelectedNodeChanged="TreeView1_SelectedNodeChang ed" >
<Nodes>

….

</Nodes>
</asp:TreeView>

TView.aspx.cs Code behind file defines the event handler:
protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e)
{
Session["tvNode"] = TreeView1.SelectedNode.Text;
}
The TreeView displays properly. When I select a node it never hits the above TreeView1_SelectedNodeChanged event handler .

Can someone help?











Similar Threads
Thread Thread Starter Forum Replies Last Post
Programmatically select a treeview node and expand simsen ASP.NET 2.0 Professional 0 June 23rd, 2008 01:57 AM
TreeView and SiteMap Node Order robzyc ASP.NET 1.0 and 1.1 Basics 0 May 19th, 2008 04:27 AM
How to select a node or text from treeview MacDevv C# 2005 3 September 5th, 2006 05:23 AM
Add node in ie treeview acko ASP.NET 1.x and 2.0 Application Design 0 January 28th, 2004 09:29 AM





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