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
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