protected void Page_Load(object sender, EventArgs e) { DBLayer db = new DBLayer(); DataSet ds = new DataSet(); ds = db.GetAllOutstanding(); uiDataListOutStanding.DataSource = ds; uiDataListOutStanding.DataBind(); }
private void BindData() { DBLayer db = new DBLayer(); DataSet ds = new DataSet(); ds = db.GetAllOutstanding(); uiGridViewOutstanding.DataSource = ds; uiGridViewOutstanding.DataBind(); }