asp.net-mvc
Have model contain field without adding it to the database?
In my Asp.NET MVC4 application I want to add a field to my model without adding it to the database. Sort of a field that only lives in c# instances of the model but not in the database itself. Is there any annotation or other way to exclude the field from the database itself? I … Read more
ASP.NET MVC: How to find Controllers with [Authorize] attributes using Reflection in C#? (or How to build Dynamic Site.Master Menus?)
Maybe I should back-up and widen the scope before diving into the title question…
ASP.Net / ASP.NET Core Web API unauthorized requests returns 302 redirect response instead of 401
In ASP.Net / ASP.Net Core WebAPI,
How do I prevent ‘Publish Web’ from overwriting config files?
When I publish my Asp.Net MVC website to the production server (via VS2008), the web.config & castle.xml files are overwritten. The content of these files is obviously different between my local dev environment and the production server.
Enabling Cross Domain ASP.net Web API
I have Microsoft Visual Studio Express 2013 for Web, Version 12.0.30501.00 Update 2. I have a solution with 2 project in it, one is a web api, and the second is an MVC project intended for for the views. I have create a simple web api returning httpresponsemessage and I can go in fiddler and I will see the json response. However in my second project when attempting to call through ajax I received a cross domain error.
The entity type IdentityRole is not part of the model for the current context after extending Roles table
I have extended my AspNetRoles that was created by Entity Framework to look like this:
How to authenticate with certificates instead of passwords?
I have a small C# MVC5 app that I’m building and am ready to add the user security module to it. (previously I just created a session variable for testing roles) However, my security needs do not fit any of the prebuilt security modules that I’ve seen, i.e. SimpleMembership etc.
ASP.NET MVC thinks my virtual directory is a controller
I have a virtual directory under my MVC website in IIS called “Files”. This directory is at the same level as my Views directory. When I link to a file from my MVC app to a file under my Files directory, I get the following error:
ASP.NET MVC Bootstrap dynamic modal content
I am using MVC 5 and I have a <button> for each record in the viewModel as follows: