function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Heena.Heena. 

Illegal assignment from List<Contact> to List<contact> at line 5 column 6 == plz help me out of it

public class Tpactivities {
  public list<contact> cons{set;get;}
  
    public Tpactivities (){
     cons = [select id, firstname, lastname from contact];
    }

    public PageReference getfeedback() {
     cons = [select id, firstname, lastname from contact];
        return null;
    }

}
Steven NsubugaSteven Nsubuga
Check if you have any class in your org that you named Contact. Rename that class to something else
Heena.Heena.
i didn't understood what you are trying to say.

my requirement is = i have to create button(send feedback) in v.f page 
whenever my client click the this button selected prospects should recive an email with an helping link (Like = www.Google.com)
v.f  emailtemplate and custom label with helping link must be included in v.f emailtemplate  and that email template have to be defined in our v.f page which include button.

plz give an APEX CLASS and V.F page program
Raj VakatiRaj Vakati
Yout code is correct 

The issue is If you have any apex class with the name "Contact" that is conflict the salesforce object name :Contact 
Go to all the apex class from the setto and see is there an apex class name "Contact" if there delete or rename and save it ..
public class Tpactivities {
  public list<Contact> cons{set;get;}
  
    public Tpactivities (){
     cons = [select id, firstname, lastname from Contact];
    }

    public PageReference getfeedback() {
     cons = [select id, firstname, lastname from Contact];
        return null;
    }

}

 
Heena.Heena.
thank you