Hello experts,
I'm trying to create a treeview that depends on the node the end user clicks, it either launch another exe file (e.g. notepad.exe, from client side) or sending the node info back to the server (to be handled on the server side). How can I achieve this? Here's what I have tried so far:
default.aspx
...
<%@ Register src="testctrl.ascx" tagname="testctrl" tagprefix="uc2" %>
...
<html>
...
<body>
<form id="form1" runat="server">
<table style="width: 100%;">
<tr>
<td>
<uc1:myctrl ID="myctrl1" runat="server" />
</td>
<td>
<uc2:testctrl ID="testctrl1" runat="server" />
</td>
</tr>
</table>
</form>
</body>
</html>
testctrl.ascx
...
<asp:TreeView ID="tvwDisplay" runat="server">
<Nodes>
<asp:TreeNode Value="Parent1" Expanded="True" Text="Display A">
<asp:TreeNode Value="Child1A" Text="Display A - 1" />
<asp:TreeNode Value="Child1B" Text="Display A - 2" />
</asp:TreeNode>
<asp:TreeNode Value="Parent2" Text="Display B">
</asp:TreeNode>
<asp:TreeNode Value="Parent3" Expanded="True" Text="Display C">
<asp:TreeNode Value="Child3A" Text="Display C - 1">
</asp:TreeNode>
</asp:TreeNode>
</Nodes>
</asp:TreeView>
so from the example above, if I click Display A-1, or A-2, i want it to open an exe file with A-1 or A-2 as an argument (i.e. open notepad with the text A-1 or A-2). If I click on Display B or Display C-1, i want to send the info I click back to the server.
Thanks in advance for you help!