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 


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');
        return pageRef;
Refer more on the below link,
Sagar PareekSagar Pareek
Your question is still not specific  :
Will suggest you to go through this link