How to setup Elmah.MVC with ASP.NET MVC 4 ?

How to setup Elmah.MVC with ASP.NET MVC 4 ?

What is Elmah ? ELMAH is an open source project whose purpose is to log and report unhandled exceptions in ASP.NET web applications. Why to use Elmah ? ELMAH serves as an unobtrusive interceptor of unhandled ASP.NET exceptions, those usually…

How to set SmtpClient properties using web.config

How to set SmtpClient properties using web.config

SmtpClient Class allows applications to send e-mail by using the Simple Mail Transfer Protocol (SMTP). Instead of assigning properties of this class in C# , we can use the <system.net> element in the web.config as shown below : <system.net> <mailSettings>…

Using jquery Validate.js with ASP.NET MVC 4

Using jquery Validate.js with ASP.NET MVC 4

Today I wanted to use Validation.js with my ASP.NET Web Api application. I wanted to use this library to perform client side validations. jquery.validate.js comes inbuilt with the default ASP.NET Web Api template. Here is how it works… @model TestApp.Models.LoginModel…

Using Ninject – Dependency Injection with ASP.NET Web API controllers

While setting up ninject with ASP.NET Web Api I encountered this error. The error read “Type ‘Api.Controllers.ABCController’ does not have a default constructor”. So after googling for while, I found out that there were many such problems reported. Few of…

How to Pimp my Visual Studio - Change style / font / colors and more..

How to Pimp my Visual Studio – Change style / font / colors and more..

I recently bumped into this very-awesome site called : Studio Styles. Here is a link to what exactly it’s all about. It basically allows you to change your VS color scheme. You can browse through the various color schemes submitted…

How to change connection string of a dbml file ( LINQ 2 SQL ) dynamically using app.config.

How to change connection string of a dbml file ( LINQ 2 SQL ) dynamically using app.config.

Linq 2 Sql : INQ to SQL is an ORM (object relational mapping) implementation, which allows you to model a relational database using .NET classes. You can then query the database using LINQ, as well as update/insert/delete data from it….

How to return data records from a CLR Stored Procedure

How to return data records from a CLR Stored Procedure

Before reading this article I recommend you please go through the previous two article, where I have already discussed what/why/how to use CLR Stored Procedures. How to create a CLR Stored Procedure using C# and Visual Studio How to pass…

How to pass parameters to CLR Stored Procedures using C#

How to pass parameters to CLR Stored Procedures using C#

This article is in continuation to my previous article : How to create a CLR Stored Procedure using C# and Visual Studio where I have discussed on how to write your first CLR Stored procedure and what/why/how to use CLR…

How to create a CLR Stored Procedure using C# and Visual Studio

How to create a CLR Stored Procedure using C# and Visual Studio

Below are the points I will be covering in this article – What exactly do I mean by CLR Stored Procedure? – Why do we use CLR Stored Procedure? – Can we write a CLR Stored Procedure using C# and…

How to use JqPlot with ASP.NET MVC ?

How to use JqPlot with ASP.NET MVC ?

jqPlot is a plotting and charting plugin for the jQuery Javascript framework. jqPlot produces beautiful line, bar and pie charts with many more features. Below is a step by step guide on how to use JqPlot with ASP.NET MVC. Step…