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
shshshsh 

Hi

Can I get controller name and method name to visual force page?

If yes,please tell me how can I get ?

Yoganand GadekarYoganand Gadekar

Yes you can call your controller in visualforce page,

 

for standard controller just write it in extenssion as below

<apex: page standardcontroller="Account' extenssion="YOurcontrollerName_Here">

 

and for custom controller like below,

 

<apex:controller="YOurcontrollerName_here">

 

you can also call you methods from controllers,

for example call methode on click of a custom command button in your page,

<apex:commandbutton value="My button" action="{!My_Methode_In_Controller_Name}"/>

 

Visit following link for salesforce vf documentation  and more learning,

http://www.salesforce.com/us/developer/docs/pages/

 

Hit kudos and mark this as answerif it helps you.