Img_0738_large

Kevin Rich

SMTP Service

...but why?

I've recently started adding the following interface to most of my web applications in which a requirement is to send automated email notifications.

using System.Net.Mail; namespace MyApp.Core.Service { public interface ISmtpService { void Send(MailMessage message); } } 

And the code implementation is very basic:

using System.Net.Mail;  . . .

Read More

January 31, 2016

Querystring search in MVVM

How I skipped the controller in an ASP.NET MVC View

The goal is to present a search bar that shows results to the user, while still allowing for a direct link to a search result without using the ASP.NET controller to pass the search identifier to the view. Why without playing with the controller? Why not.

With Kendo MVVM, this is actually pretty easy.

<div id="content">  . . .

Read More

January 24, 2016

Using JavaScript to get a querystring by name

Recently, while developing a MVVM app, I found a use case for using JavaScript to get the querystring from the current page. In this particular case, the page pulls a page with a search bar, but I want to be able to link to the specific search results without requiring user interaction.

My final solution was found on Stack Overflow

 function . . .

Read More

January 14, 2016

Archive

Cover image credit: http://whoiskevinrich.com