+ Start a Discussion
Sree SalesforceSree Salesforce 

if i write the code in vf page it shows some error .same code if i paste into some another page it will execute.why its happen like that

Best Answer chosen by Sree Salesforce
nitesh gadkarinitesh gadkari
Hi Sri Manne,

This problem is occuring because you may have deleted some code part from controller  which is referring to vfpage or vice versa .the error  itself says remove its usage and save again.Sometimes it doesn't gets saved after removal also. 

You can say it is a type of bug in VFpage and its related controller.The work around for this :
1) The simplest will be to create a new page with same name and paste  ur vfpage code(updated on) first and then controller code.

Regards
Nitesh

All Answers

Deepak Kumar ShyoranDeepak Kumar Shyoran
What your code of visualforce page and what error you are getting?
nitesh gadkarinitesh gadkari
Hi Sri Manne,

This problem is occuring because you may have deleted some code part from controller  which is referring to vfpage or vice versa .the error  itself says remove its usage and save again.Sometimes it doesn't gets saved after removal also. 

You can say it is a type of bug in VFpage and its related controller.The work around for this :
1) The simplest will be to create a new page with same name and paste  ur vfpage code(updated on) first and then controller code.

Regards
Nitesh
This was selected as the best answer