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

2
answers

Ajax always falls into 'error' even when successful (C # MVC5)

Come on. I have the following method: C # [HttpPost] [AllowAnonymous] public JsonResult PostOnCRM(string textBoxFirstName, string textBoxCountry, string textBoxLastName, string textBoxEmail, string textBoxTitle, string textBox...
asked by 12.10.2016 / 19:23
1
answer

ModelState.IsValid in register within modal

I'm using a registration form within a modal , however when the condition of ModelState.IsValid is not satisfied the view is returned. But instead of returning the same view before the submission action of the form, it...
asked by 15.07.2016 / 19:40
1
answer

Action is not receiving the value of the parameter

In the code below I'm trying to pass a parameter to an Action. The action is being called and the value of the parameter is also being assigned to Url. However Action takes Null, not the parameter value. @using (Html.BeginForm("Buscar", "Terap...
asked by 06.11.2015 / 12:43
2
answers

ASP.NET MVC 5 runs on IIS 7.5 Windows Server 2008?

I have a website that is developed in ASP.NET Framework 4.5 MVC 5 and is not opening in IIS 7.5 Windows Server 2008, but in IIS Express Local 7 of Windows 7 opens normal. Is there anything to install in IIS?     
asked by 14.07.2015 / 15:08
1
answer

How to fix the System.Collections.Generic.IEnumerable error

My application that manages Courses has this error The template item passed to the dictionary is of type 'System.Collections.Generic.List'1 [MyProject.Models.Course] ", but this dictionary requires a model item of type 'System.Collections.Gen...
asked by 27.06.2015 / 19:28
2
answers

How to pass a variable in a JavaScript function by onclick razor?

I have a series of fields that I need to send from tag Razor to a JavaScript function @Html.ActionLink("Enviar", "ActionName", null, new { onclick = String.Format("envia_pessoa({0}, '{1}', '{2}', '{3}', '{4}', '{5}', '{6}'...
asked by 07.06.2015 / 01:26
1
answer

SMS not received

I'm trying to learn how to tinker with twilio by applying it to a same test project in ASP.NET MVC 5. In the middle of my Google dig, I found this tutorial here that explains how to use it. I did everything according to what is in this...
asked by 16.03.2015 / 22:59
2
answers

Add new Controller

When I add a new Controller to my project using the MVC 5 Controller with views, using Entity Framework option I'm having the error there was an error running the selected code generator , depending on the image.     
asked by 09.01.2015 / 18:50
1
answer

How to save only two information

I have a new business rule in my project. I need a details view, so I have a small form to save only two information: Delay and No Uniform. I already have the table made. But I needed this form to save only those two information, not the e...
asked by 31.12.2014 / 00:39
1
answer

Edit Signed that contains image

I have my model: public class Produto { public int Id {get;set;} public string Nome {get;set;} public byte[] Imagem {get;set;} } How do I deal with it if it is "removing" or is it Editing (Replacing) the Product image? In my View:...
asked by 19.11.2014 / 20:21