Skip to main content

Posts

Showing posts from January 27, 2019

sorting by kudvenkat

C#, SQL Server, WCF, MVC and ASP .NET video tutorials for beginners http://www.youtube.com/user/kudvenkat... In this video, we will discuss, implementing sort functionality in an asp.net mvc application. We will be working with the same example that we started in Part 62. So, please watch Parts 62 and 63 before proceeding with this video. We want to support bi-directional sorting by Name and Gender columns. Here's the requirement 1. Name & Gender columns must be clickable hyperlinks 2. Clicking on the column headers should sort the data. If the data is not already sorted by the column on which you have clicked, the data should be sorted in ascending order. Clicking again on the same column should sort the data in descending order. 3. By default, the data should be sorted by "Name" in ascending order. By the end of this video, the output should be as shown below. Notice that "Name" and "Gender" columns are rendered as hyperlinks, which the user...

paging in mvc using kudvenkat

Link for code samples used in the demo http://csharp-video-tutorials.blogspo... Link for csharp, asp.net, ado.net, dotnet basics, mvc and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat... In this video we will discuss, implementing pagination in an asp.net mvc application. Please watch Part 63, before proceeding. Step 1: Install PagedList.Mvc using NuGet package manager. PagedList.Mvc is dependent on PagedList. Installing PagedList.Mvc will automatically install PagedList package as well. Step 2: Include the following using statements in HomeController.cs file using PagedList.Mvc; using PagedList; Modify the Index() action method as shown below. Notice that we are passing page parameter to this function. This parameter is used for specifying the page number. This parameter can be null, and that's the reason we have chosen a nullable integer. We convert the list, to a paged list, using ToPagedList(). Also, notice that, we are using null-coalescing ...

mvc search functionality kudvenkat

Link for code samples used in the demo http://csharp-video-tutorials.blogspo... Link for csharp, asp.net, ado.net, dotnet basics, mvc and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat... In this video, we will discuss, implementing search page in an asp.net mvc application. We should be able to search by Employee Name and Gender. We will be using table tblEmployee for this demo. Use the script below to create and populate the table with sample data. Create table tblEmployee ( ID int identity primary key, Name nvarchar(50), Gender nvarchar(10), Email nvarchar(50) ) Insert into tblEmployee values('Sara Nani', 'Female', 'Sara.Nani@test.com') Insert into tblEmployee values('James Histo', 'Male', 'James.Histo@test.com') Insert into tblEmployee values('Mary Jane', 'Female', 'Mary.Jane@test.com') Insert into tblEmployee values('Paul Sensit', 'Male', 'Paul.Sensit@...