¡@

Home 

c# Programming Glossary: controllers

Constructor parameters for controllers without a DI container for ASP.NET MVC

http://stackoverflow.com/questions/122273/constructor-parameters-for-controllers-without-a-di-container-for-asp-net-mvc

parameters for controllers without a DI container for ASP.NET MVC Does anyone have any.. MVC Does anyone have any code examples on how to create controllers that have parameters other than using a Dependency Injection..

View Models and dependency injection

http://stackoverflow.com/questions/14131804/view-models-and-dependency-injection

view model constructors. It also keeps logic out of the controllers and allows view models to be reused when appropriate of course.. if needed...they may contain nothing to test Thin testable controllers. Testable composer objects which can be reused for different.. various purposes. Flexibility to mix and match view models controllers and composers to support different scenarios. share improve..

ASP.NET MVC - How to show unauthorized error on login page?

http://stackoverflow.com/questions/1498727/asp-net-mvc-how-to-show-unauthorized-error-on-login-page

error on login page In my ASP.NET MVC app I have most controllers decorated with Authorize Roles SomeGroup When a user is not..

Views in separate assemblies in ASP.NET MVC

http://stackoverflow.com/questions/19746/views-in-separate-assemblies-in-asp-net-mvc

Unity for dependency injection which I use to create the controllers from my plugin assemblies. I'm using WebForms default aspx as..

How can I return the current action in an ASP.NET MVC view?

http://stackoverflow.com/questions/362514/how-can-i-return-the-current-action-in-an-asp-net-mvc-view

Usage of IoC Containers; specifically Windsor

http://stackoverflow.com/questions/367178/usage-of-ioc-containers-specifically-windsor

allow you to intercept the creation of the instances the controllers in this case so you just register the controllers and their.. the controllers in this case so you just register the controllers and their dependencies in the container and that's it whenever..

GetEntryAssembly for web applications

http://stackoverflow.com/questions/4277692/getentryassembly-for-web-applications

get the entry or main assembly for a web app. If you put controllers in a separate project you may find that the base class of ApplicationInstance..

When `PostAuthenticateRequest` gets execute?

http://stackoverflow.com/questions/5947278/when-postauthenticaterequest-gets-execute

principal return isAuthorized Now decorate your controllers actions with the MyAuthorize attribute MyAuthorize public ActionResult..

Charting in ASP.Net MVC 3

http://stackoverflow.com/questions/6281520/charting-in-asp-net-mvc-3

file. T This way requests are sent from view to controllers. Controllers generate image of a graph and pass back an image..

How to elegantly deal with timezones

http://stackoverflow.com/questions/7577389/how-to-elegantly-deal-with-timezones

I was thinking of some layer in between the view and the controllers that could solve this issue. Or having a custom extension method..

Multiple types were found that match the controller named 'Home'

http://stackoverflow.com/questions/7842293/multiple-types-were-found-that-match-the-controller-named-home

All while foo.com still works . Is bar.com searching from controllers EVERYWHERE inside of ftpFolderA2 and that's why it's finding.. application and conflicts occur because you have the same controllers defined in different namespaces. You will have to configure..

Passing data to Master Page in ASP.NET MVC

http://stackoverflow.com/questions/78548/passing-data-to-master-page-in-asp-net-mvc

public float Price get set Since I don't want individual controllers to know anything about putting together the master pages data..

Cannot Inject Dependencies into ASP.NET Web API Controller using Unity

http://stackoverflow.com/questions/9527988/cannot-inject-dependencies-into-asp-net-web-api-controller-using-unity

to inject dependencies into asp.net ASP.NET Web API controllers I cannot seem to get it to work. This is what I'm doing now...

How to add a custom view to a XIB file defined view in monotouch

http://stackoverflow.com/questions/9857558/how-to-add-a-custom-view-to-a-xib-file-defined-view-in-monotouch

Compile Run. EDIT Do not override LoadView for controllers that are loaded from a XIB. LoadView is meant to create the..

Database injection into a validation attribute with ASP MVC and Castle Windsor

http://stackoverflow.com/questions/986019/database-injection-into-a-validation-attribute-with-asp-mvc-and-castle-windsor

database call. I have windsor successfully working for the controllers and the IRepository interface is injected normally. The problem..

A generic error occurred in GDI+, JPEG Image to MemoryStream

http://stackoverflow.com/questions/1053052/a-generic-error-occurred-in-gdi-jpeg-image-to-memorystream

Caldoo.Coordinator PhotoEditor.cs line 139 at Caldoo.Web.Controllers.PictureController.Croppable in C Users Ian SVN Caldoo Caldoo.Web.. in C Users Ian SVN Caldoo Caldoo.Web Controllers PictureController.cs line 132 at lambda_method ExecutionScope..

Multiple HttpPost method in MVC4 Web API Controller

http://stackoverflow.com/questions/11407267/multiple-httppost-method-in-mvc4-web-api-controller

id defaults null constraints new id @ ^ d Only integers Controllers with Actions To handle routes like ` api VTRouting route` config.Routes.MapHttpRoute..

Should I stop fighting Visual Studio's default namespace naming convention?

http://stackoverflow.com/questions/1289425/should-i-stop-fighting-visual-studios-default-namespace-naming-convention

namespace. MVC will have a separate namespace for Models Controllers and Views. It is also beneficial to group classes by their feature...

Recommended ServiceStack API Structure

http://stackoverflow.com/questions/15231537/recommended-servicestack-api-structure

Service implementations akin to MVC Controllers EventsService.cs EventsReviewsService.cs EventMan.Logic For..

Mocking an NHibernate ISession with Moq

http://stackoverflow.com/questions/1828878/mocking-an-nhibernate-isession-with-moq

on the User class are virtual. TestCase 'Beta.Tests.Unit.Controllers.UserControllerTest.Details_InValidIndex_ReturnsNotFoundView'.. 5BTResult 5D 28Expression`1 expression T1 TResult Controllers UserControllerTest.cs 29 0 at Beta.Tests.Unit.Controllers.UserControllerTest.Details_InValidIndex_ReturnsNotFoundView.. Controllers UserControllerTest.cs 29 0 at Beta.Tests.Unit.Controllers.UserControllerTest.Details_InValidIndex_ReturnsNotFoundView..

ASP.NET MVC 2 problem with UpdateModel

http://stackoverflow.com/questions/1936970/asp-net-mvc-2-problem-with-updatemodel

IValueProvider valueProvider at Stormbreaker.Dashboard.Controllers.DashboardController`1.Update FormCollection collection in D.. D Projects SVN Stormbreaker trunk Stormbreaker.Dashboard Controllers DashboardController.cs line 23 at lambda_method ExecutionScope..

Multiple Controllers with one Name in ASP.NET MVC 2

http://stackoverflow.com/questions/2627699/multiple-controllers-with-one-name-in-asp-net-mvc-2

Controllers with one Name in ASP.NET MVC 2 I receive the following error.. 'Account' has found the following matching controllers uqs.Controllers.Admin.AccountController MvcApplication1.Controllers.AccountController.. uqs.Controllers.Admin.AccountController MvcApplication1.Controllers.AccountController I searched the project for MvcApplication1.Controllers.AccountController..

Why can't I share Session state between 2 web apps with StateServer? What am I missing?

http://stackoverflow.com/questions/3292359/why-cant-i-share-session-state-between-2-web-apps-with-stateserver-what-am-i-m

machine keys The Test I put the following into one of my Controllers to test if it was working ViewData mode requestContext.HttpContext.Session.Mode.ToString..

System.ObjectDisposedException: The ObjectContext instance has been disposed and can no longer be used for operations that require a connection

http://stackoverflow.com/questions/4206634/system-objectdisposedexception-the-objectcontext-instance-has-been-disposed-and

Object obj at SHP.Controllers.EmployeeController.AutoCompleteResult String searchText in C.. My Documents Visual Studio 2010 Projects MVC SHP SHP Controllers EmployeeController.cs line 623 at lambda_method Closure ControllerBase..

Validation failed for one or more entities while saving changes to SQL Server Database

http://stackoverflow.com/questions/5400530/validation-failed-for-one-or-more-entities-while-saving-changes-to-sql-server-da

79 Source File C sep MvcEventCalendar MvcEventCalendar Controllers EventManagerController.cs Line 77 Stack Trace DbEntityValidationException..

Charting in ASP.Net MVC 3

http://stackoverflow.com/questions/6281520/charting-in-asp-net-mvc-3

T This way requests are sent from view to controllers. Controllers generate image of a graph and pass back an image result. Result..

Downcasting with Entity Framework

http://stackoverflow.com/questions/7266848/downcasting-with-entity-framework

been detected. Source System.Data.Entity StackTrace ... at Controllers.AuthController.Register String Company String GivenName String.. Users .. Documents Visual Studio 2010 Projects .. Website Controllers AuthController.cs line as a last resort I tried writing this..

Serializable classes and dynamic proxies in EF - how?

http://stackoverflow.com/questions/7276507/serializable-classes-and-dynamic-proxies-in-ef-how

Projects . Website Models EF.Custom.cs line 121 at .Web.Controllers.AuthController.Register String Company String GivenName String.. C Users . Documents Visual Studio 2010 Projects . Website Controllers AuthController.cs line 119 at lambda_method Closure ControllerBase.. TEntity entity at Skillscore.Web.Controllers.AuthController.Register String Company String GivenName String..

Multiple types were found that match the controller named 'Home'

http://stackoverflow.com/questions/7842293/multiple-types-were-found-that-match-the-controller-named-home

the area and the root. For example you have the two ~ Controllers HomeController.cs ~ Areas Admin Controllers HomeController.cs.. have the two ~ Controllers HomeController.cs ~ Areas Admin Controllers HomeController.cs In order to resolve this issue as the error.. Home action Index id UrlParameter.Optional new AppName.Controllers and in your ~ Areas Admin AdminAreaRegistration.cs context.MapRoute..

MVC Custom Authentication, Authorization, and Roles Implementation

http://stackoverflow.com/questions/8567358/mvc-custom-authentication-authorization-and-roles-implementation

filterContext I decorate Actions in my Controllers with this attribute and like Microsoft's Authorize no params..

How to allow an anonymous user access to some given page in MVC?

http://stackoverflow.com/questions/9727509/how-to-allow-an-anonymous-user-access-to-some-given-page-in-mvc

use the Authorize attribute to manage authorization. Controllers or individual actions that are dressed with that attribute will..