public void MyBind() { B_Author bauthor = new B_Author(); GridView1.DataSource = bauthor.GetSourceAll();// GetAuthorPage(0, 0, 10); GridView1.DataBind(); }
public void MyBind(string key = "") { B_Author bauthor = new B_Author(); if (string.IsNullOrEmpty(key)) { EGV.DataSource = bauthor.GetSourceAll(); } else { EGV.DataSource = bauthor.GetAuthorByName(key); } EGV.DataBind(); }
/// <summary> /// 作者绑定 /// </summary> /// <param name="flag"></param> public void InitPage(string flag) { if ("author" == flag) { B_Author bauthor = new B_Author(); DataTable dt = bauthor.GetSourceAll();//GetSourceAll() RepFiles.DataSource = dt; RepFiles.DataBind(); } else if ("source" == flag) { MyBind(); } else { BindKeyword(); } }