Questions tagged as 'asp.net-mvc'

5
answers

How to solve accentuation problems with ASP.NET MVC?

I'm having problems with accentuation in ASP.NET MVC 5. I'm using Visual Studio 2013 Professional and the .Net 4.5 application. SQL Server 2008 and Entity Framework 6. The browser is Google Chrome upgraded and Windows is 8.1. Example: W...
asked by 03.03.2014 / 00:22
0
answers

Redirect Page in response AJAX in Asp.net Mvc

I'm having problems redirecting a page, in response to my Ajax, when I'm in FireFox in debug mode, I can redirect, without Debug the page only of a refresh, tried other redirects also failed, only works with Debug open, loading the page the requ...
asked by 02.02.2017 / 19:27
2
answers

Problems with MVC routes ASP.Net

I have a problem with routes in MVC. routes.MapRoute( name: "Default", url: "{controller}/{id}", defaults: new { controller = "Login", action = "Index", id = UrlParameter.Optional } ); This route, for my pages, works (because I...
asked by 23.02.2017 / 20:20
1
answer

Insert only items in a DropDownList that have already been used in the master data?

I would like to insert in the DropDownList only the sectors that have already been used in the contact register. In my ContatosController no ActionResult in method Index I did this, but the problem that is happenin...
asked by 29.01.2017 / 14:14
1
answer

Working with Currency (decimal)

I'm working on a project where I had to use decimal for Currency field. As the American standard and different from the Brazilian soon had some difficulties. I found some examples of how to deal with it, but I did not get much succe...
asked by 08.11.2014 / 03:18
0
answers

How to customize the message / return code Http of an expired / invalid token in Web Api 2 + Owin?

When my token expires and becomes invalid, I get a 404 (Not found) error return, but the truth is that it should be a 401 (Unauthorized). The problem is that I do not know how to customize this. I'm using Asp.Net Web Api 2 with Owin. public cl...
asked by 01.02.2017 / 21:44
0
answers

P: messages duplicating JSF PrimeFaces messages

Problems with duplication of messages in the p: messages of PrimeFaces. In the application I call this method just to insert the message. Here is the code: public class FacesUtil { public static boolean isPostback() { return Fa...
asked by 29.12.2016 / 23:01
1
answer

Modal Bootstrap being closed

I have the following scenario: a link that opens a modal. <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-...
asked by 27.12.2016 / 18:10
0
answers

Error in use of Asynchronous Action (Async)

This action should send an email Asynchronously, everything very simple until then, even use the same class in other projects with the same version of MVC. But to my surprise, this project does not work. You simply see the error below. Error:...
asked by 19.01.2017 / 02:58
1
answer

Ignore fields to validate using jquery.validate.1.8.1

I have a project in the company where I'm interning and I've had some mistakes in validating some inputs. I use ASP.NET MVC, Razor, and Javascript. At the time of submitting all the fields I get an error. When using the Chrome console I discover...
asked by 18.01.2017 / 20:46