Questions tagged as 'mvc'

0
answers

Show errors in Login view in Codeigniter

I am new and I do not have much idea of the use of Codeigniter . The case Do you know if there is any way to return a comment (error) to a view, from the controller, once having made a query of a model ?. That is: I fill in a login form and...
asked by 22.05.2018 / 23:49
1
answer

SERVER FileUpload Network Shared / Shared Path

ASP.Net MVC - AdoDB I used to upload and download from the web server where I published my files in this way, it worked correctly. Server.MapPath("~/UploadedFiles/pdfDocuments/"); But now, I want to send them to another route outside the...
asked by 23.05.2018 / 17:42
0
answers

404 error when trying to insert using ajax

I am trying to implement inserts via ajax on my web page. I have a .js with the following method: function meterCancion(idUsuario, idCancion) { $.ajax({ url: "insertarCancion.php", data: {idusuario:idUsuario, idcancion:idC...
asked by 20.05.2018 / 12:18
0
answers

MVC login with roles

Hello, I am developing a project in MVC and I would like to know how I can do so in the login depending on the role of the user send me to a certain page. At the moment the login is already but I do not know how to make it differentiated by r...
asked by 20.05.2018 / 04:52
0
answers

remote validation and bootstrap datepicker conflict

Good morning. It is a web application MVC 5 c #. I installed the datepicker bootstrap and it works very well in Spanish, after making some fixes with globalize.js. The issue is that then I created a remote validator and there is a conflict. W...
asked by 22.05.2018 / 01:39
0
answers

MVC always returns null when I save an image

Hi, I am developing an application in MVC and I want to save an image in a table called Inventory in my database but it always tells me that it can not return null Here is my code My model public partial class Inventario { pu...
asked by 21.05.2018 / 01:08
0
answers

Help with RenderBody MVC error

I have the following error The "RenderBody" method has not been called for layout page Which is because I do not call the RenderBody() method in my layout, my html code is the following: @{ Layout = null; } <!DOCTYPE html>...
asked by 16.05.2018 / 21:02
0
answers

select the row when activating checkbox kendo grid

Hi, I would like to know how to select the row to which the activated checkbox belongs to kendo UI grid grid code: @(Html.Kendo().Grid<Ttraslados.ViewModels.ServiciosViewModel>() .Name("grid")...
asked by 16.05.2018 / 19:44
1
answer

how to validate a jtextfield from mvc that enter only numbers

An example of this is the validation that a textfield, its length is equal to 4 but, how would you do so that when entering you are only numbers and only letters? public void keyTyped(KeyEvent e) { if(e.getSource().equals(t.getTxtdesc()))...
asked by 08.05.2018 / 06:28
1
answer

Why do I get this TaskCanceledException error when consuming an api per post?

I tell you that I am making an application in asp.net mvc 5 before which I am consuming an api by means of asynchronous methods Task<> . For this I have a method created with which I consume data through request post but it gives me...
asked by 07.05.2018 / 17:13