protected void Page_Load(object sender, EventArgs e)
    {
        //if (!IsPostBack)
        //{
        // initialize

        ActivityAlarmOptions options = null;

        try
        {
            options = ActivityAlarmOptions.Load(Server.MapPath(@"App_Data\LookupValues"));
        }
        catch
        {
            // temporary, as the service throws an exception for options not found
            // the service is not yet complete, but this allows testing of the UI
            options = ActivityAlarmOptions.CreateNew(Server.MapPath(@"App_Data\LookupValues"));
        }

        _defaultView.DataSource                 = options.DefaultViewLookupList;
        _defaultView.DataTextField              = options.DataTextField;
        _defaultView.DataValueField             = options.DataValueField;
        _defaultFollowupActivity.DataSource     = options.DefaultFollowupActivityLookupList;
        _defaultFollowupActivity.DataTextField  = options.DataTextField;
        _defaultFollowupActivity.DataValueField = options.DataValueField;
        _carryOverNotes.DataSource              = options.CarryOverNotesLookupList;
        _carryOverNotes.DataTextField           = options.DataTextField;
        _carryOverNotes.DataValueField          = options.DataValueField;
        _carryOverAttachments.DataSource        = options.CarryOverAttachmentsLookupList;
        _carryOverAttachments.DataTextField     = options.DataTextField;
        _carryOverAttachments.DataValueField    = options.DataValueField;
        _alarmDefaultLead.DataSource            = options.AlarmDefaultLeadLookupList;
        _alarmDefaultLead.DataTextField         = options.DataTextField;
        _alarmDefaultLead.DataValueField        = options.DataValueField;

        Page.DataBind();

        //}
    }