using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

public partial class Ex4_8 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
      SqlConnection conn = new SqlConnection("server=(local);database=sqldb;user=sa;pwd=123");
      string sql0 = "select * from users order by uid asc";
      SqlDataAdapter sda = new SqlDataAdapter(sql0, conn);
      DataSet ds = new DataSet();
      sda.Fill(ds);
      gdvsql.DataSource = ds;
      gdvsql.DataBind();
    }
}
