Questions tagged as 'asp.net-mvc'

1
answer

Summer time error in bootstrap-datepicker

The plugin stopped working with the start of DST in Brazil. When I disable the option on my machine ( Automatically adjust for daylight saving time ) the plugin works again. Code: $('.campodata').datetimepicker({ useSeconds: false,...
asked by 22.10.2014 / 20:25
1
answer

Know if a file is locked or not

How do I know if a file is locked or not? I have improved this code and would like to know if you are correct or better. Another question is if it is corrupted, is the verification below valid? public bool IsFileLocked(FileInfo file) { Fil...
asked by 05.11.2014 / 18:45
1
answer

Edit field within a list in ASP.NET MVC

Well, I'm developing an application that manages Courses , and I'm trying to list where the Courses displays, the Student Name > and the Approved field, where it indicates whether it is approved or not, and on this screen I have to be abl...
asked by 14.06.2015 / 06:12
1
answer

Refresh the page (View) automatically in Asp.Net MVC

Well, in my application that runs Courses , I have a sign up screen, where the student clicks the "enrollment" button and enrolls in the course. field number of vacancies is decremented. The problem is that my View does not update afte...
asked by 15.06.2015 / 18:39
1
answer

Problems with logic to bring data from a list or table

I made several posts here and solved almost every problem. However I understood that the problem was in the logic that I set up to bring the result. I know I'm asking a lot, but I'm trying and I realize there's something missing in me to solve t...
asked by 22.09.2014 / 21:15
1
answer

WEBAPI AND CERTIFICATE A3 - TOKEN

Is anyone here able to use A3 type certificate for a WEBAPI? Because when I test it in debug (ie, local), everything works normal. But if I compile, and put in the IIS application, it keeps returning to me that there is no certificate. Has an...
asked by 29.12.2015 / 14:28
0
answers

Views do not recognize @model, @ViewBag, @ViewData

I'm using Mono 5.10.1 and Visual Studio Professional for Mac (Version 7.5.4 build 3) Views do not recognize tags like @model, @ViewBag, and @ViewData, either in old projects that were originally created in Visual Studio 2017 Windows, or in a...
asked by 30.07.2018 / 14:18
1
answer

Contexts unique to authenticated users

Using the method recommended by @Gigano in this response ( Is it possible to leave connectionString dynamically? ), I was able to get a dynamic connection, and using the idea of mapping a context with the user data as the name of the bank, host,...
asked by 01.11.2016 / 19:18
1
answer

AutoMapper Entities ViewModel

I have a scenario where my context returns a query for two User and CardCreditoUsuario entities, according to the following scenario below. During automapper action in my ViewModel, it is not mapping the entity CardCreditoUsuario for its prope...
asked by 01.12.2016 / 22:42
0
answers

'The underlying provider failed on Open' C # ASP.net [closed]

I have an application that has 4 layers, which are as follows: Dominio, Infra, Servico, Web in the domain I have a folder named Poco with all my Classes/Tabelas , in Layer Infra , to test CodeFirst eu I created a...
asked by 21.10.2016 / 18:15