+ Start a Discussion
Balasubramani DhanapalBalasubramani Dhanapal 

How to call the a visulforce page in apex class??

Hi all, 
         How to call the apex  visulforce page in apex class. 

Thanks in advance 

Regards,
Bala

Arunkumar RArunkumar R
Hi Bala,

You can call using PageReference method,

Here is the same code,
 
public PageReference callVFPage() {
        
        PageReference pageRef = new PageReference('/apex/YourPageName');
        pageRef.setRedirect(true);
        return pageRef;
    }
Refer more on the below link,
https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_system_pagereference.htm
Sagar PareekSagar Pareek
Your question is still not specific  :
Will suggest you to go through this link 
https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_system_pagereference.htm