[c#]代码库
前台
<x:Tree ID="ProductTree" EnableArrows="true" OnNodeCommand="ProductTree_NodeCommand"
EnableLines="false" ShowHeader="false" runat="server" >
</x:Tree>
后台
#region 树骸?点?击÷事?件t捕?捉?处鋦理え?
/// <summary>
/// 说明:树点击事件捕捉处理
/// 作者:yxx
/// 时间:2013-12-11
/// </summary>
///
protected void ProductTree_NodeCommand(object sender, FineUI.TreeCommandEventArgs e)
{
//labResult.Text = "你点击了树节点:" + e.Node.Text + e.NodeID;
ProductName = e.Node.Text;
ProductID = int.Parse(e.NodeID);
ProductBtnAdd.OnClientClick = Main_ProductAdd.GetShowReference("MainProductAdd.aspx?ID=" + e.NodeID + "&type=1") + "return false;";
ProductBtnEdit.OnClientClick = Main_ProductEdit.GetShowReference("MainProductAdd.aspx?ID=" + e.NodeID + "&type=0") + "return false;";
if (ProductID != 1)
{
HandledTable(ProductID);
}
else
{
YZGL.DataSource = null;
YZGL.DataBind();
}
}
#endregion