private void RefreshContacts() { List <Pubs._Contact> contacts = Pubs.GetContacts(ddlPubs.SelectedValue); if (contacts.Count() > 0) { GridView2.DataSource = contacts; GridView2.DataBind(); } else { GridView2.EmptyDataText = "There are no PR or Sales Contacts for the selected publisher."; GridView2.DataBind(); } }
public List <Pubs._Contact> GetContacts(string pubID) { return(Pubs.GetContacts(pubID)); }