protected void DataView_Load(object sender, System.EventArgs e)
 {
     DataView.DataSource = GetDataSource();
     #region #templateAssigning
     DataView.ItemTemplate = new MyDataViewTemplate();
     #endregion #templateAssigning
     DataView.DataBind();
 }
Esempio n. 2
0
 private void BindDataView()
 {
     if (DocumentProcessor.Document != null)
     {
         List <PdfPageItem> data = new List <PdfPageItem>();
         for (int pageNumber = 1; pageNumber <= DocumentProcessor.Document.Pages.Count; pageNumber++)
         {
             data.Add(new PdfPageItem()
             {
                 PageNumber = pageNumber
             });
         }
         DataView.DataSource = data;
         DataView.DataBind();
     }
 }
Esempio n. 3
0
 protected void DataView_Load(object sender, System.EventArgs e)
 {
     DataView.DataSource   = GetDataSource();
     DataView.ItemTemplate = new MyDataViewTemplate();
     DataView.DataBind();
 }