MethodExpression::MethodName Property
.NET Framework (current version)
Gets or sets the name of the method that contains a custom LINQ query.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
The MethodExpression object enables you to call a custom LINQ query that is defined in a method. You specify the method in the QueryExtender control in the page.
The following example shows how to specify the FilterStandardPrice method in the QueryExtender control. The custom LINQ query is defined in a FilterStandardPrice method.
<asp:QueryExtender ID="QueryExtender1" runat="server"
TargetControlID="LinqDataSource1">
<asp:MethodExpression MethodName="FilterStandardPrice">
</asp:MethodExpression>
</asp:QueryExtender>
.NET Framework
Available since 4.0
Available since 4.0
Show: