Questions tagged as 'asp.net-mvc'

1
answer

Doubt with HandleError asp.net mvc

I'm looking for a way to avoid an error message when the user happens to enter a page that needs a parameter: namespace Projeto.WEB.Controllers { public class ModalidadeController : Controller { // GET: Modalidade publi...
asked by 29.07.2016 / 22:39
1
answer

Problem with Charset between Asp.Net MVC with Entity Framework and SQL Server

I have a problem that all the values that come from the SQL Server database, are with accent problem. When they are direct written words in HTML , it does not give this problem. What is strange is that the words are written corre...
asked by 19.07.2016 / 15:38
1
answer

ASP.NET MVC Default Page

Personally I have an ASP.NET MVC application with FormsAutentication and I'm having a hard time leaving a controller as the home page. I already released it in web.config , but it still does not work. The controller is called a...
asked by 15.07.2016 / 19:34
1
answer

@ Html.Action in _Shared error while sending a ViewModel by Controller

In my _Shared I have a PartialView call _rodape.cshtml but now it will need to receive a ViewModel Since I do not want to create an Action on each Controller , I thought about creating a Controller named _Rodape , a...
asked by 18.07.2016 / 14:32
0
answers

Error connecting to PostgreSQL

I'm having trouble connecting an Asp.Net MVC application with PostgreSQL (locaweb). error:    28000: no pg_hba.conf entry for host "187.52.54.50", user   "dataportal", database "template1", SSL off Database: dataport. But it always...
asked by 09.08.2016 / 00:53
2
answers

Getting record id

I have a table with several records and a delete link, how do I, when I click on this link, pass the value of the record id I want to delete? Code of my view: @model IList<Financas.Entidades.Usuario> @Html.ActionLink("Novo Usuário", "Fo...
asked by 21.06.2016 / 04:05
1
answer

MVC - Store user permissions on session using NLB - Network Load Balancing

We are developing an application (intranet) in MVC 4 where authentication is performed through Windows Authentication. When the user logs in to the application, a call is made to a service that controls the user's permissions on that module,...
asked by 25.07.2016 / 21:55
1
answer

Enable iframe in asp.net application

I have an asp.net application and need to place it inside an Iframe. It turns out to be wrong on the Chrome console: Refused to display 'domain' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'. In mozilla it does not give err...
asked by 03.06.2016 / 22:34
1
answer

Error of ambiguity after changing resource (ASP.NET)

I'm working on an ASP.NET MVC project for months. It is a system available in English and Portuguese, with English being the default language. I do this through the use of Resources, and it worked fine, see image below. However,nowwhentrying...
asked by 16.06.2016 / 14:02
1
answer

Passing as a parameter a generic type in an attribute in the .NET MVC

In another question I made here I had to modify my authentication class to return the values of the user model and the type of authenticated user, eg admins, users, clients , so I had to implement a generic type of the call, and a new interfac...
asked by 29.06.2016 / 17:18