Questions tagged as 'asp.net-mvc'

1
answer

How to avoid request blocking?

I'm doing a project in ASP.NET MVC + IIS and I realized that when I made a request to a page with a long read in the database Entity Framework ), if I open another window and try to access another page of the site (the Home for example, wh...
asked by 21.04.2017 / 17:36
1
answer

Unique authentication for multiple projects using Entity Framework

Currently in my solution I have several ASP.NET web projects, each with the default default authentication code of the MVC entity framework (there are small customizations in entities only). The projects share the same entities and the same data...
asked by 19.04.2017 / 18:19
1
answer

Error logging into applications

Well, the scenario is as follows: I have 2 applications ASP.NET MVC in a same project, which is using a Dominio in common. I'll call MVC1 and MVC2 to get better at the sample. I've installed Identity ,...
asked by 15.12.2016 / 05:06
1
answer

Creation of anonymous vs. "named (?) objects"

I have a class that loga some information in the database I am using it as follows: new StudyLogRepository().Create(new StudyLog() { StudyId = Study.Id, CycleId = null, DateOccurrence = DateTime.Now, CycleActionName = "Nova estud...
asked by 08.05.2017 / 19:06
1
answer

Get specific login data via facebook

I'm looking to implement authentication via facebook . Where I want to get more public data. I already have the default authentication set up. But I need something more, because it just brings me the Email. I'm basing some answers o...
asked by 24.01.2017 / 14:18
1
answer

Error in TransactionScope

I'm trying to make a TransactionScope but it always gives me an error:    Application Server Error '/'.       A second operation started on this context before a previous   asynchronous operation completed. Use 'await' to ensure that a...
asked by 08.05.2017 / 06:04
1
answer

With export HTML string to PDF Compressed (zip)

I have this string: <HTML><HEAD></HEAD><body><FORM method="post"><table><tr><td>Nome:</td><td>JOÃO DA SILVA</td></tr><tr><td>NOME:</td><td>MARCOS...
asked by 27.05.2017 / 19:56
1
answer

Generate more than one PDF in memory and export it in a compressed file

Currently the code below exports and compacts the PDF one at a time and I need to export multiple PDF into a compressed file public ActionResult PDFTodosMesAtual(ProcessamentoRegistros _processamento) { try {...
asked by 31.05.2017 / 12:35
1
answer

What am I doing with this method?

I have the following method: [HttpPost] [ValidateAntiForgeryToken] public async Task<ActionResult> Criar([Bind(Include = "CategoriaId,Nome")] Categoria categoria) { if (ModelState.IsValid) { categoria.CategoriaId = Guid.N...
asked by 30.11.2016 / 20:25
1
answer

Activate an input field according to an enum

I have an enum of schooling if in case the user select the level of schooling as incomplete Superior or complete I want to appear a field to enter what is the course How can I do this? <div class="panel panel-default">...
asked by 05.06.2017 / 05:39