Microsoft 开发人员网络 > 论坛主页 > Off-Topic Posts (Do Not Post Here) > filter query with linq and dynamic data template
提出问题提出问题
 

问题filter query with linq and dynamic data template

  • 2009年11月3日 23:01jimslim 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    Hi,

    i like to customize a dynamic data template in order to filter query results to display generaly only datasets of a specific customer.
    I don't like to use a drop down list in the list view to filter my query results, cause i dont want a customer to see data of other customers.
    I set up the page to use linq to get data from my sql server.
    Where can i define such a query filter?

    I've tryed to set a where clause to the following section in the list.aspx, but it failed.

    <asp:LinqDataSource ID="GridDataSource" runat="server" EnableDelete="true">
    
                    <WhereParameters>
    
                             <asp:DynamicControlParameter ControlID="FilterRepeater" />
    
                    </WhereParameters>
    
                </asp:LinqDataSource>
    
    

    I'm a novice in programming, so please have patience with me.

    Regards
    jimslim

    • 已移动Wesley YaoMSFT2009年11月5日 2:31 (From:Visual Studio Source Control and SourceSafe)
    •  

全部回复