Questions tagged as 'asp.net-mvc'

1
answer

Apply the same class to several ActionLink elements in MVC C #

I need to apply the same class to many ActionLink elements to give it styles. At the moment I have this code: @Html.ActionLink("Panel de Administrador", "Registro", "Registro", new { @class = "enlace" }) @Html.ActionLink("Cargar Casa", "Create...
asked by 27.06.2016 / 05:04
1
answer

values from the checkbox list send null

I have a checkbox list that feeds from a query to a database and so far well. But when sending the values of the checkbox, I send them to the controller and I would like to know how I can solve this or how to do it. It should be noted that the c...
asked by 13.09.2016 / 20:45
3
answers

Concatenate columns into one

I need to concatenate these two columns into one: columna1: columns.Bound(c => c.primer_nombre).Title("Nombre").Width(30); Columna2: columns.Bound(c => c.primer_apellido).Title("Apellido"=.Width(30); That those two remain in a single...
asked by 16.09.2016 / 00:25
1
answer

Entity Framework map some properties

I have a sqlserver database from which I generate the corresponding models with EF. The problem arises because a table in the database for example users is dynamic, it may be that a record appears or not (Address). TABLE USERS with records: I...
asked by 20.07.2016 / 16:19
1
answer

Send date and time to the mvc asp .net driver

Good day, I have a small problem with the dates when sending them to the controller (POST) of the view. This is my form: <form class="form-horizontal" method="post" action="/home/insert" novalidate> <div class="col-sm-3 input-group" s...
asked by 13.05.2016 / 22:22
3
answers

Do not update property in BBDD from Controller

I need to show in a View (Web form) a property of the Data Model that comes from a DB and that after performing the Submit, the Controller's action does not perform the Update on those fields in the DB but with the rest of properties of the Mode...
asked by 11.05.2016 / 12:08
1
answer

Conditional on a field in the view

I'm doing maintenance on MVC for an employees table. I have made a grid that shows the list of employees, and I added buttons to edit and delete in each record, but I want to say delete instead say "Give High" or "Unsubscribe" depending on the f...
asked by 08.03.2016 / 21:04
1
answer

Could not load file or assembly 'System.Web.Http, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35' or one of its dependencies.

Good afternoon, For several days I have come with this error It is an application that consumes a wcf but when loading the data in the jqGrid generates error "HTTP status code: 500" and then removes the window from the image. Navenga...
asked by 24.02.2016 / 21:02
1
answer

Error of the underlying provider in Open

I have an error that says: Error of the underlying provider in Open, and in in innerexcepcion says:    {"Timeout value expired." The timeout period   It ran out during the pre-session start phase. It is possible that the   connection will tim...
asked by 07.02.2016 / 04:02
2
answers

C # MVC Core.Net 2.1 A Layout shared between different web projects in the same solution

In C # .Net Core 2.1 I currently have a solution composed of several web projects (MVC) and these must be managed in a common front, that is to say that you must navigate through the pages of the different projects from a single application. Thi...
asked by 27.12.2018 / 21:38