Questions tagged as 'asp.net-mvc-5'

1
answer

IndexOutOfRangeException

The error marks me when it enters the Reader of my while and causes "who" using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data; using System.Data.OleDb; namespace tts { public class conexi...
asked by 03.05.2017 / 14:17
0
answers

Web config multiples From

I am developing a program is asp.net mvc post, everything was fine until they asked to send a list of 100 recipient emails, but this is not possible because the server let send 20 maximum, my boss decided at the moment better was to create 5 acc...
asked by 17.04.2017 / 20:02
0
answers

Error with calculator operands

I have a program that takes two values and adds them. I have an error in the controller, it tells me that it can not be converted from int to string. in this line: int result = Logica.Calculadora.Sumar(model.operando1, model.operando2) . W...
asked by 09.05.2017 / 19:13
1
answer

How to call an action of a controller from the Layout? [closed]

I have a navbar in my layout, and my idea is to show a number that is the number of shipments (Model) that were made. The issue is that I do not know how I can call that action from my Layout. Thank you very much !! SharedFold...
asked by 26.04.2017 / 18:35
1
answer

How to get selected values in an ASP MVC ListBox?

Greetings, I have a problem with my code in Asp Mvc 5, I have several related models and I have a Listbox that filters the values of a foreign key, but when I try to save it, only a single value is saved, not all the selected ones, and that ulti...
asked by 06.03.2017 / 16:40
1
answer

jsonresult redirects me to page with only json

I have a question, I have this method in a view on asp.net MVC 5: $('#enviar-data').click(function () { //var formData = new FormData($('form')[0]); var form = $('#formx'); // console.log(formData); $.aja...
asked by 20.03.2017 / 00:44
1
answer

handle events in mvc5 for touch screens

I am in the need to develop an application that works in a totem: without keyboard, with touchscreen, which I plan to develop with ASP.net MVC 5 in .NET I have looked for information to handle events, but the truth is that I am half lost on t...
asked by 20.03.2017 / 14:19
1
answer

Echo in MVC ASP

Hi, I'm trying to call a controller method at a glance, this is working on MVC ASP. The detail is that I need what I have in that function to print it in the view; in PHP with just placing an echo after a function prints it to me, for example Ec...
asked by 06.02.2017 / 03:46
1
answer

There is no ViewData item of type 'IEnumerableSelectListItem' that has the key 'SearchToners'. But the DropDownList is NOT within the Form

I have this form: @using (Html.BeginForm("Create", "Equipments", FormMethod.Post, new { })) { @Html.AntiForgeryToken() @Html.HiddenFor(model => model.Parts) @Html.HiddenF...
asked by 05.01.2017 / 21:27
1
answer

How to load more than a partial view with a click event?

I know there are several ways to load a partial view with the event of a button, example: <script type="text/javascript"> $(document).ready(function() { $("#view1").click(function() { $("#ajaxpanel").load("<%=Url.Action("V...
asked by 02.12.2016 / 01:33