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

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 :-
Piyush Kumar 58Piyush Kumar 58
Go to this blog define more about your requirment :-