Questions tagged as 'asp.net-mvc'

3
answers

Create a ModelBinder for KeyValuePairTKey, TValue

The default ModelBinder of ASP.NET MVC is not able to bind the data with variables of type KeyValuePair. This is due to the way it has to link the complex types: first it creates a new instance of the object through a constructor without argumen...
asked by 12.05.2016 / 12:52
1
answer

Change column title in kendo grid

How can I change the title of this Kendo MVC Grid column using Javascript using a button in another column? This is the column to which I want to change the title: columns.Bound(c => c.segundo_nombre).Title("2do Nombre").Width(20); An...
asked by 11.08.2016 / 19:25
0
answers

My bookmarks are not displayed correctly on my google map

I am working on a .net application with MVC and I have a map where some different icons are loaded, they are brought from a SQL server database, if my application works the problem I have to reload the page several times for these to be shown, t...
asked by 29.03.2018 / 04:55
5
answers

Problems showing parameters in partial view

I am consuming a service to consult customer balances, it returns me as an answer an entity with these properties: public string errorCodigoField { get; set; } public string errorMensajeField { get; set; } public decimal saldoRecargasField { g...
asked by 16.08.2017 / 17:33
1
answer

Sessions in ASP .NET Core 1.0 and ASP .NET MVC 4

I am doing a series of tests in ASP.NET MVC Core 1.0 to see if it is convenient to migrate the project from MVC 4 to MVC Core 1.0 many of the errors that came out are already fixed. I have problems passing the parameters that contain sesio...
asked by 30.06.2016 / 01:38
1
answer

Display a list of elements from a view to a modal in jquery

Suppose I have a list of elements in a view: <% Dim valor As New List(Of Integer) For i As Integer = 0 To 5%> <%valor.Add(i)%> <% Next%> I send them to a modal using data in this way: <a href="#" data-toggle="moda...
asked by 11.01.2016 / 16:52
2
answers

Send empty decimal input

I have the following model. It was generated from the database with entity. The two fields can be null. public partial class Items { public int id { get; set; } public Nullable<decimal> largo { get; set; } public Nullable<...
asked by 16.08.2016 / 16:50
2
answers

Error removing tuples from a table plus an intermediate

I have 3 tables, NOTICIA , NOTICIA_FOTO (middle table) and FOTO , and I need to delete rows from table FOTO ; and since said table is associated with the intermediate table NOTICIA_FOTO , also delete rows from that...
asked by 21.01.2016 / 14:59
2
answers

Can I cancel the sumbit of a form and prevent it from reaching the controller (server)?

I would be interested to know if I can cancel or prevent the button submit from reaching the controller. As before the jquery .click event is executed, you may be able to do something about it and thus prevent it from continuing its execution. T...
asked by 06.04.2016 / 16:38
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