This post gives examples to use async and await in order to process something asynchronously.
Examples will be presented as Console App, Win Form and Asp.Net Web App.
Taking a definition reference of Async & Await from https://msdn.microsoft.com/en-us/library/hh191443(v=vs.120).aspx :
You can avoid performance bottlenecks and enhance the overall responsiveness of your application by using asynchronous programming. However, traditional techniques for writing asynchronous applications can be complicated, making them difficult to write, debug, and maintain.
Visual Studio 2012 introduces a simplified approach, async programming, that leverages asynchronous support in the .NET Framework 4.5 and the Windows Runtime.
The compiler does the difficult work that the developer used to do, and your application retains a logical structure that resembles synchronous code.
As a result, you get all the advantages of asynchronous programming with a fraction of the effort.
Posted in ASP .Net, C#
Tagged .Net, ASP, ASP. Net, Async Await, Async Await Example, C#, C# async await console app, C# async await web, C# async await winform, C# asynchronous, C# Task
It is a highly flexible tool, based upon the foundations of progressive enhancement, and will add advanced interaction controls to any HTML table.
Common example of basic usage on JQuery DataTable is not Server side processing. You can imagine it is a data collection method that retrieve all data represent as Json string and stored in the DataTable.
So paging, searching, ordering are fully client side processing. This is handy if the data is not large enough.
On the other hand, Server Side processing in JQuery DataTable take data partially based on user request.
Pagination queries data in between start & end records in that page.
Searching will search data on fields usualy with Sql Like also Ordering will do Sql Order by.
All data taken from database server dynamically.
However, this server side processing could be confusing for someone who just exploring JQuery DataTable.
So this post explains jQuery DataTable server side basic understanding with a simple example.
We will use Newtonsoft component to convert class object to Json string. You need to install it using Nuget package manager.
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css" />
And then the html table as DataTable. This table has id example
<table id="example" class="display" cellspacing="0" width="100%">
Posted in ASP .Net, C#, SQL Server
Tagged .Net, ASP, Asp.Net, C#, jQuery DataTable Pagination, jQuery DataTable search, jQuery DataTable server side, jQuery DataTable sorint, Newtonsoft Json