日期:2014-05-17 浏览次数:20970 次
protected void DataList2_ItemCommand(object source, DataListCommandEventArgs e)
{
int cs_id = Convert.ToInt32(e.CommandArgument);
if (e.CommandName == "go")
{
Panel1.Visible = true;
List<Comgezi_ShuxingInfo> list1 = new List<Comgezi_ShuxingInfo>();
List<Comgezi_ShuxingInfo> list2 = Comgezi_ShuxingBiz.SelectListByCsId(cs_id);
foreach (Comgezi_ShuxingInfo com in list2)
{
Comgezi_ShuxingInfo shuxing = Comgezi_ShuxingBiz.SelectByCsId(com.Parent_id);
list1.Add(shuxing);
}
DataList3.DataSource = list1;
DataList3.DataBind();
for (int i = 0; i < DataList3.Items.Count; i++)
{
LinkButton lbtn = (LinkButton)DataList3.Items[i].FindControl("LinkButton2");
Comgezi_ShuxingInfo name = Comgezi_ShuxingBiz.SelectByCsId(cs_id);
lbtn.Text = name.Cs_name;
}
}
}
var h='';
var sels = $('a.selected');
for(var i=0;i<sels.length;i++)
{
h+=