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
PASHPASH 

How will you display account name using VF

Hello All,

   I want to know how to display an account name in visual force page?
Confused between standard controller and custom controller.
Thanks in advance.
Ramu_SFDCRamu_SFDC
Hi,

To display Account Name on VF Page you may use the standard controller. Use the below expression on VF page where you want to display the Account name {!account.name}. Please refer to the below link for some sample VF Markup's that might help you on this http://www.salesforce.com/us/developer/docs/pages/Content/pages_quick_start_display_field_values.htm  

Please review the below articles for more information on Standard Controller and Custom Controller
Standard Controllers (http://www.salesforce.com/us/developer/docs/pages/Content/pages_controller_std.htm)
Custom Controllers (http://www.salesforce.com/us/developer/docs/pages/Content/pages_controller_def.htm
PASHPASH
Hi Ramu, Thanks for your reply. I had tried this. But it does not display the account name, as expected. That is what drove me to post a query in this forum.