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
dafunkdafunk 

The page you submitted was invalid for your session.

The page I am going to from the controller code works everytime if I remove the controller attribute of the <apex:page

the Controller code is  :

public PageReference step3() {
return Page.adCrawl3;
}

 

adCrawl3 page displays with the controller removed. Any ideas ?

thanks

Joe

 

Best Answer chosen by Admin (Salesforce Developers) 
dafunkdafunk

Don't understand it but this fixed it:

 

PageReference p = Page.adCrawl3;
        p.setRedirect(true);
        return p;

 

 

thanks

 

All Answers

Jeff MayJeff May

how about returning a new PageReference (Page.adCrawl3)

dafunkdafunk

Don't understand it but this fixed it:

 

PageReference p = Page.adCrawl3;
        p.setRedirect(true);
        return p;

 

 

thanks

 

This was selected as the best answer