Beispiel #1
0
    protected void tvwAddress_SelectedNodeChanged(object sender, EventArgs e)
    {
        if (tvwAddress.SelectedNode.ChildNodes.Count == 0)
        {
            AddressDetails details = new AddressDetails();

            string City           = tvwAddress.SelectedNode.Text;
            string AddressDetails = details.getAddress(City);

            lblAddress.Text = AddressDetails;
        }
        else
        {
            tvwAddress.SelectedNode.Expand();
            lblAddress.Text = "";
        }
    }