visualforce page

public class ContactListController {

    private String sortOrder = 'LastName';

    public List getContacts(){

        List results = Database.query('SELECT Id, FirstName,Title,LastName,Email FROM Contact ORDER BY LastName LIMIT 10');

        return results;

    }

}

   

       

           

           

           

           

       

   

   

你可能感兴趣的:(visualforce page)