Questions tagged as 'asp.net-mvc'

1
answer

Access a model from the controller of a ViewModel

I am using ASP.NET MVC4 and I find it difficult to bring data stored in the tables in the database. I understand that there are some clauses ToList() that could list the data, but currently the methods I use always return me null...
asked by 02.05.2017 / 17:42
1
answer

Implement DataTables.net

I am implementing DataTables.net but it is not doing the paging, I am working with ASP.NET MVC 5, the code I handle is as follows. @{ ViewBag.Title = "Proveedor"; } <h2>Proveedor</h2> <html xmlns="http://www.w3.org/1999/xhtml"&...
asked by 14.02.2017 / 19:39
1
answer

Lost of validationsummary when doing RedirectToAction

Good day. my question is this, what happens is that I have a model like this: public class RegistroUsuarioDto { public int Id { get; set; } [Required(ErrorMessage = "Este campo no puede estar vacio!!!")] [Display(Name ="No. Do...
asked by 25.09.2016 / 07:15
1
answer

How to add data in an additional row on a table in reportviewer? In C # MVC

For example, I have in reportviewer in a table that I show the following data, grouped by account: But it turns out, that for each account (n accounts), above the row where the name of the account is n °, I want to add a row with a data of...
asked by 25.09.2016 / 03:45
2
answers

What is the correct way to implement WCF?

I have doubts about the WCF at the time of its implementation that it would be appropriate to create WSDL for each entity that has the exampleServiceService a WSDL in which usually carries the CRUD methods or a single WSDL that is named for exam...
asked by 30.08.2016 / 08:35
1
answer

I need to Refresh a View When using onchage in a select. in MVC 4 razor C #

I have a problem with the use of a select class="selection-box large-select" name="drop" id="drop"onchange="rut()"> which I am using it to send its value to a [HttpPost] public ActionResult MiPerfil(string pRutIn) { pFecha...
asked by 16.09.2016 / 19:43
1
answer

How to make a post request in an MVC application to make an integration to a web services?

// // GET: /Asientos/Create public ActionResult Create() { return View(); } // // POST: /Asientos/Create [HttpPost] [ValidateAntiForgeryToken] public ActionResult Create(Asientos asientos) {...
asked by 05.08.2016 / 16:05
1
answer

Use unresolved unity

I would like to know if there is any way to use unity with the configuration of its records in an external library and this is added to my web project or console, and when the project controllers receive an interface as parameters are resolved....
asked by 16.05.2016 / 21:20
2
answers

Register a ModelBinderProvider with Autofac in ASP.NET MVC

For an ASP.NET MVC5 application I have created a ModelBinderProvider for a certain type of data. If I add the new ModelBinderProvider to the BinderProviders collection in the Global.asax it works perfectly. ModelBinderProviders.BinderProvid...
asked by 13.05.2016 / 09:35
1
answer

Record data from a Partial View (popup)

I work with ASP.NET MVC 5, I have a partial view which when I press the Save button should persist the data in the db and go to the Index but it is not registering the data. I show code. CONTROLLER public ActionResult CreatePV() {...
asked by 23.02.2017 / 20:07