.NET news » Search results
Search results for query "filter" (16):
Simple TextBox Derived Custom Control: Filter Key Input
BSEtunes
Displaying a Sorted, Paged, and Filtered Grid of Data in ASP.NET MVC
Over the past couple of months I've authored five articles on displaying a grid of data in an ASP.NET MVC application. The first article in the series focused on simply displaying data. This was followed by articles showing how to sort, page, and filter a grid of data. We then examined how to both sort and page a single grid of data. This article looks at how to add the final piece to the puzzle: we'll see how to combine sorting, paging and filtering when displaying data in a single grid.
Like with its predecessors, this article offers step-by-step instructions and includes a complete, working demo available for download at the end of the article. Read on to learn more!
Sorting and Paging a Grid of Data in ASP.NET MVC
This article is the fifth installment in an ongoing series on displaying a grid of data in an ASP.NET MVC application. Previous articles in this series examined how to sort, page, and filter a grid of data, but none have looked at combining one or more of these features in a single grid. This article and the next one show how to merge these features into a single grid. In particular, this article looks at displaying a grid that can handle both sorting and paging. The subsequent article will examine combining sorting, paging and filtering.
Like with its predecessors, this article offers step-by-step instructions and includes a complete, working demo available for download at the end of the article. Read on to learn more!
Filtering Data Using ASP.NET 4's QueryExtender Control
One of the new controls available with ASP.NET 4 is the QueryExtender control. The QueryExtender is designed to simplify filtering data returned from a LinqDataSource or EntityDataSource by decoupling the filtering logic from the data source control. Using the QueryExtender is easy - simply add a QueryExtender to the page, specify what data source control it applies to, and then define the filtering criteria. For example, when displaying product information on a web page you could use the QueryExtender control and a few lines of markup to display only those products that are not within a certain price range and whose name or category starts with a user-specified search string.
Filtering the data returned by a LinqDataSource or EntityDataSource control is certainly possible without the QueryExtender; both the LinqDataSource and EntityDataSource
controls have a Where property that can be used to specify filtering criteria. What the QueryExtender offers is a simpler means by which to filter data.
This article includes a number of demos (which can be downloaded at the end of this article) that showcase the QueryExtender's ease of use and its powerful filtering
capabilities.
Common Table Expressions (CTE) in SQL Server 2005
Products, Customers, Orders, OrderDetails, and so on - but we may need to
run reports on a particular subset of the data or against aggregate data across these tables. Or the reporting queries we need
might need to group or filter by results returned by scalar subqueries. Typically, views are used to break down complex queries into digestible chunks or to provide scalar subquery results that can be grouped and filtered.
Views, however, are sometimes overkill, as they are permanent objects at the system-level. If we only need to reference
this complex query in a single stored procedure or UDF, another option is to use a derived
table. Unfortunately, derived tables muddle the readability of the query and must be repeated for each use in a statement..


Syndicate