protected void DataView_Load(object sender, System.EventArgs e) { DataView.DataSource = GetDataSource(); #region #templateAssigning DataView.ItemTemplate = new MyDataViewTemplate(); #endregion #templateAssigning DataView.DataBind(); }
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(); } }
protected void DataView_Load(object sender, System.EventArgs e) { DataView.DataSource = GetDataSource(); DataView.ItemTemplate = new MyDataViewTemplate(); DataView.DataBind(); }