How to use the PageReference Class in Apex

Using the PageReference class can be extremely useful when needing to call apex methods on a visualforce page. It’s important to know that you can do a variety of things like updating,inserting,deleting records but lets cover the basics here.

This is how you would do a page redirect:

 

Add Comment