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
lingannalinganna 

what is difference between standard and custom controller in salesforce

hi

 

what is difference between standard and custom controller in salesforce.I am getting confusation.

thanks.

 

Best Answer chosen by Admin (Salesforce Developers) 
carlocarlo

The standard controller is auto geenrated by SF for all objects.

 

Custom controllers are written by you and do what your code tells them to do.

All Answers

carlocarlo

The standard controller is auto geenrated by SF for all objects.

 

Custom controllers are written by you and do what your code tells them to do.

This was selected as the best answer
raju chittariraju chittari

StandardController: for that we can implement Standard functionalities (save, quickSave, edit, delete,cancel), and passing recordID through Addressbar we can display the Record On VF-Page.

 

CustomController: it means we are going to implement our Controller methods in a Class using {get;set;} methods.

Naresh Kr OjhaNaresh Kr Ojha
Standard Controllers
Contains the same functionality and logic that are used for standardSalesforce pages. Can be used with standard objects and custom objects.

Custom Controllers
Need finer control for how information is accessed for your page, you can write a custom controller or a controller extension using Apex. Only one Apex class is used.