Joining SQL Tables with LINQ in an MVC Application

Joining SQL Tables with LINQ in an MVC Application

In order to join SQL tables using LINQ, you must first have modelled your database with Entity Framework or another ORM (Object-Relational Mapping). In this example I will use Entity Framework

File Upload with AJAX with ASP.NET MVC

File Upload with AJAX with ASP.NET MVC

This example demonstrates file upload with AJAX in a web application using ASP.NET MVC. When the user selects a file and wants to upload it, he can perform this operation without reloading the page.

Using jQuery first and last

Using jQuery first and last

The first and last parameters are used to select the first or last of the items selected with jQuery. These parameters are useful for selecting the item in a specific order among the items returned as a result of a selection.

Timed Operations Example with SetTimeout with jQuery

Timed Operations Example with SetTimeout with jQuery

In this example, there is a button and an empty div element in an HTML document. When you click the button using jQuery, we first set the text in $("#result") to "Button clicked!". Then, using the setTimeout function, after 2 seconds (2000 millisecon[...]

Example of Sending POST Request with JavaScript

Example of Sending POST Request with JavaScript

In this example, you will learn how to send a POST request using JavaScript. The operation is performed by entering the user's name and email address via an HTML form and sending it to the server.

Example of Collecting IDs of Checkboxes with jQuery

Example of Collecting IDs of Checkboxes with jQuery

In this example, you will learn how to get the ID of each of the 5 checkboxes placed in an HTML div using jQuery.