You need to sign in to do that
Don't have an account?

Redirect to Tab selection
Hi..
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{ ??????? }