contents
Documentation Version
Spring '15 (API version 33.0)
Language
English
  • Preview Summer '15 (API version 34.0) 34.0
  • Spring '15 (API version 33.0) 33.0
  • Winter '15 (API version 32.0) 32.0
  • Summer '14 (API version 31.0) 31.0
  • Spring '14 (API version 30.0) 30.0
  • Winter '14 (API version 29.0) 29.0
  • English
  • Japanese

Associating a Standard Controller with a Visualforce Page

To associate a standard controller with a Visualforce page, use the standardController attribute on the <apex:page> tag and assign it the name of any Salesforce object that can be queried using the Force.com API.

For example, to associate a page with the standard controller for a custom object named MyCustomObject, use the following markup:

<apex:page standardController="MyCustomObject__c">
</apex:page>
Note

Note

When you use the standardController attribute on the <apex:page> tag, you cannot use the controller attribute at the same time.