Ejemplo n.º 1
0
    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();
        }
    }
Ejemplo n.º 2
0
 public List <Pubs._Contact> GetContacts(string pubID)
 {
     return(Pubs.GetContacts(pubID));
 }