Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DataTable dt = DatabaseHelper.Retrieve(@"
                    SELECT [Library].LocationName
                    FROM [Library]
                    
                ");

                Libraries.DataSource = dt.Rows;
                Libraries.DataBind();
            }
        }
Example #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DataTable dt = DatabaseHelper.Retrieve(@"
                    select ID, LocationName, Address, City, State, Zipcode
                    from Library
                    order by LocationName
                ");

                Libraries.DataSource = dt.Rows;
                Libraries.DataBind();
            }
        }