p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 17th, 2006, 05:03 PM
Authorized User
Points: 77, Level: 1
Points: 77, Level: 1 Points: 77, Level: 1 Points: 77, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2004
Location: , , .
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?






Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

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 02:57 AM
TreeView and SiteMap Node Order robzyc ASP.NET 1.0 and 1.1 Basics 0 May 19th, 2008 05:27 AM
How to select a node or text from treeview MacDevv C# 2005 3 September 5th, 2006 06:23 AM
How to get node in treeview ncminhtung BOOK: Professional VB.NET, 2nd Edition or 2003 1 December 7th, 2005 10:06 AM
Add node in ie treeview acko ASP.NET 1.x and 2.0 Application Design 0 January 28th, 2004 09:29 AM



All times are GMT -4. The time now is 07:48 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc