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

Redirect to Tab selection


       This is simple question.

When I hit one button in my VF page I have to redirect into Contact View page.

The following code working fine. 

<a href="/{!URLFOR($ObjectType.Contact)}">Contact</a>

But the same thing how is possible in button click.

<apex:commandbutton value="Contact" action="{!Contact}"/>


Any one tell what I have to write in Contact function


public pagereference Contact{ ??????? }