Posts by Claudio Neto • 108 points
10 posts
-
2
votes2
answers108
viewsQ: Check if call came from API (.Net Core) or MVC
I have some applications that need to share the same Repository (Class Library). The Repository project is created and working, with MVC applications. The problem is that it searches for the…
-
0
votes1
answer102
viewsA: MVC5 + Entity Framework + Form + Modal
public PartialViewResult Editar(int id) { var context = new Entities(); int codEps = GetUsuarioLogado().CodEmpresa; if (id == 0) return PartialView(new FORMATO() { ATIVO = false }); var formato =…
-
0
votes1
answer102
viewsQ: MVC5 + Entity Framework + Form + Modal
I have an application where there is a central entity and several other auxiliary registers, such as Status, Format, Type, etc. All these auxiliary entities have only 2 fields: Name and Status…
-
0
votes1
answer47
viewsA: Elements that return to original size when clicked again or when a brother element is clicked
The click event is on the line (<tr>) and you can catch all siblings of the clicked element to restore height. Then increase the height of the clicked element. Bootply with the test:…
-
1
votes2
answers83
viewsA: ASP.NET MVC 5, I can’t bring set when I edit
Another way is to use Dropdownlistfor. @Html.DropDownListFor(model => model.UsuarioId, new SelectList(ViewBag.Usuarios, "UsuarioId", "Nome")) You speak which property of your model should be used…
-
0
votes0
answers94
viewsQ: Entity Framework (Database first) - Include Dataannotations
I saw in an MS link that it is possible to create a partial class and a Metadata class to include Dataannotations in properties created by the Entity Framework (database first). Well, I did as it is…
-
0
votes1
answer250
viewsQ: MVC Bundle altering css content - Font Awesome
I have a problem with Bundle ASP.NET MVC. When I run the local application, the Fontawesome icons are rendered perfectly. Even when I enable the Bundle local. However, when I publish the application…
-
1
votes1
answer93
viewsQ: Transactionscope with multiple Storedprocedures
I’m thinking of implementing TransactionScope in my code, however, all bank access is made by StoredProcedures. The TransactionScope can give rollback in multiple actions carried out in…
-
1
votes1
answer69
viewsA: Bootstrap Collapse depending on value
I managed to solve it! Bootstrap has some methods that show or hide Collapse: .collapse('show/hide/toggle')
-
3
votes1
answer69
viewsQ: Bootstrap Collapse depending on value
I have a table, with some lines "collapsed" and all checkbox, for selection. I’m using the data-toggle="Collapse", but it’s not helping me very well. What I need is: Click on the "Select All"…