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
madhu l 1madhu l 1 

apex code for custom buttons

Best Answer chosen by madhu l 1
William TranWilliam Tran
Try this:
 
<apex:page controller="CountryClub" showheader="false" sidebar="false">
    <apex:form>
	<apex:pageblock>
		<apex:pageBlockButtons>
            		<apex:commandButton action="{!Browse}"  value="Open"/>
            		<apex:commandButton action="{!Upload}" value="save"/>
        	</apex:pageBlockButtons>

		<apex:pageblocksection>
      			<apex:image url="{!imageURL}"/>
		</apex:pageblocksection>
	</apex:pageblock>
    </apex:form>
</apex:page>

 

All Answers

William TranWilliam Tran
Try this:
 
<apex:page controller="CountryClub" showheader="false" sidebar="false">
    <apex:form>
	<apex:pageblock>
		<apex:pageBlockButtons>
            		<apex:commandButton action="{!Browse}"  value="Open"/>
            		<apex:commandButton action="{!Upload}" value="save"/>
        	</apex:pageBlockButtons>

		<apex:pageblocksection>
      			<apex:image url="{!imageURL}"/>
		</apex:pageblocksection>
	</apex:pageblock>
    </apex:form>
</apex:page>

 
This was selected as the best answer
madhu l 1madhu l 1
thanks williams