473,511 Members | 14,975 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

handling tree view web control events

Hi everybody
Can any one give an example for handling a tree view
web control event, inside an asp.net application?

I am able to build a tree view using this control on an asp.net web form (on
page load) but can not handle its events later on..

html tag includes the reference to the event handler and looks like this:
<iewc:treeview1 id="treeview1" runat="server" Expand = "treeview1_expand">

then the aspx.vb file includes the treeview1_expand() code:
Public Sub TreeView1_Expand(ByVal sender As Object, ByVal e As
Microsoft.Web.UI.WebControls.TreeViewClickEventArg s) Handles
TreeView1.Expand

this file also includes a withevents declaration for treeview1.

Thanks for your attention

Rea


Nov 18 '05 #1
1 1120
It won't respond to events straight away if autopostback is false (default).

"Rea Peleg" <re***@afek.co.il> wrote in message
news:ew*************@TK2MSFTNGP12.phx.gbl...
Hi everybody
Can any one give an example for handling a tree view
web control event, inside an asp.net application?

I am able to build a tree view using this control on an asp.net web form (on page load) but can not handle its events later on..

html tag includes the reference to the event handler and looks like this:
<iewc:treeview1 id="treeview1" runat="server" Expand = "treeview1_expand">

then the aspx.vb file includes the treeview1_expand() code:
Public Sub TreeView1_Expand(ByVal sender As Object, ByVal e As
Microsoft.Web.UI.WebControls.TreeViewClickEventArg s) Handles
TreeView1.Expand

this file also includes a withevents declaration for treeview1.

Thanks for your attention

Rea

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1438
by: Rea Peleg | last post by:
Hi everybody Can any one give an example for handling a tree view web control event, inside an asp.net application? I am able to build a tree view using this control on an asp.net web form (on...
2
2085
by: Eric Newton | last post by:
VB's more declarative nature of handling events is golden. I'm hoping C# will acquire this type of deal, in addition to the anonymous delegates. could do same as vb (actually would be easier to...
8
2307
by: Tim Geiges | last post by:
Since I am being challenged with learning c# I figured I could pass some of the pain on to you guys :-) I have another question(this one is important for me to fix before I can get my app to Beta)...
10
2503
by: dwok | last post by:
Does anyone know of a good article that discusses creating a "Tree View" control in ASP.NET? Or perhaps a Tree View Control that comes with source code? I have come across a lot of tree controls...
12
2765
by: scsharma | last post by:
Hi, I am working on creating a webapplication and my design calls for creating main webform which will have menu bar on left hand side and a IFrame which will contain all the forms that are shown...
5
11797
by: Pavan | last post by:
My goal is to accomplish the tooltip functionality for all the neodes in a tree view and i have the following three Events in my C# application. Name of my TreeView Control (AITreeView) 1)...
2
1518
by: weboweb | last post by:
Hail the experts!!! I'm creating a web user control which displays a hierarchical tree of items from an xml string passed to the control (from the host page) through an exposed property. This...
0
1206
by: richard.haber | last post by:
I have a situation where there are two controls on the master page: a tree with a menu structure (whose content and structure is customizable by each user) and a menu control which displays the...
5
3575
ram09
by: ram09 | last post by:
I had made a tree view of folders in a rad tree view... I have added a text box with a button in one of my nodes, using this code node.controls.add(txtbox) node.controls.add(btn) where, txtbox...
0
7153
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7371
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7093
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7517
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1583
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.