Questions tagged as 'mvc'

1
answer

Error creating custom validation in ASPNET MVC (Client Side)

I have a problem creating a custom validation using dataanotations by aspnet mvc. My Model: public class Usuario { public string Nome { get; set; } [Idade(18)] public string Senha { get; set; } }...
asked by 08.10.2018 / 16:40
0
answers

Saving Image in MySQL with Asp.Net MVC

I would like to know how to save an image in the MySQL database, the table is called db_usuarios with the following structure: ID int GrupoUsuario int Nome Varchar Apelido Varchar .... Foto Blob UserController Controller [HttpPost] [Val...
asked by 14.10.2018 / 06:02
1
answer

Button created Dynamically does not fire asp-action - core 2 MVC

I have a cshtml (view) on this page I use a typed model and inside I use a POST form, I create a div (dynamically with ajax) with some components, ALL appear normal, but the button triggers an action on the controller does not work, if I leave s...
asked by 27.09.2018 / 14:50
0
answers

Image upload in codeigniter

I'm trying to make upload of two images into an existing script of codeigniter version 1.6.1 and the person does not want to update the version. I'm including some options for a person who requested, but I'm getting a...
asked by 01.10.2018 / 20:36
1
answer

404 - Java EE Project Maven with Spring returns 404

I'm having problems with the Spring configuration of my Maven project, in which to test if everything was working, a simple hello world did not work and apparently there are no explicit errors, someone please save me there! web.xml <?xml...
asked by 02.10.2018 / 18:50
1
answer

ADVPL - Set focus in an MVC field

I have an entry point in the product registry, where I enable the F12 key to call a function when adding a product. This function displays a screen (MSDIALOG) with fill facilitator and assigns values to some fields in the product registration....
asked by 20.09.2018 / 16:30
1
answer

How to call my Asp.Net MVC view with ajax

I'm starting my studies with Asp.Net MVC and I'm having trouble getting a view from the main menu. I have an initial "_Layout" view with the following menu item: <li> <input type="radio" name="tabs" class="rd_tabs" id="tab3">...
asked by 23.09.2018 / 04:51
0
answers

Doubt - Send Ajax in Checkbox Click (Perfomance, Network)

I have a table in a view, which lists the modules, with each module and each user, and a checkbox that indicates whether the user has access to the module, and I want in the action of changing the checkbox to do the following ajax: $(document)...
asked by 13.09.2018 / 14:39
1
answer

What does the addViewControllers method of the Spring boot WebMvcConfigurer class do?

I'm using thymeleaf on the front end of the application and I have the following configuration class, with the addViewControllers method in question: @Configuration public class WebConfig implements WebMvcConfigurer { ... @Override...
asked by 07.09.2018 / 01:31
0
answers

SyntaxError: expected expression, got '' in AJAX call

Hello I'm having an error in an AJAX call in my JavaScript. For some reason, it does not get to the function in my Controller and gives the following error: SyntaxError: expected expression, got '. This function is called as soon as I cli...
asked by 29.08.2018 / 21:06