I need to be able to pass in parameters to the SelectMethod of an ObjectDataSource. For example:

<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetFavorites('4300',true)" TypeName="Code.RequestLetterObject"></asp:ObjectDataSource>
But it doesn't work. How can this be accomplished via JavaScript, such as:


<script type="text/javascript">
    function loadData(filter) {
        if (!loaded) {
            <set the SelectMethod parameter...>
            <%= Store1.ClientID %>.reload();
       }
    }
</script>
any help would be appreciated