You need to sign in to do that
Don't have an account?
madhu l 1
<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>
hi williams am expecting apex class for below page
<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 is a custom controller, here's the shell, you need to fill in the rest as far as functionality, that is the logic behind what the buttons do.
Thx
If you want to upload the image the image then data type should not be String. It should be document. Please check below post for more detail. I hope that will help u
http://developer.force.com/cookbook/recipe/uploading-a-document-using-visualforce-and-a-custom-controller
Thanks
Amit Chaudhary