Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            ClsDb     db = new ClsDb();
            DataTable tb;

            db.Connect("localhost", "master", "sa", "", -1);
            tb = db.ExecuteSql("select * from article_title", -1);

            db.Disconnect();

            this.rptListItems.DataSource = tb;
            this.rptListItems.DataBind();
        }