What is MVC ModelState?
This is a very good article about ModelState: http://www.exceptionnotfound.net/asp-net-mvc-demystified-modelstate/
This is a very good article about ModelState: http://www.exceptionnotfound.net/asp-net-mvc-demystified-modelstate/
C# 6 has a new feature call String Interpolation that makes string formatting with variables easier.
http://www.codeproject.com/Articles/846566/What-s-new-in-Csharp-String-Interpolation
Connect JS – Oct 15-17
Atlanta Code Camp – Oct 24
Plunker is a great tool for quick code experimenting with the JavaScript libraries – http://plnkr.co/edit/?p=catalogue
AngularJS is a very cool language. After watching the Pluralsight “AngularJS Get Started video”, I’m anxious to learn more about it and start using it.
I’ve recently be challenged by freshly written code at my company where they used the factory pattern. This led me to research into why one would want to use it. In a lot of my research, they discourage it until it is really needed because it adds complexity with the additional classes and creation logic.
Here are some of my additional thoughts:
I’m digging deeper in to MVC now and struggled to display images. Not sure of the best folder to put them in since Visual Studio doesn’t automatically create a folder for images. Anyway, I got this to work:
<img src=”@Url.Content(“/images/ImageName.jpg”)“ alt=”Image” style=”background-color:White; height: 188px; width: 187px;display:block” />
I’m currently implementing WebAPI into my company’s external web services. It was pretty easy to learn and add to our existing WCF web services. I used online videos (especially PluralSight) and ASP.NET to get acquainted with Web API:
I went with MVC version 4.0 and I created methods using a routing of “Api/{controller}/{action}”
The automatic help documentation is very impressive.
I first created a sample Web API project and then copied and pasted the code into my existing web service project. I did have to add a lot of references and install a lot of packages from NuGet but it was fairly easy to do.
I liked testing the APIs with Fiddler. It is easy to switch back and forth between JSON and XML.