About Salesforce:
Salesforce is a cloud based, online solution, for customer relationship management, or CRM. Salesforce provides all of our departments like marketing, sales, commerce, and service with a shared view of our customers, with a single integrated CRM platform.
Visualforce is a framework that allows developers to build sophisticated, custom user interfaces, that can be hosted natively on the Lightning platform. The Visualforce framework includes a tag-based markup language, similar to HTML, and a set of server-side “standard controllers” that make basic database operations, such as queries and saves, very simple to perform – Salesforce.
Visualforce Page- Developers can use Visualforce to create a Visualforce page definition. A page definition consists of two primary elements: Visualforce markup and Visualforce controller.
Reading this article, you can learn and test the simple Visualforce Page in SalesForce.
The prerequisites for testing Visualforce Page in SalesForce are:
Register a Salesforce Free Trail account using the following
link.
Step 1
Log in to your Salesforce Account and Click the Developer Console
Step 2
Now, we can create new Visualforce Page, MyFirstVFpage, and the file named as MyFirstVFpage.vfp,
The default Autogenerated code in MyFirstVFpage is,
After creating Visualforce Page MyFirstVFpage add the following tags for testing,
- <h1>Hello to C# Corner</h1>
- <p> Welcome to C# Corner!... Visualforce page!...</p>
Finally, the MyFirstVFpage.vfp code is,
- <apex:page>
- <h1>Hello to C# Corner</h1>
- <p> Welcome to C# Corner!... Visualforce page!...</p>
- </apex:page>
Step 3
For Debugging the Visualforce Page MyFirstVFpage, click the Preview button.
Step 4
Now, we can verify the output, and after clicking Preview, a New web page will open,
Summary
Now, you have successfully tested the Visualforce Page, in a SalesForce environment.