function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
LongneckJohnLongneckJohn 

I am having trouble getting the sample application to work

I am trying to get the sample defined in:

 

 http://wiki.developerforce.com/index.php/Force.com_for_ASP.NET_Developers

 

to work.

 

when I try saving the leadLookupController as descripbed on page 4 I get an error:

 

 

Error

Error: Unknown property 'searchString'

 

 

 

is this document out of date?

 

is there a more current document?

 

 

 

jhenningjhenning

Looks like there is some apostrophes in the Apex code snippet. Try this code below for your controller:

 

 

public class leadLookupController { private String emailString; public void setSearchString(String val) { emailString = val; } public String getSearchString() { return emailString ; } public Lead getLead() { Lead lead = getLeadInfo.getLeadAddressByEmail(emailString); return lead; } public PageReference step2() { return Page.leadLookup2; } }