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
nareshnaresh 

i need to use both the standardcontroller functionalty and custom control functionality on a same visual force page.

i need to use both the standardcontroller functionalty and custom control functionality on a same visual force page.how can i achieve this.
RamuRamu (Salesforce Developers) 
It is not possible to refer both Standard and Custom controller on the same VF page. You can go with Standard controller + Extensions.
BalajiRanganathanBalajiRanganathan
it is simple, the custom controller can be used as both custom controller and controller extension. so make the custom controller as controller extension for your case. it should have both default constructor (to use as custom controller) as well as the constructor format for controller extn,

so your controller class would be

public class CustomController {

  public CustomController () {
  }
 
  public CustomController (ApexPages.StandardController stdController) {
   }

}