Questions tagged as 'mvc'

1
answer

Ignore the null parameter in a Linq query

Hi, I have a Json in a controller that filters my view, the issue is that sometimes receives some of the parameters in Null and does not return records as I could do to ignore me if the parameter enters as null? This is the code: public Jso...
asked by 08.11.2016 / 02:26
1
answer

How to know without a "remove" in my driver was rejected because of a foreign key violation?

how to tell the user that a record has not been deleted because it has other entities that inherit its primary key by means of try / catch? try { db.usuarios.Remove(usuario); } catch(?????) { ??????? }     
asked by 17.08.2016 / 23:13
1
answer

How to add the value that comes from the model to the textbox

Good I would like to know how to add the value that comes from the model to a textbox that is in the row of a table, in Devexpress this is the code that I have I need a line of code if I am not wrong it is something like content.Column...
asked by 16.08.2016 / 18:45
1
answer

How can I get it, the time from Razor ASP.NET

On this occasion I have a question which is, how can I get the time or the time from Razor or a way to get them separately, I attach my entity Cls and the View, thank you and excuse the inconvenience. using System; using System.Collection...
asked by 26.12.2018 / 19:12
0
answers

Paginacion in a chart c #

I am looking for a view to be able to show several data in a chart, but that has a page, since in my current chart the data overpopulates the chart, I hope you can help me, gracais     
asked by 25.12.2018 / 02:35
1
answer

Why do not you show me the content of my website 000webhost?

I have already finished a mini project, it works perfect on my PC "Localhost" but when I want to upload it to 000webhost it goes up all right, but when I want to see a view it does not show it, but no error appears. I think it's the .htaccess or...
asked by 14.12.2018 / 23:38
1
answer

Warning: mysqli_num_rows () expects parameter 1 to be mysqli_result, string given in

I can not show the data that the query brings me. I work with mySQL and a model of views and controllers. I get this error: Warning: mysqli_num_rows () expects parameter 1 to be mysqli_result, string given in . And the variable is not empt...
asked by 17.12.2018 / 17:49
0
answers

Asp.Net WebGrid upload data through Ajax

I have a WebGrid, which I can load without problems through the past model in sight (MVC C # .net). Until there is no problem. But the need arises to be able to load another WebGrid control, but for that I need as parameter the Id of the se...
asked by 11.12.2018 / 15:06
0
answers

Chart (graphic) with various data c #

It turns out that I have a chart in which I must list about 200 data and when you get to about 40 data, the chart is disarmed, is there a way to give next page and jump to other data and display them on the same chart? or any way to list the app...
asked by 13.12.2018 / 20:28
1
answer

I can not send my data from a dynamic table in C # mvc

Good, I have a question. I can not send the data entered by the user in my pivot table to my MVC controller and C # in my view I have the following: Function that creates the Dynamic table: function fn_agregar() { cadena = "<tr>...
asked by 10.12.2018 / 18:44