日期:2014-05-17 浏览次数:20451 次
ArrayList a = new ArrayList();
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
for (int i = 0; i < this.TvMenu.CheckedNodes.Count; i++)
{
if (TvMenu.CheckedNodes[i].ChildNodes.Count == 0) //只添加最后一层子节点
a.Add(TvMenu.CheckedNodes[i].Value);
}
Session["TreeViewValues"] = a;
Session["state"] = "leftsearch";
// Response.Redirect("/OMMS/contractManage.aspx");
}
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
else if (Convert.ToString(Session["state"]) == "leftsearch")
{
bindgdv1left();
}
}