using HOST; using System.Data; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if(!IsPostBack) { FillGrid(); } } void FillGrid() { MyClass MObj = new MyClass(); DataTable Dtl = new DataTable(); Dtl = MObj.GetCustomers(); GridView1.DataSource = Dtl; GridView1.DataBind(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)