Binding dynamic datalist in C#
问题 I am trying to create a dynamic Data List bind with database. I can easily create this but I am not able to make the item Command of this Data List. Please help me. Here is my code below protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { categorybinding(); } } public void categorybinding() { int totalcate = (from x in ebooks.books_category select x).Count(); var ra = (from x in ebooks.books_category select x); DataList dl = new DataList(); dl.ItemTemplate = new