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
Lavanya Gottumukkala 8Lavanya Gottumukkala 8 

When to use standard controller and when to use custom controller in a vf page?

Hi All,

I need some clarification on when to go for standardcontroller and when to go for custom controller exactly in a vf page.I have a lot of confusion on this.Before designing a vf page how can we know that which controller to use?Can anyone explain me with examples?

Thanks in advance
sandeep sankhlasandeep sankhla
http://salesforce.stackexchange.com/questions/4041/difference-between-controller-and-extensions

Hope above link will help ypou get all teh detaisl reagrding these.
Piyush Kumar 58Piyush Kumar 58
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. For more about custom controller go to this link :- https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_def.htm
 
Piyush Kumar 58Piyush Kumar 58
Go to this blog define more about your requirment :- http://blog.biswajeetsamal.com/post/2014/08/01/difference-between-custom-controller-and-extension/