Category Web
Multiple ViewModels in a single MVC View
This post shows how to use multiple models in a single view. The models can be used in separated forms or together in one form. You could use each child model with a separate ajax post if required. Only properties in the parent class affect the child models, but a property in a child model […]
Creating an MVC5 App with Unity, SLAB and Attribute Routing
This posts explains how to set up an MVC5 application using Unity 3 and Semantic Logging (SLAB). Attribute Routing is used for the controllers. Code: https://github.com/damienbod/MVC5UnitySlab Adding Unity 3 to the MVC5 project Add the NuGet packages to the MVC5 project. Now add the start up logic in the UnityConfig file in the App_Start folder. […]
MVC WEB HTTP, HTTPS Application Monitoring Tools
This is just a collection of links, tools for monitoring, testing, tracing, debugging ASP.NET applications. When I have time I’ll evaluate each of the different tools. Health Monitoring and ASP.NET MVC http://msdn.microsoft.com/en-us/library/bb398933.aspx http://msdn.microsoft.com/en-us/library/x28wfk74.aspx http://odetocode.com/blogs/scott/archive/2009/10/12/health-monitoring-and-asp-net-mvc.aspx http://maxivak.com/asp-net-mvc-error-logging/#health Log exceptions with Health Monitoring in ASP.NET MVC3 Health Monitoring with ASP.NET MVC http://www.asp.net/web-forms/tutorials/deployment/deploying-web-site-projects/logging-error-details-with-asp-net-health-monitoring-cs How I Over-Engineered the ASP.NET Health Monitoring Feature […]
Loading a dynamic list in an ASP.NET Core MVC View
This example shows how to create a dynamic list in MVC application. An input event sends an ajax http Get to the controller, the data is created and sent back to the view. The input event uses the jquery.unobtrusive-ajax.js jQuery library to send the http Get to the server. Code: https://github.com/damienbod/MvcDynamicDropdownList History 2018-06-14 Updated to […]
SignalR Messaging with console server and client, web client, WPF client
The code in this post is a basic example of a SignalR messaging system. I wanted to create an example which works for 3 client types, WPF, Web and Console. It is built upon the hello worlds provided on the asp.net/signalR website. The hub was then changed to add 3 methods, a simple method with […]
Slab Logging with an IoC Container
Slab Logging or Semantic Logging is part of the Microsoft Enterprise Library 6. In this post, a wrapper framework will be used to log and use EventSource classes. The EventSource can then be used with an IoC container without requiring static constructors. We don’t want to create a wrapper class for each EventSource. Static methods […]
