Questions tagged as 'asp.net-mvc'

1
answer

send the selected option value of the view to the MVC controller

when you press any of these two tabs <li class="active"><a data-toggle="tab" href="#Saldos">Saldos</a></li> <li><a data-toggle="tab" href="#resumen">Resumen</a></li></ul> I want you to s...
asked by 14.11.2017 / 16:48
2
answers

Pass group of checks from a view to a contractor as a list or as a list, using a complex model c #

Greetings The issue is that I have a complex model which I am invoking data from 2 normal models to take it to the screen and create a screen with multiple check with the intention of saving them using an ActionResult Here is the complex mode...
asked by 14.11.2017 / 21:18
0
answers

Connection of a websocket is not kept open in MVC

I'm trying to create an application that uses websockets for various purposes. At the time, I started developing a chat that is the most common example and I require it for a small inter-institutional help chat, among other things that I plan...
asked by 31.10.2017 / 19:55
1
answer

Filter records with dropdownlist

Good morning comrades I am trying to filter the records by means of a dropdownlist but at the moment of clicking the button it only refreshes the page but does not do any search. controller public ViewResult Index(string estado, int? pa...
asked by 03.11.2017 / 19:02
1
answer

Search by numeric value sql net mvc2

I must filter the data by the address table data, it works fine with string but with int no. public ActionResult Buscar(string palabra) { IEnumerable<domicilio> domicilios; using (var bd = new serviexpres...
asked by 27.10.2017 / 20:58
1
answer

Problem with Ajax.BeginForm within a Bootstrap accordion

At the time of adding the Ajax.BeginForm inside the for it stops working the accordion that contains them. <div class="panel-group" id="accordion"> <!----> @for (int i = 1; i < 7; i+...
asked by 30.10.2017 / 19:48
0
answers

Problem Authorize MVC

My problem is that for some reason the Authorize takes a cookie that is deleted and allows me to put post get whatever is unloved using that same cookie from postman. I leave the code of login, logout and authentication <authentication...
asked by 02.11.2017 / 17:13
1
answer

Bootstrap 3 Datepicker first day of the month

I am using the bootstrap3 DataPicker, but I have not been able to set it to start on the 1st of the current month, I have tried many forms, here below one of them. Has anyone done it? $(function() { $("#date_id").datepicker({ firstDay: 1 })...
asked by 23.10.2017 / 21:50
1
answer

How to display data for various models in Details view using ASP.NET MVC5

Greetings, I have a question about how to send or show the data of a table that is related to another, in this case a table Areas contains a department id to which it belongs, but I need to show in the view the name of the department Not the Id,...
asked by 12.10.2017 / 08:01
0
answers

MVC DropDownList retrieve model data

I'm trying to set the selected value of a dropdownlist from the database information. I load a list from the controller: public void cargarMotivosFinalizacion() { ViewBag.motivosFinalizacion = db.SFI_AtributosDbSet.Where (x => x....
asked by 08.10.2017 / 06:18