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
Alex ShAlex Sh 

Call PageReference method in another void method within one class

Hi All!
How can I call PageReference method in another void method within one class? I try like this, but nothing happens when I click button:

public PageReference Method1() {
...
}
public void Method2() {
Method1();
}

Best Answer chosen by Alex Sh
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Alex Shelaputin,

May I suggest You please refer the below link for reference. Hope it will be helpful.

Please mark it as best answer if the information is informative.so that question is removed from an unanswered question and appear as a proper solution.

Thanks
Rahul Kumar