Exemplo n.º 1
0
 //*******************************************************
 //
 // The Page_Load event handler on this User Control is used to
 // obtain a DataReader of contact information from the Contacts
 // table, and then databind the results to a DataGrid
 // server control.  It uses the Nairc.KPWPortal.ContactsDB()
 // data component to encapsulate all data functionality.
 //
 //*******************************************************
 protected void Page_Load(Object sender, EventArgs e)
 {
     // Obtain contact information from Contacts table
     // and bind to the DataGrid Control
     IDesktopModulesFacade facade = new DesktopModulesFacade();
     myDataGrid.DataSource = facade.Contacts(ModuleId);
     myDataGrid.DataBind();
 }
 public void ContactsTest()
 {
     //IList<PortalContact> Contacts(int moduleId)
     DesktopModulesFacade facade = new DesktopModulesFacade();
     facade.Contacts(0);
 }