Categories
Web Development

How do I access Google API data using ASP.NET?

Have you tried to access your Google Analytics data (or other Google data) using ASP.NET? After hours of research, I finally figured out how, and it’s very simple!

Categories
Web Development

Allow HTML in MVC’s Html.ValidationMessageFor or Html.ValidationSummary

Have you ever wanted to put HTML in the validation message for a property or in the validation summary? You can’t do this out of the box, since any message that gets run through either of these methods gets put into the element’s InnerText. But thankfully, we can create simple extensions to allow HTML in both of these validation methods.