|
-
Mar 24th, 2003, 07:57 PM
#1
Thread Starter
Lively Member
RESOLVED - Selecting TreeView node in ASP.NET
Hi,
Is it possible to raise an event in an ASP.NET form when a TreeView node is selected??
I've tried the following events - neither which seem to be raised at run-time when I select a node...
Code:
Private Sub TreeView1_SelectedIndexChange( _
ByVal sender As Object, ByVal e As Microsoft.Web.UI.WebControls.TreeViewSelectEventArgs) _
Handles TreeView1.SelectedIndexChange
mClientCL.UPAlert(e.NewNode())
End Sub
Private Sub TreeView1_Expand( _
ByVal sender As Object, ByVal e As Microsoft.Web.UI.WebControls.TreeViewClickEventArgs) _
Handles TreeView1.Expand
mClientCL.UPAlert(e.Node())
End Sub
Is it possible or do I need to do something else to get an event to fire??? Any suggestions would be appreciated.
Tim
Last edited by tgoodmannz; Mar 24th, 2003 at 08:22 PM.
-
Mar 24th, 2003, 08:13 PM
#2
Thread Starter
Lively Member
OK OK - I realised what my issue was. I'm still not used to the Server side/Client side separation in ASP.NET.
Basically I don't want to fire a server side event on a selection change, so I can wait till some other event and then read the value.
However - using the Microsoft TreeView Webcontrol, surely you should be able to fire a server side event when selecting a Node???
-
Mar 24th, 2003, 08:21 PM
#3
Thread Starter
Lively Member
Duh....
Of course .. if I set the AutoPostBack property to True .. it works!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|