I have a treeview dynamically populated from database based on the value in the dropdown. I am trying to achieve this by firing the populatenode on selected event changed event. However "Unable to cast object of type 'System.EventArgs' to type 'System.Web.UI.WebControls.TreeNode EventArgs". All I am trying to do is to obtain the courseID from dropdown.Selectedvalue, convert it into an integer and display only the nodes associated with that particular value. Please help!
Here's my code:
Aspx page code
<form id="form1" runat="server"> <div> <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource1" DataTextField="Coursename" DataValueField="Coursename" style="width: 77px" OnSelectedIndexChanged="PopulateNode" AutoPostBack="True" Appen ...

Go to the complete details ...