61,651
社区成员




<asp:Repeater ID="RepMenus" runat="server">
<ItemTemplate>
<li><span>
<asp:HyperLink ID="HyperLink1" runat="server" MenusID='<%#Eval("id") %>'><%#Eval("Name") %></asp:HyperLink>
</span></li>
</ItemTemplate>
</asp:Repeater>
public void Content(string Nid)
{
this.repNewContents.DataSource = null;
repNewContents.DataSource = WEB_Business.B_News.getNewsData(Nid);
repNewContents.DataBind();
}
protected void RepMenus_ItemCommand(object source, RepeaterCommandEventArgs e)
{
Content(e.CommandArgument.ToString());
}
$(function () {
$(".sideNav li").click(function () {
$(this).find("a").addClass("sideNavOn");
$(this).siblings().find("a").removeClass();
});
});