Questions tagged as 'mvc'

1
answer

Validation of fields in cshtml [closed]

I have seen some examples to validate fields, but all of them I have to tell you which field or control to be validated, ie I have to pass the controls name. If I have a form with 20 fields, that "language" is left. How do I do at one time, vali...
asked by 17.03.2014 / 16:37
1
answer

Unable to locate current JTA Transaction

The project is divided into the following modules: test-persistence; test-services; test-web; I use Glassfish 4 as the application server and it has a connection pool configured for connections to the database created in MySQL.   ...
asked by 25.08.2014 / 05:52
1
answer

Problems with Paging in SLIM with Pager

How to make page change using Pear-Pager in SLIM Framework? The code for router is: $app->get('/imoveis(/:pg)', function($pg = '') use($app) { $imoveis = array('casa 1', 'casa 2', 'casa 3', 'casa 4', 'casa 5', 'casa 6', 'c...
asked by 20.02.2014 / 17:52
1
answer

Mapping with Entity Framework

Good afternoon, When analyzing a code I see in the mapping the following line: this.HasKey(t => t.IdEstudante); Understand what you do in practice but not theoretically, refers to the object but explicitly what this parameter is sayin...
asked by 03.01.2019 / 19:12
1
answer

MVC PHP + AJAX I can not pass return json_encode to the ajax response

Hello everyone and thank you in advance Have the form validation class where you get all form errors: // Validação final do cadastro public function validateFinalCadastro($arrVar) { if(count($this->getErro())>0){...
asked by 28.12.2018 / 15:10
1
answer

PHP - Trait or Extended Class

Good afternoon guys, I have a trait that formats data on a MVC system , the system works correctly, however I had a question regarding design pattern and performance, of the trait is correct or should you consider extending a Model class in...
asked by 04.12.2018 / 19:45
0
answers

Is it possible to simulate a FTP server in C #? [closed]

I need to run automated integration tests in an application whose functionalities have external dependencies such as FTP. I would like to know if it is possible to simulate an FTP as it is possible to simulate a database with Moq, for example....
asked by 16.10.2018 / 19:05
0
answers

mvc HTTP 404 error

Good, I created an ASP: NET WEB Core 2.0 Appl. I created views and controllers. When I make a submit via: <form asp-controller="Audit" asp-action="Search" method="post"> Instead of opening via (controller Audit, IAction, search,...
asked by 12.09.2018 / 12:48
0
answers

MVC Architecture of Routes and Controllers with several versions using Spark

I'm implementing a Rest API in Java using the framework Spark . I need to split the routes into two or more versions: v1 and v2 . I know Spark supplies path() , I believe it's not hard. My question is how to perform folder...
asked by 14.09.2018 / 16:01
0
answers

How to get "x_" from Html tags in outlook with ASPNET

I have the following problem when sending an email with my application, at the time of opening the email, the Outlook provider modifies the template tags by placing the "x _" at the beginning of the name and id attributes of the tag. Hom...
asked by 25.07.2018 / 21:30