+ 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