public void getdata() { // Lấy dữ liệu hiển thị lên DataGridview webMytourEntities db = new webMytourEntities(); List <Tour> data = db.Tour.ToList <Tour>(); gridviewTour.DataSource = data; //Render gridviewTour.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { webMytourEntities mytourEntities = new webMytourEntities(); Tour t = new Tour(); }