Questions tagged as 'asp.net-mvc'

1
answer

Save to a variable selected value of a select

I wanted to know how I can save the selected value of a select in a variable, and then send it to the controller. I'm working with MVC C # VISTA @ {     Layout = null; }                <title>MESES</title> <fo...
asked by 03.01.2018 / 15:36
0
answers

How to get the value of the ref parameter from the lists that are in a method ImportIntervencionesExcel to another method

[HttpPost] public ActionResult ImportarIntervencionesExcel(int progrcodi, int tipoProgramacion) { ArchivosModel model = new ArchivosModel(); Intervencion models = new Intervencion(); models.ListaIntervenciones...
asked by 29.12.2017 / 17:27
0
answers

The SelectCommand.Connection property has not been initialized. MySql

It turns out that I'm working with SignalR, where in the html view I make the following request to the client: var myHub = $.connection.myHub; var direccionWeb = $("#direccionWeb").val().toString(); $.connection.hub.url = dire...
asked by 27.12.2017 / 19:51
1
answer

How to rescue value a select MVC C #

   The idea is to save the selected value in the select in a variable, and then save it in a Database. CONTROLLER GET public ActionResult GetIndex() { //crear un objeto para generar la consulta. NameValueCollection quer...
asked by 21.12.2017 / 20:49
0
answers

Deploy Web Application MVC does not generate Controlllers

I have a doubt, regarding a app web with architectural pattern (MVC) with VS2017 Comunity Edition , and sql server . It turns out that the app compiles without problems, is made in several layers, and when publishing the solut...
asked by 18.12.2017 / 21:35
1
answer

Problems with LINK image-background ASP.NET MVC5

Because I do not see the image when doing it from the stylesheet, I need it in the header for that reason I do it from a class ... .font { background-position: center; background-size: cover; background-image: url('../Images/index/font.j...
asked by 12.12.2017 / 00:06
0
answers

select nested in c # ajax mvc and bootstrap-select

It turns out that I'm loading a select with the data obtained from a database with ajax, this is the code c # for this I use bootstrap-select link vision code <div id="buttonGrp" class="form-group"> <div class=...
asked by 03.12.2017 / 03:53
0
answers

Application .Net Core works in Windows Server 2012 R2 but not Windows Server 2012

Good morning, I have an application in .Net Core that I do not get to work in a windows server 2012, but if it works in a windows server 2012 R2. In theory I installed the 2 things that are needed, but I can not get it to run, I get error...
asked by 29.11.2017 / 18:36
0
answers

Query with Entity Framework

Good morning, I am developing an application in ASP.NET MVC C # that calculates the overtime of an employee, I need to make a query that allows me to be able to bring the data of a table called MarcacionesBiometrico strong> which is where...
asked by 25.11.2017 / 16:24
1
answer

mvc .net view does not work

When I go into the audiologe menu of my .net application I get the following error: Server error in the application '/'. The model element passed to the dictionary is of type 'System.Collections.Generic.List'1 [serviexpress.auditoria]', but t...
asked by 19.11.2017 / 01:18