Questions tagged as 'asp.net-mvc'

1
answer

Query in LINQ, How to concatenate fields

Good afternoon, I have the following left join var innerJoin = from emp in db.Tbl_Empleado join mb in db.Tbl_MarcacionesBiometrico on emp.EmpId equals mb.EmpId into MarcBio...
asked by 30.11.2017 / 00:00
2
answers

How to send an IList data set from the Controller to the View?

I get an amount N of elements of the session, how can I send it to the view and show it in a DropdownList? or as in windowsForm it is known as a combobox public ActionResult Index() { IList<CModel> c = (IList<CModel>...
asked by 04.10.2017 / 20:43
3
answers

How to convert a table to an IEnumerable to show it in a Dropdownlistfor

Good morning, I'm learning c # ASP .NET MVC, How can you convert a table to IEnumerable to use it in Dropdownlistfor ?: I have the following model: public class Saleform { public int ID { get; set; } public in...
asked by 10.10.2017 / 00:12
1
answer

Redirect errors to different views in ASP.NET MVC [closed]

How could I log the different types of errors in ASP MVC 5, likewise send them to a screen or error view 500, 404, etc. In the same way how could they log in?     
asked by 12.10.2017 / 03:22
1
answer

Add dll reference from one project to another visual studio 2013 c #

I have a solution with 6 projects. Web mvc Web services Business DAL Entities Infrastructure The infrastructure one has added a dll in several others of System.Web.Mvc Business uses infrastructure therefore has the dll as a reference. In the...
asked by 20.09.2017 / 23:43
1
answer

Doubts about the lists in asp.net mvc

Good I am new in ASP.net in which I am focusing in the MVC. Here I show the following code. public class ClientesController : Controller { public List<Cliente> clientes = new List<Cliente>(); // GET: Cliente public Ac...
asked by 24.09.2017 / 18:39
2
answers

Error adding values of a Foreach in MVC3 view C #

Currently I have an error adding some values of a foreach, the view is of extension .cshtml razor in C #, the code is as follows: <div class="panel panel-primary"> <!-- Default panel contents --> <d...
asked by 17.09.2017 / 23:56
1
answer

when executing the index generates this error

when executing the index it generates this error I am working with entity framework 6 my web.config <basicHttpBinding> <binding name="bsBinding" maxBufferPoolSize="214748647" maxBufferSize="214748647" maxReceivedMessageSi...
asked by 12.09.2017 / 00:02
2
answers

Display data from 1 table and its relationship with another MVC

Good day mates I have this Action Result in the controller Products that looks for all the products of a certain IdEntrega and I send it to call from the Delivery view to know all the products of that delivery and it works well but now I need th...
asked by 28.08.2017 / 16:20
2
answers

Modify queries made by the scaffolding first database

I tell you a bit about my problem. By my boss's requirements I had to make an application using the first database technique and then use scaffolding (which I do not like). I was used to doing linq queries and calling them in my controller, n...
asked by 17.07.2017 / 17:47