예제 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        DataClassesDataContext db = new DataClassesDataContext();

        System.Data.Linq.Table <JB_gysxx> table = db.GetTable <JB_gysxx>();
        GridView1.DataSource = table;
        GridView1.DataBind();
    }
예제 #2
0
    protected void Button7_Click(object sender, EventArgs e)
    {
        //
        DataClassesDataContext db = new DataClassesDataContext();

        System.Data.Linq.Table <JB_khxx> table = db.GetTable <JB_khxx>();
        GridView1.DataSource = table;
        GridView1.DataBind();
    }