+ 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) {
   }

}