The user interface in a Visualforce base can show dynamic content the value of which keeps varying based on user responses. But there are periods when we want some content which must not change with the change in values of other components in the page. For instance, an image file may be essential to persist constant. Such content which cannot be altered in a page is known as a static resource.
Resulting are a few static resources in Salesforce −
The steps to create a static resource are as below.
Go to Develop → Static resource and mention the values for name, description and file location for the static resource.
Click Save in the directly above screen to get the file attached to the User Interface controller.
Next we produce the apex code as in the resulting screenshot to reference the static object we created above.
Running the above apex code will make the resulting output. The output shows a static resource.
Salesforce Related Interview Questions
|AJAX Interview Questions||Software Engineering Interview Questions|
|Salesforce Admin Interview Questions||Salesforce Developer Interview Questions|
|Apex Interview Questions||Visualforce Interview Questions|
|Salesforce Crm Interview Questions||Salesforce Lightning Interview Questions|
|Salesforce Report And Dashboard Interview Questions||Salesforce Integration Interview Questions|
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.