예제 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         ImportantLinks links = new ImportantLinks();
         links.LoadAll();
         links.Query.Top = 5;
         uiRepeaterLinks.DataSource = links.DefaultView;
         uiRepeaterLinks.DataBind();
     }
 }
예제 #2
0
 private void BindData()
 {
     ImportantLinks objData = new ImportantLinks();
     objData.LoadAll();
     uiGridViewLinks.DataSource = objData.DefaultView;
     uiGridViewLinks.DataBind();
 }