Posts by Marcos Costa • 193 points
14 posts
-
0
votes3
answers35
viewsA: Instance of a certain type cannot be traced because another instance with the same key value for {'ID'} is already being tracked
Tracking (Tracking) happens whenever you make a database query by one or more entities. Tracking helps the Entity framework realize the change of an object before it goes into the database. It fires…
-
0
votes1
answer24
viewsA: Find Normalizedusername of Identity . NET core on the Azor pages
You have the option to inject Usermanager into your controller, and capture user information using _userManager.GetUserAsync(User); and sending to your view on an object or filling your Viewmodel…
-
0
votes2
answers224
viewsA: Exception treatment not working
To create an Exception Middleware, I’m using this treatment here Create a middleware class public class ErrorHandlingMiddleware { private readonly RequestDelegate next; public…
-
2
votes2
answers92
viewsA: Calling the Javascript function with just one click
You can add several listetiner Vent to a button (or any element) with different functions. btn.addEventListener("click",function(){ //seu primeiro codigo aqui })…
javascriptanswered Marcos Costa 193 -
0
votes2
answers350
viewsA: GET request with Angularjs
If you have passed your code through some transpilator, such as Babel, or minificador, you should always use the services declared in the creation of the controller. and Voce forgot, that first…
-
3
votes2
answers1921
viewsA: Create Reportviewer in Asp.Net MVC
you need to create a view like Reportview.ascx (that’s right, webform) and then you need to create a report view model, please take a look at. View: ReportViewer.ascx <%@ Control Language="C#"…
-
4
votes3
answers563
viewsQ: What does <!-- //--> mean in html / javascript?
I went through a problem where was presented a tag <script> and contained these HTML comment characters. Function example <html> <head> <script type="text/javascript">…
-
1
votes1
answer164
viewsA: Save a photo to Windows Phone Gallery?
This error happens when you do not give the permission of the application to access the image gallery. First, go on Propities > Wmappmanifest.xml If it is 8.1, you also have to enable in…
-
0
votes1
answer44
viewsA: Windows App Certification Kit 10.0 does not work
Guys, the mistake was in my machine. Anti-virus Comodo was blocking the certification process. Even with it totally disabled, I wasn’t able to do that step. So I had to uninstall it completely to do…
-
1
votes1
answer111
viewsQ: How to determine the time at which a background task will be performed
I am programming for Windows 10, and at a certain time in a day I want my background task to be faced. Here is my registration code: on the home screen: var trigger = new…
-
1
votes1
answer492
viewsA: How to get the neighborhood through geolocation?
You should use District for neighborhood and not Neighborhood, but it depends on the location. has places in the United States that it returns Neighborhood. I use it like this: Bairro =…
-
1
votes1
answer44
viewsQ: Windows App Certification Kit 10.0 does not work
I’m having a problem sending my Windows 10 app to the store. The tool that runs after giving the app deploy, gets stuck on "cut after Direct3d suspension" and "UTF 8 file encoding", someone has gone…
-
-1
votes1
answer1345
viewsA: Primeface uploadFile + graphicImage: Upload image and display without refresh
I in Html use jquery to do this in my HTML code I use: <div id="dvPreview"> <img src="" id="imagem" </div> <input type="file" id="upload" /> In the Javascript code on the page…
-
-2
votes1
answer85
viewsQ: Has anyone ever used Admob on Windows Phone 8.1 Silverlight and it worked?
I have an app completed and I would like to publish, but I’m afraid of having to redo the project on Windows Phone 8.0 Silverlight. I am currently having trouble in admob where the emulator works…