Models, ViewModels, DTOs in MVC 3 application
I have a web solution (in VS2010) with two sub-projects:
I have a web solution (in VS2010) with two sub-projects:
how to call javascript function in html.actionlink in asp.net mvc?
I have an ASP.NET MVC web role running on Windows Azure and have setup ELMAH properly in the web.config. I also have my global.asax ignore *.axd routes. Locally, I am able to load /elmah.axd, however when I deploy to Azure, I get a 404 on that page. Has anyone gotten ELMAH working on Azure?
I want to add controller in my MVC 4 application in VS2012 as this image:
I can’t access to HttpContext.Current on my project MVC4 with C#4.5 I’ve added my reference to System.Web in my project and added the using instruction on my controller page… But I can access currentHandler only… var context = HttpContext.CurrentHandler; //Current Is HttpContext.Current deprecated on C#4.5 ? I’ve looked this help page : http://msdn.microsoft.com/en-us/library/system.web.httpcontext.aspx Answers: Thank … Read more
I started a new internet project with VS2012 and am trying to just restructure my project a bit and I can’t seem to keep the SimpleMemberhsipProvider working. Basically, all I’ve done is move the models objects into a core project along with a couple other items. I’ve implemented Ninject and am trying to abstract Entity a bit by using a repository pattern to get my data. I really don’t feel as though I’ve changed much with the current project, but for some reason when I start the application now I get:
[I solved this myself, see my answer for cause]
I have a ASP.NET MVC workflow configured as two websites managed by a load balancer. The websites use Sql Server as the session state provider and have authentication switch off (its not required).
Being relatively new to ASP MVC, I’m unsure which would better suit my needs. I have built an intranet site using Windows authentication and I’m able to secure controllers and actions using the Active Directory roles, e.g.
If I have the following controller action…