---
schema_version: "1"
id: 9a10c10a766a93b3c9cee6c92c13b37ba3fb211ccbee02526bafa77a32ae31e3
title: Associating a Standard Controller with a Visualforce Page
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/salesforce-pages-developers-guide/guides/pages/controller-std/pages-controller-std-associate.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-pages-developers-guide/guide/pages-controller-std-associate.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 79614ec775cb8d71dc6d3411f6b85af0396d3ea4e484e333f974b22d3c2778be
products:
  - Visualforce Developer Guide
  - Platform Developer Content
---

# 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 Lightning Platform API.

For example, to associate a page with the standard controller for a custom object named MyCustomObject, use the following markup:

<!-- otherprops: apex_page -->
```markup
<apex:page standardController="MyCustomObject__c">
</apex:page>
```

**note:** When you use the `standardController` attribute on the `<apex:page>` tag, you cannot use the `controller` attribute at the same time.

