Hello,
I've looked in the forums, but I could not find the answer for my particular problem.
I am in the process of creating two TreeViews on my page. The first one is a directory listing of ASPX pages within my website which I've gotten working already. When the user clicks on the name of an ASPX page a second tree view will be populated containing the IDs of the controls contained within that page. I put those IDs in a collection (ArrayList). The second treeview's datasource is then set to the collection I've created which then gets displayed on the screen. Up to this point I've gotten things to work.
Here's my issue: I'm trying to dynamically create context menus for each node within the second treeview depending on what kind of control is selected (i.e. button, textbox, listbox, etc...).
I would really appreciate it if anyone can show me an example of how this can be done.
I've looked in the forums, but I could not find the answer for my particular problem.
I am in the process of creating two TreeViews on my page. The first one is a directory listing of ASPX pages within my website which I've gotten working already. When the user clicks on the name of an ASPX page a second tree view will be populated containing the IDs of the controls contained within that page. I put those IDs in a collection (ArrayList). The second treeview's datasource is then set to the collection I've created which then gets displayed on the screen. Up to this point I've gotten things to work.
Here's my issue: I'm trying to dynamically create context menus for each node within the second treeview depending on what kind of control is selected (i.e. button, textbox, listbox, etc...).
I would really appreciate it if anyone can show me an example of how this can be done.