// create new GeoLocation object
GeoLocation loc = new GeoLocation( map, "Redlands, CA", 34.0527, -117.1531);

// now we have the location object with the x and y coordinates in map units
Response.Write( loc.x + ", " + loc.y);

// output for the Cylindrical projection:  
// -1160.81265589209, 2355.44522655048

public class GeoLocation
{
    public String label;
    public double x;
    public double y;

    public GeoLocation( Map map, String label, double lat, double lon)
    {
        Projection proj = map.getProjection();
        GeoPoint pt = proj.project( lat, lon);
        this.label = label;
        this.x = pt.x;
        this.y = pt.y;
    }
}