protected void Page_Load(object sender, EventArgs e)
    {
        var condition = RelationshipNameInfoProvider.GetRelationshipNamesWhereCondition(AllowedForObjects, AllowedForDocuments, SiteId, !HideAdHocRelationshipNames);

        uniSelector.WhereCondition = condition.ToString(true);

        uniSelector.UseTypeCondition = HideAdHocRelationshipNames;
        uniSelector.AllowAll         = ValidationHelper.GetBoolean(GetValue("AllowAll"), false);
        uniSelector.AllowEmpty       = AllowEmpty;
        uniSelector.ReturnColumnName = ReturnColumnName;
        uniSelector.OrderBy          = "RelationshipDisplayName";
        uniSelector.AllRecordValue   = String.Empty;
    }