Questions tagged as 'mvc'

1
answer

I can not generate the view of the posts in CodeIgniter

I follow this video: link Clicking on the individual posts does not load my view and I get this error:    "An uncaught Exception was encountered       Type: Error       Message: Call to undefined method Post :: getPostById ()      ...
asked by 01.09.2016 / 21:31
2
answers

How to make an already developed project have url friendly for SEO?

I have a project MVC C # already developed, now they want the url's to be SEO friendly, for this they already passed me an excel of how they should be an example: /ProductDetail?productId=10 => /nombre-de-producto I do not know if t...
asked by 18.10.2016 / 16:56
3
answers

The length of the string exceeds the value set in the maxJsonLenght property

I am sending a picture on Base64 through Ajax, this is because I am using an Apache Cordova PlugIn to take pictures. The result in Base64 is sent to the MVC server in a JsonResult. The problem is that when the string is very long the server retu...
asked by 21.06.2018 / 21:01
3
answers

Return JSon value in C #

Good morning / afternoon / night SOes, It's been several days since I've been trying to make a statement and I can not hit the key. The topic is the following : I have to add to a Contract depending on which one, a letter in front: "A"...
asked by 09.08.2018 / 16:24
1
answer

Unable to read property when merging two entities into one

I am placing two models in one through a class that unites them, with the objective of assigning them value that I get from the DB but it generates an exception in the first line that reads the read() -> Test.Models.Modelo.Pagos.get re...
asked by 21.07.2018 / 00:37
1
answer

Asp.net Mvc Datatable does not render correctly

I am working with Asp.net Mvc and jquery.Datatables, and I have the following problem. in a page, I'm showing process data ... and for that I defined an html table, and with datatable I defined the following JS function to control the load....
asked by 13.12.2018 / 15:34
2
answers

Assign value to a returned input from a controller

I have this script in my view $(document).ready(function () { $("#PlanVenta").change(function () { $("#Precio").empty(); $.ajax({ type: 'POST', url:'@Url.Act...
asked by 31.08.2016 / 20:44
1
answer

ASP.NET Calculator

I'm doing a small exercise of operations consuming a Web Service, but I can not find a way to show the result in the view, I'm not using Model. controller { return View(); } [HttpPost] public ActionResult Index(int primero, int segundo...
asked by 11.01.2018 / 15:15
0
answers

help with autocomplete in dynamically created elements

I appeal to you because I have not been able to implement the autocomplete in dynamically created elements with jquery, I do it in the following way. $('#addMarcaTabla').click(function () { var html = ''; html += '<tr class="...
asked by 30.01.2018 / 21:23
1
answer

PHP PDO Rollback does not work

Hi, I am trying to execute a PDO Rollback in a function where I involve several tables and there are several insert and updates. I am working with MVC and POO. Maybe I have something wrong with my structure, if so, could you tell me where...
asked by 31.08.2016 / 23:24