ASP.NET MVC upload multiple files

In this article, we will learn how to upload multiple files using Asp.Net MVC and HTML 5. Upload multiple files using ASP.NET MVC HTML5 allows you to select and upload multiple files at the same time. Once the files are uploaded, you can process these using Asp.NET MVC. The view contains an HTML form with... » read more

ASP.Net MVC ViewData: Explaining ViewData with examples

You are wondering what is a viewData in MVC? In this tutorial, you will learn about ViewData objects and how we use them in ASP.NET Applications. What is ViewData in ASP.NET MVC? ViewData is an instance of the ViewDataDictionary class and is used to transfer data from the controller to view. It can be accessed... » read more

JavaScript Disable browser’s back button in ASP.Net

Web browsers enable users to go back to the previous page while browsing the internet by clicking on the back button. But sometimes, you need to prevent the user from visiting the previous page. You might want to disable the browser’s back button but you can’t disable the functionality through the code in the web... » read more

Pass DataTable from Controller to View in ASP.Net MVC

In this article, you are going to learn how to pass a DataTable from a controller to a razor view in ASP.NET MVC. The table passed will be displayed on the view page. Pass DataTable from Controller to View To get started, let’s create a database table like the following: CREATE TABLE [dbo].[Novel]( [NovelID] [int]... » read more

Create HTML Table dynamically in ASP.NET using C#

In this example, we are going to show you how to create an HTML table dynamically in ASP.NET using C#. Create an HTML dynamically in ASP.NET For many reasons, a developer might need to create a table dynamically. For example, looping through a DataTable in order to print out the rows on the web page... » read more

Set Session variable in ASP.Net MVC using jQuery

In this tutorial, I will show you how to set a session variable in an ASP/NET MVC using jQuery. Now let get started by creating a model Country as shown below. The Model public class EmployeeModel public class CountryModel { public string countryName { get; set; } } The Controller: public ActionResult Index() { return... » read more

Sending Email Using Email Templates in ASP.NET

This tutorial will teach you an easy way to send an email in ASP.NET using an email template. an email template is nothing but an HTML file that you can create and customize based on your needs. What is an Email Template? When you have a predefined structure to achieve a task, it is known to be a... » read more

Bind Countries to a DropDownList in ASP.NET using C#

This tutorial will teach you how to create an ASP DropDownList that contains all countries using C#.  A country dropDownList can be used in many ways, such as when requiring information from the user when registering to your website or subscribing to a newsletter. Create countries DropDownList in ASP.NET First, add the System.Globalization namespace to your... » read more