Top "Controller" questions

A controller is responsible for executing a sequence of instructions in response to some stimulus (maybe a command, action, or event).

RedirectToAction with parameter

I have an action I call from an anchor thusly, Site/Controller/Action/ID where ID is an int. Later …

c# asp.net-mvc controller redirecttoaction
Downloading a file from spring controllers

I have a requirement where I need to download a PDF from the website. The PDF needs to be generated …

java spring file download controller
Can an ASP.NET MVC controller return an Image?

Can I create a Controller that simply returns an image asset? I would like to route this logic through a …

asp.net asp.net-mvc image controller
Multiple controllers with AngularJS in single page app

I want to know is how to use multiple controllers for a single page application. I have tried to figure …

javascript angularjs controller
How to push objects in AngularJS between ngRepeat arrays

So I'm new to AngularJS and I'm trying to build a very simple list app, where I can create an …

arrays angularjs controller ng-repeat
Submitting form and pass data to controller method of type FileStreamResult

I have an mvc form (made from a model) which when submitted, I want to get a parameter I have …

asp.net-mvc forms controller
How to create separate AngularJS controller files?

I have all of my AngularJS controllers in one file, controllers.js. This file is structured as follows: angular.module(…

javascript angularjs controller
Get controller and action name from within controller?

For our web application I need to save the order of the fetched and displayed items depending on the view …

c# asp.net-mvc controller action
Allow multiple roles to access controller action

Right now I decorate a method like this to allow "members" to access my controller action [Authorize(Roles="members")] How …

asp.net-mvc controller roles
Why is it that "No HTTP resource was found that matches the request URI" here?

I have code in my controller like so: [Route("api/deliveryitems/InsertIntoPPTData/{stringifiedRecord}")] ...and I'm calling it via Postman like …

c# controller postman request-uri http-post-vars