DropDownList, DataGrid and LINQ.

Sử dụng .NET 3.5 (Source code)


Trước hết add 1 Class LINQ vào project.


Kéo thả 2 table vào Class này như hình.


Đây là file giao diện.



Hàm PageLoad() và OnInit() Trong đó có function BindData()


Khi chạy sẽ như hình.

Comments

Popular posts from this blog

What's ViewState? How does use?

Edit inline with Repeater ASP.NET (Thêm sửa xóa trên grid với Repeater))