日期:2014-05-18 浏览次数:20554 次
r.click(function() { $.get("index.aspx", { title: ti}); });
protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["title"] != null) { tdClick(Request.QueryString["title"].ToString()); } } /// <summary> ///执行排序 /// </summary> /// <param name="title"></param> /// <param name="id"></param> protected object tdClick(string title) { XElement xel = XElement.Load(Server.MapPath("XMLFile.xml")); //加载xml var xels = xel.Elements("conten").OrderBy(c => c.Element("diao").Value == title); var sources = xels.Select(n => new { diao = n.Element("diao").Value, recImg = n.Element("recImg").Value, rec = n.Element("rec").Value } Repeater1.DataSource = sources; Repeater1.DataBind(); }