Questions tagged as 'controller'

3
answers

Calling Controller Method

I'm doing a project for the Faculty, and I'm having a hard time understanding how to create a button and call an ActionResult on the Controller, and wanted to know if the action needs to be on the corresponding controller of the respective Model...
asked by 28.10.2016 / 04:32
2
answers

How to execute a function after entering the Controller in AngularJS?

I have the following problem, I have more than one angular navigation state that uses the same controller, like this: .state('app.estado-navegacao-1', { url: "/estado-navegacao-1", views: { 'menuContent': { templateUrl: "template...
asked by 30.05.2016 / 19:17
3
answers

ASP.NET - How to use multiple post methods in the same controller?

I have the following problem: On a given HTML page I have two buttons that call different POST methods on the same controller. @using (Html.BeginForm("UserInfo1", "UserInfo", FormMethod.Post)) { <input type="submit" value="Ir para Ac...
asked by 06.06.2018 / 04:39
1
answer

Returning JSON from a factory to a controller with angularjs

I'm starting to study angular deeper, and I'm having trouble processing JSON data in a factory and passing them to a controller. My idea is: A simple app, just for study, where I type the capital and it returns the state to me. Simple, right?...
asked by 09.09.2015 / 04:34
1
answer

AngularJS - page can not find the controller

I'm starting to test applications using AngularJs and Spring Boot. My problem is this: All scripts are normally imported into the browser, but IF I put the tag "ng-controller=" HeadController "" in any tag on my page, I have an error saying t...
asked by 14.03.2016 / 03:11
1
answer

Identify the Area, Controller, and Action of a View

I need to create an HtmlHelper (MVC 4, C #) that identifies and reports the Area, Controller, and Action of a View. I'm not getting anything. How can this be done? Is there a function or method that already does this?     
asked by 06.10.2014 / 16:37
2
answers

View .HTML with VRaptor. It's possible?

I'm a Systems Analysis and Development student and I love programming, I've studied the basics of Java and I'm working on frameworks just to get a feel for it. How do I return an HTML page in a controller with VRptor instead of JSP. I'm d...
asked by 21.01.2015 / 17:36
1
answer

How to pass two variables from a view to the controller?

I have a link where I already pass a variable to the controller. It works ok. How do I get through two? My link in View: <a href="{{url("/ordemvar/$equipam->codigoequipamento")}}"><i class="glyphicon glyphicon-tasks"></i&g...
asked by 11.01.2017 / 17:41
1
answer

How to apply the_content filter in function get_the_content WordPress?

I'm developing a theme for WordPress, for hobby and for studying a little PHP, JavaScript etc. and I'm having a little problem. I'm working with the controller concept where all logic will be processed and then sent to a view. To make it clea...
asked by 11.10.2016 / 23:52
1
answer

Problem moving from Controller to Model

I'm making a code, where it involves MVC. To move from View to Controller I'm not having problems, but when I go from Controller to Model I can not, being that the variable is imported, but without any value. View: package bancomvc;...
asked by 02.07.2015 / 04:39