Questions tagged as 'asp.net-mvc'

2
answers

How to Represent a DataTable in an MVC View Without knowing the properties of the DataTable

This is what I have in the controller, I create a test class, I convert it to json and send that json to the class that converts any json into a DataTable. var Personas = new List<Personas>(); Personas.Add(new Personas() { Nombre= "Juan"...
asked by 06.02.2017 / 15:27
2
answers

Pass jQuery variable value to an input

I have this function in jQuery <script type="text/javascript"> $(document).on("ready", function () { $("#area_tabla table tr td").click(function () { var celda = $(this); alert(celda.html());...
asked by 07.12.2016 / 18:06
3
answers

Error "ExecuteNonQuery: Connection property has not been initialized."

Why do you return the following error?    ExecuteNonQuery: Connection property has not been initialized. Code: public bool IngresarUsuario(Prueba objeto) { using (SqlConnection con = new SqlConnection(strConnection)) { t...
asked by 07.11.2016 / 22:38
3
answers

How to go through all the Rows of a DataTable when it is filtered?

I try to go through all the rows that contain the " highlightchecked " class of a jquery DataTable using this code: $(dtTable12.rows().nodes()).each(function () { if ($(this).closest('tbody tr').hasClass('highlightchecked')) {...
asked by 01.12.2016 / 03:59
2
answers

Show view returned by my controller

I have my Petition. $.ajax({ type: "POST", url: "Estimates/ManageProject", data: JSON.stringify({ IdProyecto: dataItem.IdProyecto, Homologacion: dataItem.Homologacion, Cliente: dataItem.Cliente, Tipo...
asked by 15.09.2016 / 21:03
1
answer

how to consume a web api, from MVC.asp.net?

I have my Web API in ASP.NET , I need to make a simple abml consuming the services from the MVC driver. Could you help me? The WEB API that I have is the one that generates scaffolding     
asked by 16.08.2016 / 16:25
1
answer

In ASP: NET MVC 4 how to show how many records are being processed when uploading an Excel file?

I have the following question and maybe someone has already implemented it and can help me, they will see in languages like PHP I can be sending in what record it goes when I upload a file and this I'm showing via a progressbar or a message of "...
asked by 11.03.2016 / 23:30
2
answers

Save a GoogleMaps image on server with ASP.NET MVC 4 and C #

I'm doing a site where I use Google Maps API, I generate coordinates and I search for a specific site, then I take a site capture with html2canvas to generate an image in <img> , my question is: How can I take this image to...
asked by 25.01.2016 / 19:06
2
answers

When saving multiple photos, I get the error Validation failed for one or more entities. See 'EntityValidationErrors' property for more details

I have a problem saving multiple photos, I get the error Validation failed for one or more entities. See 'EntityValidationErrors' property for more details. I have a modal where I keep multiple photos: tables: PHOTO -NOTICIA_FOTO (inter...
asked by 23.01.2016 / 03:08
1
answer

I do not know how to make my api return a string like datetime

I have to return a datetime from a string in my asp.net project to feed a calendar that only accepts datetime. The string is a two-digit number that represents the expiration date of a product. I convert it with the following code to DateTime, b...
asked by 26.12.2018 / 01:28