LinqDataSource with filter - problem

3 replies. Last post: November 7, 2010 9:02 PM by Glenn Layaar
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

Hi

I try to set filter parameter on default page load. i set the parameters on LinqDataSource and Bind this to webcombo. the problem is that when i set AutoGenerateWhereClause="True" on webcombo i can't search anything i have still loading,but the datasource return data good i can bind returnet row to webgrid for example. How sholud i set the parameters that will be work with webcombo? Where can be the problem ?

    <ISWebCombo:WebCombo ID="WebCombo2" runat="server"
        DataSourceID="LinqDataSource2" DataTextField="NAME" DataValueField="NAME"
        Height="20px" UseDefaultStyle="True" Width="200px">
    </ISWebCombo:WebCombo>
    <asp:LinqDataSource ID="LinqDataSource2" runat="server"
        ContextTypeName="searchDataContext" OrderBy="NAME" TableName="v_search_products"
        Select="new (NAME, NAMEASCI, CATNAME, CATNAMEASCI, SHIPPING24H)"
        AutoGenerateWhereClause="True" EnableViewState="False"
        StoreOriginalValuesInViewState="False">
        <WhereParameters>
            <asp:Parameter ConvertEmptyStringToNull="False" DefaultValue="False"
                Direction="ReturnValue" Name="SHIPPING24H" Type="Boolean" />
        </WhereParameters>
    </asp:LinqDataSource>

Thx

Regards Adam

All times are GMT -5. The time now is 5:42 AM.
Previous Next