Best way to handle 404 error in ASP.NET MVC Application

Custom 404 error handler – 404 Error refers to a not found resource/URL. Here’s how a default 404 Error notification looks in ASP.NET MVC. ASP.NET MVC has its own custom 404 error handler that can be enabled inside the Web.Config file from your solution explorer. Let’s Start: First, to enable error redirection modify your Web.Config … Read more Best way to handle 404 error in ASP.NET MVC Application

WebClient Request in .Net Appliaction

System.Net.WebClient

Dealing with multiple platform application with a centralize data will require you to use Cloud Base Services. This is where Web API’s and Web Service come’s in. There are different kind of packages that will handle such request and one of it is the Web Client. Below is the common HTTP request that is most … Read more WebClient Request in .Net Appliaction

SignalR Chat Application with ASP.NET MVC

SignalR Chat App With ASP.NET

SignalR Chat App With ASP.NET – This article will show you an actual application using SignalR in ASP.NET MVC. The main goal of this project is to have an idea of how we can use SignalR in a real-time web application. As stated on this site https://www.asp.net/signalr: “ASP.NET SignalR is a library for ASP.NET developers … Read more SignalR Chat Application with ASP.NET MVC

Reporting-Creating ReportViewer Report

Reporting 1. Reporting – Create a new windows application project in your visual studio 2013 then add report viewer to your project. 2. Dock report viewer to your form. 3. Add Dataset to your project by simply right clicking on your project name and selecting Add-New Item 4. Select data from the left pane and … Read more Reporting-Creating ReportViewer Report

LinQ Tutorial on DataTable – C#

LinQ Tutorial

LinQ Tutorial – This LINQ tutorial will show you some basic codes on implementing LINQ in C#.LINQ is an acronym for Language Integrated Query, which is descriptive for where it’s used and what it does. The Language Integrated part means that LINQ is part of programming language syntax. To have an overall view of the definition of LINQ … Read more LinQ Tutorial on DataTable – C#

How: Adding Entity Framework Reference using NuGet

Adding Entity Framework

If you have already added Entity Framework you might want to check this thread ASP.NET MVC using EF for actual using of Entity framework in your code. If this is your first time you can continue reading steps below on Adding Entity Framework. Let’s Start: – Adding Entity Framework Reference 1. Open NuGet Package Manager to add EntityFramework. … Read more How: Adding Entity Framework Reference using NuGet

Import Excel to Datagridview – C#

Import Excel – This project is intended to read excel using Microsoft.Office.interop.Excel namespace.There are a lot of ways to read an excel file in C# but for beginners like me this might be a help. Below is a simple way on how to read and import data in DataGridView. Let’s Start: Create a new project by going … Read more Import Excel to Datagridview – C#

ASP.NET MVC File Architecture

Solution Explorer

ASP.NET Web application is created with the MVC template and is auto-generated by the Integrated Development Environment of Visual studio. The default folder structure of this framework has specified places where you can place your code classes. View, Model, and Controller The model should be in the Model Folder. The Controller must be in the controller folder. The … Read more ASP.NET MVC File Architecture

Create Simple Asp.Net MVC Application

What is MVC? Model View Controller (MVC) is a framework, a Programming architecture where you designed your code in 3 different modules. Model, it is where all your logical properties or data are declared. View, it is where you designed or creates your Client user interface and lastly Controller, it is where you process data … Read more Create Simple Asp.Net MVC Application

Convert Image file to Base64 Encoded string in C#

Image Encoding

Transmitting images through the network or through API’s and Web service in programming is a little bit tricky. And the best way to do it is to convert images into a string or to be significant convert it into ASCII code which is commonly understood by most of the computer system. On this page we are going … Read more Convert Image file to Base64 Encoded string in C#