You need to sign in to do that
Don't have an account?
how to create link one page to another page in visualforce page.
Hi All,
I am trying give a link one VF Page to another VF Page.
login = [select ID, Name, User_Name__c, Password__c from Registration__c Where User_Name__c=:userName and Password__c=:password];
if(!login.isEmpty()) {
Pagereference pr = new PageReference('/apex/timesheet'+login[0].id); // here Timesheet is another visualforce page
pr.setReDirect(true);
return pr;
}
Error : page timesheeta0928000005arw8aaa does not exist
Thanks in advance
Thulasi.
I am trying give a link one VF Page to another VF Page.
login = [select ID, Name, User_Name__c, Password__c from Registration__c Where User_Name__c=:userName and Password__c=:password];
if(!login.isEmpty()) {
Pagereference pr = new PageReference('/apex/timesheet'+login[0].id); // here Timesheet is another visualforce page
pr.setReDirect(true);
return pr;
}
Error : page timesheeta0928000005arw8aaa does not exist
Thanks in advance
Thulasi.
Is there Visualforce page exist with the name :- timesheet?
If yes, than Try to use following code.
If No, than create one new visualforce page with the name :- timesheet.
Apex Code:
Let me know if you have any question on this.
Thank You,
Hitesh Patel
Email :- hiteshpatel.aspl@gmail.com
http://mrjavascript.blogspot.in/
All Answers
Is there Visualforce page exist with the name :- timesheet?
If yes, than Try to use following code.
If No, than create one new visualforce page with the name :- timesheet.
Apex Code:
Let me know if you have any question on this.
Thank You,
Hitesh Patel
Email :- hiteshpatel.aspl@gmail.com
http://mrjavascript.blogspot.in/
Thank u so much