no dogma blog
no dogma blog
Blog Posts
Podcast
Web API Lambda Course
Polly Course
Photos
Contact
Support this Site
About
RSS
Light
Dark
Automatic
AspNet
Adding class libraries to an ASP.NET 5 web application
When adding a class library to an ASP.NET 5 application you might get an error like “The following projects are not supported as references: - The project ClassLibrary1 has a target framework that is incompatible or has a version higher than the current project and cannot be referenced”
Jan 14, 2016
#
ASP.NET 5
,
AspNet
,
Visual Studio 2015
Altering the ASP NET MVC model with an ActionFilter
Full source code here. Action filters are executed before and/or after the execution of an action method, they can be used to modify how an action executes or to perform a separate task, such as authorization or logging.
Jan 11, 2014
#
ActionFilter
,
ASP.NET MVC
,
AspNet
Skipping ActionFilters in ASP.NET MVC
Full source code here. In the previous post I showed how you can use an action filter to execute code both before and after an action method and how to apply the filter globally.
Jan 11, 2014
#
ActionFilter
,
ASP.NET MVC
,
AspNet
Arguments model and action methods in ASP.NET MVC Part 2 - using Glimpse
In my previous post I discussed how values sent from the browser are bound to objects in the action methods of a controller. If binding is not working as expected you need to examine the html element names and the types you are binding to, I showed how the FormCollection can be of help in this regard.
Nov 12, 2013
#
ASP.NET MVC
,
AspNet
,
Glimpse
,
Model binding
Arguments model and action methods in ASP.NET MVC Part 1
Sending values from an MVC view to a controller works very well when you are binding back to the same model/viewmodel you populated the view with. But when you start trying to do something a little different, it’s not so obvious or straightforward.
Oct 15, 2013
#
ASP.NET MVC
,
AspNet
,
Dropdownlist
,
Model binding
ASP.MVC and Web Forms in one web application
I was recently asked to add an ASP.NET MVC 4 application to an existing Web Forms site. The ideal solution was to keep the code bases separate and the apps on a common domain.
Oct 5, 2013
#
ASP.NET MVC
,
AspNet
,
Cookies
,
Web Forms
Drop down lists in ASP.NET MVC
Full source code is a attached here. This post shows two methods of implementing drop down lists in ASP.NET MVC 4. The code for data access and the general layout of the application should not be considered suitable for anything other than pedagogical purposes.
Aug 29, 2013
#
ASP.NET MVC
,
AspNet
,
Dropdownlist
,
Entity Framework
«
Cite
×