Sample Code:
Visualforce page:
{!accountid}
</apex:page>
Apex Controller:
public class SampleController {
public Id accountid {get;set;}
public Sample(ApexPages.StandardController controller) {
Account acc = new Account();
accountid = controller.getId();
}
}
No comments :
Post a Comment