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(); } }
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(); } }