100%(1)1 out of 1 people found this document helpful
This preview shows page 136 - 139 out of 153 pages.
Order By With Order By (orderby in C#, without the space that VB.NET uses) you can sort the items in the result collection. Order By is followed by an optional Ascending or Descending (ascending and descending in C#) keyword to specify sort order. You can specify multiple criteria by separating them with a comma. The following query returns a list of genres first sorted by SortOrder in descending order, then sorted on their Name in ascending order (the default): var allGenres = from g in myEntities.Genres orderby g.SortOrder descending, g.Name select g; WhereJust like the WHERE clause in SQL, the Where clause in LINQ (where in C#) enables you to filter the objects returned by the query.
Page 136TYBSC(IT) ASP.NET USING C# WE-IT TUTORIALS 8097071144/55 WE-IT Tutorials TY Bsc(IT) ASP.NET USING C# ASP.NET AJAX enables you to: Create flicker-free pages that enable you to refresh portions of the page without a full reload and without affecting other parts of the page Provide feedback to your users during these page refreshes Update sections of a page and call server-side code on a scheduled basis using a timer Access server-side web services and page methods and work with the data they return Use the rich, client-side programming framework to access and modify elements in your page, and get access to a code model and type system that looks similar to that of the .NET Framework ASP.NET AJAX consists of two important parts: the ASP.NET AJAX Server Controls and the