Questions tagged as 'asp.net-mvc'

1
answer

Better options for SESSION?

I've always heard a lot of people say that SESSION is non-performance and that it was not advisable to use SESSION in .NET applications, but so far I have not found anything I can use in place of SESSION. What could I use instead of the SESSI...
asked by 18.04.2017 / 18:39
0
answers

Value shown in production other than development

I have an application in ASP.NET MVC with the Entity Framework with an Oracle database, and it is showing some wrong data, and this happens only in production, in Debug (locally) the data is brought right . This data is written from another s...
asked by 05.04.2017 / 14:38
0
answers

Oauth in Azure does not open

I'm working with the Google Drive API, and on localhost the Consent screen - one that allows you to make changes and view your data - usually opens in a new browser tab. But when uploading the project to Azure when I click the button that ope...
asked by 28.03.2017 / 19:40
1
answer

PagSeguro Notification API receiving error 403

Hello, I'm integrating the PagSeguro API transparently and in the Sandbox environment, when I make a change in the Transaction Status in the PagSeguro panel, their system sends a request, but in the status http received, from 403 (prohibited)....
asked by 24.03.2017 / 19:29
1
answer

Make function wait for variable to be generated

I have the following code: XmlParaApi = xml; which passes a string variable (xml) to a global string variable (XmlParaApi). Until then all this code is in an Api, since my problem is with the code below: string XmlApi = XmlApi.XmlParaApi...
asked by 20.03.2017 / 17:54
1
answer

If using load

I have the following function in javascript: $(document).ready(function () { Eventos(); $('[name="dtd1nrob"]').change(function () { BloquearQuestao(); }); }); function Eventos() { BloquearQuestao(true); }; function Blo...
asked by 09.03.2017 / 15:46
1
answer

Angle POST for ASP.MVC

I need to do a POST after a click of a button, so that this POST activates a method in an MVC controller, was testing like this: [HttpPost] public void GerarPDF() { string teste = "teste"; } The name of the Controller is ItemController,...
asked by 13.03.2017 / 16:23
1
answer

Associative Table of Companies and Users, Many for Many

I'm starting my studies in ASP.NET and I'm having a hard time making a link between 2 tables of the Many to Many type. Next I have 2 tables: Company and User, so that a company can have multiple users and at the same time a user can belong to...
asked by 04.03.2017 / 14:55
0
answers

ValidationSummary Validation in a modal receive Json message

My application has a View Create that is opened via a modal and the Controller that was an ActionResult is a JsonResult returning then Json after the request [HttpPost] .    The Required DataAnnotations of fields work perfectly. Bu...
asked by 05.03.2017 / 03:26
2
answers

Split String Html

Personal I have an HTML with the following code: <div class="page"> ...Conteúdo1 </div> <div class="page"> ...Conteúdo2 </div> <div class="page"> ...Conteúdo3 </div> The "page" class it creates a backgr...
asked by 17.03.2017 / 14:31