Questions tagged as 'mvc'

1
answer

correct way to make a text box in mvc c #

I have my text box of type int in my view my leaves like this with the arrows up and down, as I declare so it does not look like this, or how I can put a dropndownlist with the years there. <div class="editor-label"> @...
asked by 24.10.2017 / 16:56
1
answer

I can not compile Visual Studio 2017

I am working on a project with .NET and MVC and I can not compile my solution for each project I get this error:    C: \ Program Files (x86) \ Microsoft Visual Studio \ 2017 \ Community \ MSBuild \ 15.0 \ Bin \ Roslyn \ Microsoft.CSharp.Core....
asked by 25.09.2017 / 19:24
1
answer

help with a crud

my error is this: PDOException: SQLSTATE [HY093]: Invalid parameter number: parameter was not defined in C: \ wamp \ www \ form persona1 \ form person1 \ Model \ modelperson.php on line 55 this is my view this is the model function ed...
asked by 22.04.2017 / 04:14
3
answers

ASP.Net MVC - Send data from a view to a controller

How do I do the following? I have a classic view with tables created with razor as follows: ... @foreach (var item in Model) { <tr> <td> @Html.DisplayFor(modelItem => item.a) </td>...
asked by 24.11.2016 / 21:50
1
answer

Problem with RegularExpression in Data annotations

Hi, I'm doing a form and validating with data annotations but I need my user to have no intermediate spaces the problem is that my regulation is not working, could you help me find a solution please. Here is my expression. [Display(Name...
asked by 03.01.2019 / 23:01
1
answer

Problem php routes - PATH

Good afternoon to everyone! I tell you my problem: I have a file in which I can publish an announcement, but first I must make an include to the configuration file, where the connection variables and others are located. The fact is that by tr...
asked by 12.12.2018 / 19:14
1
answer

Pass array of inputs to a MVC controller

I have the following Ajax and HTML code. $("#filter_frm").submit(function (e) { e.preventDefault(); var data = $(this).serialize(); myChart.showLoading({ text: 'Cargando', color: '#c23531',...
asked by 16.11.2018 / 11:35
1
answer

How to display the selection list of client certificates by clicking on a .NET button

Hello I have seen that there are pages that show the list of client certificates not when entering a page that requests them, but later, when the user has already entered the page and presses a button. I normally set this configuration in IIS an...
asked by 26.09.2018 / 12:31
1
answer

how to display the files of a folder on a website

Currently I have a very simple console app that shows me the names of the files that are inside a specific folder. public void archivoCarpeta() { string carpeta = ConfigurationManager.AppSettings["carpetaDescarga"]; DirectoryInfo dir =...
asked by 29.08.2018 / 03:22
1
answer

Order By It does not return the last MVC value

MVC - Why does not this code return the last value, but returns the largest value? int LastRegister = db.suma1.OrderByDescending(x => x.suma).First().suma;     
asked by 13.08.2018 / 21:00