You need to sign in to do that
Don't have an account?

this visualforce program shows an error that is Error: Registration__c does not exist.please tell how to solve
<apex:page standardController="Registration__c" sidebar="false" showheader="false" tabStyle="Employee__c">
<apex:form >
<apex:pageBlock >
<div align="left">
<!-- <apex:image value="{!$Resource.Emplyee_VF_Logo}" style="margin-left:20px"/> -->
<apex:image url="{!URLFOR($Resource.Emplyee_VF_imgs, 'images/Employees.jpg')}"/>
</div>
<div align="center">
<apex:outputLabel value="Employee Registration__c" style="font-weight:bold;font-size:25px;color:#B80000"/>
</div>
<hr/><br/><br/>
<apex:pageBlockSection columns="2" title="Please fill your details" collapsible="false">
<apex:pageBlockSectionItem >
<apex:outputLabel value="First Name"/>
<apex:inputtext value="{!Registration__c.First_Name__c}"/>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem >
<apex:outputLabel value="Last Name"/>
<apex:inputField value="{!Registration__c.name}"/>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem >
<apex:outputLabel value="Email"/>
<apex:inputtext value="{!Registration__c.Email__c}"/>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem >
<apex:outputLabel value="Username"/>
<apex:inputtext value="{!Registration__c.Username__c}"/>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem >
<apex:outputLabel value="Password"/>
<apex:inputsecret value="{!Registration__c.Password__c}"/>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem >
<apex:outputLabel value="Confirm Password"/>
<apex:inputsecret value="{!Registration__c.Confirm_Password__c}"/>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem >
<apex:outputLabel value="Birthdate"/>
<apex:inputField value="{!Registration__c.Birthdate__c}"/>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem >
<apex:outputLabel value="City"/>
<apex:inputField value="{!Registration__c.City__c}"/>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem >
<apex:outputLabel value="Country"/>
<apex:inputtext value="{!Registration__c.Country__c}"/>
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
<apex:panelGrid columns="3" style="margin-left:60px">
<apex:commandButton value="Submit" action="{!Save}"/>
<apex:commandButton value="Cancel" action="{!Cancel}"/>
</apex:panelGrid>
</apex:pageBlock>
</apex:form>
</apex:page>
<apex:form >
<apex:pageBlock >
<div align="left">
<!-- <apex:image value="{!$Resource.Emplyee_VF_Logo}" style="margin-left:20px"/> -->
<apex:image url="{!URLFOR($Resource.Emplyee_VF_imgs, 'images/Employees.jpg')}"/>
</div>
<div align="center">
<apex:outputLabel value="Employee Registration__c" style="font-weight:bold;font-size:25px;color:#B80000"/>
</div>
<hr/><br/><br/>
<apex:pageBlockSection columns="2" title="Please fill your details" collapsible="false">
<apex:pageBlockSectionItem >
<apex:outputLabel value="First Name"/>
<apex:inputtext value="{!Registration__c.First_Name__c}"/>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem >
<apex:outputLabel value="Last Name"/>
<apex:inputField value="{!Registration__c.name}"/>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem >
<apex:outputLabel value="Email"/>
<apex:inputtext value="{!Registration__c.Email__c}"/>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem >
<apex:outputLabel value="Username"/>
<apex:inputtext value="{!Registration__c.Username__c}"/>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem >
<apex:outputLabel value="Password"/>
<apex:inputsecret value="{!Registration__c.Password__c}"/>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem >
<apex:outputLabel value="Confirm Password"/>
<apex:inputsecret value="{!Registration__c.Confirm_Password__c}"/>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem >
<apex:outputLabel value="Birthdate"/>
<apex:inputField value="{!Registration__c.Birthdate__c}"/>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem >
<apex:outputLabel value="City"/>
<apex:inputField value="{!Registration__c.City__c}"/>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem >
<apex:outputLabel value="Country"/>
<apex:inputtext value="{!Registration__c.Country__c}"/>
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
<apex:panelGrid columns="3" style="margin-left:60px">
<apex:commandButton value="Submit" action="{!Save}"/>
<apex:commandButton value="Cancel" action="{!Cancel}"/>
</apex:panelGrid>
</apex:pageBlock>
</apex:form>
</apex:page>
I Think this Line may Effect "Employee Registration__c"
<apex:outputLabel value="Employee Registration__c" style="font-weight:bold;font-size:25px;color:#B80000"/> and check again.
Replace your code with below line it will work .
Thnaks
Manoj