Ejemplo n.º 1
0
 /// <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();
     }
 }
Ejemplo n.º 2
0
 public void MyBind()
 {
     B_Author bauthor=new B_Author();
     GridView1.DataSource = bauthor.GetSourceAll();// GetAuthorPage(0, 0, 10);
     GridView1.DataBind();
 }