• Salesforce Developer India
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 9
    Questions
  • 1
    Replies

Hi all,

 

How many users you can create in Unlimited Edition?

 

Please help me....

 

Thanks for u r help.....

Hi all,

 

How exceeds the heapSize in coding side?

 

Can u please give me solutions....

 

Thaks for u r help........

Hi all,

 

What is the Governer Limits? Y r u using?

 

can u please help me...

 

Thanks for u r help....

Hi all,

 

What is the Multitenant Architecture? What is Mean Tenant?

 

can u please give me solution

 

Thanks for u help.........

Hi all,

 

What is the Difference between Person Account and Business Account?

 

Can u please give me solution..

 

Thanks for u r help.........

Hi all,

 

How to install curl in my system?

 

can u please give step by step process.

 

thanks for u r help,,,,,

Hi all,

 

I am creating one Custom object(Members__C) , Fields are UserName, Password, Phone No, Email ID.

Records:-

1) userName=user1 and Password=pwd1

2) userName=user2 and password=pwd2

 

i created one vf Page( Login page), and another page Is Personal Information Page.

 

Whenever i am login to Username and Password is correct it will navigate to Pesonal Information Page.

 

But i am passing User Name is "user1" and password is "pwd2". But does not show any Error Messages.  It will also navigate to Personal Information page.

 

VF Login page:-

 

 

<apex:page controller="svtmemberlogin" title="Sri Rama Seva Trust Admin Page" sidebar="false" showHeader="false" standardStylesheets="false">
<style>
body{
background-color:#f1ebdd;
}
.bold{
font-weight:bold;
color:#FFF;
font-size:20px;
}
</style>
<script type="text/javascript">
function f1(){
var txt1=document.getElementById('{!$Component.frm1.txtname}').value;
if(txt1==null||txt1==""){
alert("Please enter Username");
return false;
}

var pwd=document.getElementById('{!$Component.frm1.txtpwd}').value;
if(pwd==null||pwd==""){
alert("Please enter Password");
return false;
}
}
</script>
</apex:form>
<apex:form id="frm1" >
<table border="2" width="100%" height="100px;">
<tr>
<td width="35%"></td>
<td style="background:#724486;">
<div id="d1" Valign="Top">
<p style="margin-left:20px; margin-top:5px;">
<apex:outputText styleClass="bold" value="Already a Member?Login"> </apex:outputText>
<br/>
User Name:
<br/>
<apex:inputText id="txtname" value="{!uname}" />
<br/>
Password :<br/><apex:inputSecret value="{!pwd}" id="txtpwd" />
<br/>
<apex:commandButton value="Sign In" onclick="f1();" action="{!submit}"/><br/>
</div>
</td>
</tr>
</table>
</apex:form>
</apex:page>

 

 

Class:-

 

public class svtmemberlogin {
public String uname{get;set;}
public String pwd{get;set;}
SVT_Members__c s1=new SVT_Members__c();

public PageReference Submit(){
PageReference p1=new PageReference('/apex/SVTMemberPersonal_Information');
PageReference p2=new PageReference('/apex/SVTMember');
if(s1.userNAme==uname && s1.Password__c==pwd){

p1.setRedirect(true);

}
return p1;
}

}


 

Can u please send the vallid code.....

 

Thanks for u help.........

Hi all,

 

How to create alert popups when inputText is empty using Apex class?

 

can u please help me and give with example....

 

 

Thanks for u r help......

Hi all,

 

Is it possible apply the Pagelayout in VF Pages?

 

Please give me solution

 

Thanks for u r help....

Hi all,

 

What is the Difference between Person Account and Business Account?

 

Can u please give me solution..

 

Thanks for u r help.........