• Archive for October, 2015

    How to used localStorage and sessionStorage of HTML5 to store data in ASP.NET MVC?

    by  • October 28, 2015 • Microsoft .NET Framework, Microsoft ASP.NET, Microsoft ASP.NET MVC • 0 Comments

    Often, many developers use localStorage and sessionStoarage of HTML5 to store data in ASP.NET. Local Storage improves the performance of our data-driven ASP.NET applications by caching data in the browser persistently. Local Storage saves data for a long time. The localStorage object stores the data with no expiration date. The data will not be...

    Read more →

    How to add Form/Window Authentication and Custom Error in ASP.NET?

    by  • October 27, 2015 • Microsoft .NET Framework, Microsoft ASP.NET, Microsoft ASP.NET MVC • 0 Comments

    Introduction In authentication we check whether the user tying to log in is the correct one or not. Authorization on the other hand is keeping track of what the current user is allowed to see and what should be hidden from him. Type of Authentications There are two main type of authentication in ASP.NET?...

    Read more →

    How to use DataTable and pass it to list using ViewBag in ASP.NET MVC?

    by  • October 23, 2015 • jQuery and Microsoft .NET, Microsoft .NET Framework, Microsoft ASP.NET MVC, Microsoft Visual Studio .NET • 0 Comments

    Introduction: Datatable is used to create to table in the web browser. This plug-in adds much functionality in tables such as filtering, paging, sorting, changing page length, etc. This article shows how DataTable can be integrated and pass it to list using ViewBag into an ASP.NET MVC.  Model.cs: The Model comes to a simple...

    Read more →

    How to use ViewBag, ViewData and TempData  in ASP.NET MVC?

    by  • October 19, 2015 • Microsoft .NET Framework, Microsoft ASP.NET MVC, Microsoft Visual Studio .NET • 0 Comments

    ViewData, ViewBag and TempData are used to pass data from controller to view. ViewBag and ViewData are almost similar but TempData is different from them. Each of them has its own importance. We use the ViewData, ViewBag, and TempData objects for the purposes of transporting small amounts of data. In this articles you will...

    Read more →

    How to use ActionLink, PartialView, RenderAction and Action in ASP.NET MVC?

    by  • October 16, 2015 • Microsoft .NET Framework, Microsoft ASP.NET MVC, Microsoft Visual Studio .NET • 0 Comments

    There are different ways for rendering a partial view in MVC Razor. Many developers got confused whether to use  RenderAction or Partial or Action helper methods for rendering a partial view. But ActionLink is different from them. This article shows how to use Html.ActionLink, Html.RenderAction, Html.Partial  and Html.Action in ASP.NET MVC. View.cshtml: Before wirtes...

    Read more →

    How to post data from view to controller using Ajax in ASP.NET MVC?

    by  • October 7, 2015 • jQuery and Microsoft .NET, Microsoft .NET AJAX, Microsoft ASP.NET MVC • 0 Comments

    Introduction: There are multiple ways to pass data from view to controller in ASP.NET MVC. One way to pass data from view to controller through Ajax. This article will show you how to pass data from view to controller using Ajax. 1) Model.cs: Add a model class and named it ModelClass.cs in Model folder....

    Read more →

    How to upload files in ASP.NET MVC 4 with restriction or specific extension?

    by  • October 6, 2015 • Microsoft .NET Framework, Microsoft ASP.NET MVC • 0 Comments

    Introduction: File uploading is a common feature in web based projects. This article explains how to upload any file, how to save file in project directory and how to upload file with restriction. When we upload a file in ASP.NET MVC 4 only controller and view interacts with each other. Here we shall explain...

    Read more →

    How to Create Visual Studio Report (rdlc) in ASP.NET MVC 4?

    by  • October 5, 2015 • Microsoft .NET Framework, Microsoft ASP.NET MVC, Microsoft SQL Server • 0 Comments

    Introduction: In this article I will explains how to use Microsoft Report(rdlc) in ASP.NET MVC 4. Most of the developers use Microsoft Report (rdlc) for generating report in ASP.NET MVC 4 application. Below i am explaining how to use Microsoft Report (rdlc) in ASP.NET MVC 4. Prerequisite: .NET framework 4.0 to 4.5 Entity Framework...

    Read more →