466
Example 1:
Example 2:
Apex Class:
public class con {
public contact c { get; set; }
public con() {
c = new contact();
}
public void search() {
// c.accountid has the selected ID.
}
}
public contact c { get; set; }
public con() {
c = new contact();
}
public void search() {
// c.accountid has the selected ID.
}
}
VisualForce Page: