Posts by Master JR • 1,853 points
173 posts
-
2
votes3
answers86
viewsQ: How to position the Text of a span below a Spinner
How do I position a centralized tag text below the spinner? It is positioned at the top left corner of the page... Thank you and a hug to all! <div id="cover-spin">…
-
2
votes0
answers133
viewsQ: How to read a text file on the INFRA.DATA layer of an Asp.net Core - C#
In the Infra.Data layer, I configured the properties of a csv file to be copied to the output directory of the "bin" folder and I would like to read it using the Streamreader class. After being…
-
0
votes1
answer72
viewsQ: In which (is) layer(s) of a DDD project should I implement a Import/Export text files and reports feature
I have a C# project using the DDD + EF Core standard, based on a very good Eduardo Pires project: insert link description here I need to implement two resources: Import/Export (TXT, CSV, DOC,…
-
1
votes1
answer243
viewsQ: Problems passing 3 parameters via AJAX request -Asp.net Core MVC
I need to pass 3 parameters to my controller, but the values are not enough: Personal Contact Personal Modelcontact Contact Information: Complex parameter (class with properties); int…
-
0
votes0
answers76
viewsQ: Checkbox does not send "False" value when performed Submit - Asp.net MVC
I have a mvc project in Asp.net core and I’m having problems performing a Submit. Well I "Seto" the properties of my Personal Model. return new PessoaContatoCorreioEletronicoViewModel {…
-
0
votes1
answer28
viewsQ: Problems when performing a MODEL POST with AJAX on ASP.NET CORE MVC
I’m having trouble doing a post of a complex template using AJAX on Asp.net. Modelhave some properties that represent other Models, but at the moment, I just need to initialize them with NULL. I…
-
1
votes1
answer80
viewsQ: I can’t make a Dropdown change event work - JS and Asp.Net
I have a custom Combobox and inside it a button with menus and submenus. When I click on an element of the tag (For example, an email) it should use the change event and capture the data-id content…
-
1
votes1
answer259
viewsQ: Problems with closing and opening Modals Bootstrap - Asp.net MVC windows
I created two types of modal windows to dynamically open Partialviews: modalGenerica (open large windows) and modalGenericaPequena (open small windows). When I open the two overlapping windows…
-
2
votes1
answer1326
viewsQ: How to validate a field To accept only Letters/Numbers using Regex
I am creating validations for every Property of my classes. I am using a component called AbstractValidator. Example: protected void ValidarChamadaTipo() { RuleFor(p => p.ChamadaTipo)…
-
0
votes1
answer126
viewsQ: How to convert from List<> to Ilist<> using Automapper?
I need to convert a List to Ilist with automapper knowing that both are in different classes and one of them has a constructor. Is that possible? I’m using the Automapper 6.2.2. public class Pessoa…
-
1
votes2
answers130
viewsQ: Problems loading cascaded dropdownlist whose field is created dynamically - Asp.net MVC
I’m having trouble loading a DROPDOWNLIST that is dynamically created. When selecting a CONTACT FORM, I need the dropdownlist CONTACT TYPE to be loaded with the related options. The problem is that…
-
2
votes1
answer223
viewsQ: Problems loading Dropdownlist in cascade - Asp.net Core MVC
I have two combobox in which the second has a cascade load that is, when I select something in the first, a query is made in the database and the data must fill in the second... My controller seems…
-
0
votes1
answer713
viewsQ: How to remove edges and make the background of a Modal window transparent
I have a modal window that displays a Spinner to indicate the loading of a page. The problem is this modal needs to be without the edges and with transparent background. Someone knows how to help…
-
0
votes1
answer571
viewsQ: How to load a Spinner into a Modal during Ajax (GET) - Asp.net requests
I have a Page Index with a Grid that lists CEPS. I am using "Modals" windows to Edit, Delete and Create a new Record. When I click on the Edit button, there is a delay of about 3 seconds for the…
-
1
votes1
answer584
viewsQ: How to delete multiple selected records in a Datatable Bootstrap using Javascript - Asp.net
In my Index I have a Table (Datatable Bootstrap) that allows me to select as many Rows as desired. The datatable lines are loaded dynamically using JS. Each Line stores the Registry Id:…
-
1
votes2
answers380
viewsQ: How to filter records by date using SQL
I am using SQL Server and need to query in a table the most recent price record as the date. Of all the records, I need him to bring me only 1 and with the current date. How do I do this?…
-
1
votes1
answer198
viewsQ: How to disable ZIP Mask to save only Typed numbers when performing a Post - Asp.net MVC
I’m using a Remark component that has a data-plugin="formatter" where it applies a CEP mask to field. The field has a size of 8 characters, but the mask has 9 because of the "-" (Ex: 29780-000).…
-
0
votes1
answer37
viewsQ: How to configure the Incrementby of a Postgre Id field using the Entity Framework Core
I have a table mapped for Postgre, but when I update the database, the Personal Fieldphysicaenderecotipoid is being auto-incremented by 10 in 10 (by default). How do I map so that Incrementby is set…
-
2
votes1
answer169
viewsQ: How to have two checkbox components inside a Row with a title
I’m a beginner in HTML/CSS/Bootstrap and I have a question about how to put two checkbox components in some type of container with a title. Am I doing it the right way or is there a better way to do…
-
0
votes0
answers31
viewsQ: Component switchery does not work on a Partialview - Asp.Net MVC
I am having problems with data-plugin switchery (Remark bootstrap component) that does not want to work in partialviews. The interesting thing is that if it stays inside a normal view, it works…
-
0
votes0
answers209
viewsQ: Assembly reference error in Asp.net MVC
I have a DDD project on VS 2017 and Asp.Net MVC, using SDK 2.1.201. I formatted my computer and installed again VS 2017 and SDK 2.1.201... only when I open the project, it gives compilation error in…
-
0
votes1
answer142
viewsQ: How to set the Index of a List to start at 1 instead of 0 when populated
Whenever I populate a list in C#, as in the example below, as I add items, they are arranged starting at position 0 in index. If I add 5 items to my list, I will have the positions 0, 1, 2, 3 and 4.…
-
1
votes1
answer70
viewsQ: How to pass a parameter together with the Model to a Partialview when rendering it
To create some fields dynamically, I’m using a render and render. When calling Partial _Contact, I would like to pass the [i] value of the for index to sort the fields. It is not working... You’re…
-
0
votes1
answer33
viewsQ: How to update the Index of a field using Javascript in Asp.net MVC
I’m creating fields dynamically based on a List. When I remove a field, I need to reorder them using javascript, but I am facing problems, because all fields are reordered Indexes, except those that…
-
0
votes1
answer268
viewsQ: Binding a checkbox with Viewmodel without the use of Razor (Asp.net core MVC)
I’m having problems with Razor... I need to create a checkbox field and Binding with my viewModel using pure html. Only I’m not being able to do the Binding correctly with the bool property and even…
-
1
votes2
answers350
viewsQ: How to configure Postgresql Autoincrement using EF Core
I have a table mapping (Entity Framework Core 2.0) in which the Id field needs to be Autoincrement. The problem is that Postgresql is starting with high value and often jumps to very high sequences,…
-
0
votes1
answer89
viewsQ: How to send two integer parameters to an Asp.net MVC Controller using Ajax
I have a composite key table (Personal and Professional). The Personal property is in a Hidden and Profioid is accumulated in a data-id. Stays two information must be passed to the controller so I…
-
0
votes0
answers47
viewsQ: Problems removing items from a List<Viewmodel> when Row is removed using Javascript
I have a contact list that is dynamically loaded using Razor and Javascript to remove lines and reorder field positions. The problem occurs when I click the delete log button and delete all contacts…
-
0
votes1
answer175
viewsQ: Name property does not work using Razor Hiddenfor
I am creating several fields dynamically using Asp.net Razor and for this I am passing the index to a partial view and setting the name property of each field. Everything is working fine with all…
-
0
votes1
answer470
viewsQ: How to count the amount of input elements within a div
Using Asp.net MVC, I am creating one the inputs dynamically using a loop with the di database data. <div class="col-md-12" id="div-contatos"> @if (Model.PessoasContatosViewModel != null) {…
-
7
votes1
answer773
viewsQ: How to map two LIST properties using the Automapper
Registernewpessoacommand class public class RegisterNewPessoaCommand { public RegisterNewPessoaCommand(PessoaNatureza pessoaNatureza, PessoaFisica pessoaFisica, PessoaJuridica pessoaJuridica,…
-
2
votes1
answer58
viewsQ: How to create an index for viewmodel fields to be added dynamically
I am creating some fields dynamically in Asp.net core mvc to register a contact. For this, I use a partialview. Inside a div I’m adding each Row of Fields, as the user clicks on the Add New Contact…
-
1
votes1
answer363
viewsQ: How to add fields dynamically and link them to viewmodel in Asp.Net
I have a 1:N relationship between Person and Contact. In my view, I can list all the contacts of a customer when it is opened. I need to implement the "New Contact" button so that when clicked,…
-
0
votes1
answer323
viewsQ: How to load viewmodel fields dynamically into Asp.net core mvc
I have a 1:N relationship between the Person and Contacts classes. In my Edit view, I receive a viewmodel containing a contact list. In my View, I’ve made a single for which you should scroll…
-
0
votes1
answer176
viewsQ: How to align a button vertically on a Row
I’m not able to vertically align a button inside a Row. I’ve tried to insert a label to force it down, but it doesn’t even move. input[type="text"], select { /*font-size: 13px;*/ } .selectClass {…
-
3
votes2
answers593
viewsQ: Aligning a checkbox component vertically in the center of Row
How do I align a check box vertically in the center of Row? My project is Asp.net core mvc. input[type="text"], select { /*font-size: 13px;*/ } .selectClass { /*font-size: 13px;*/ } label {…
-
0
votes2
answers96
viewsQ: Change a Generic Repository method to return with Asnotracking - EF Core
I have a generic repository, in particular the method GetbyId, in which I wish to change it to return a result with AsNoTracking or not as needed. How do I do this? My Interface: TEntity GetById(int…
-
1
votes1
answer118
viewsQ: Map a table and enable Auto-increment of a FK field in Postgre using EF Core and Fluent Api
I am unable to activate the Auto_increment of the Contactotype field in Postgre. In the table mapping I specified the "Valuegeneratedonadd" resource, but when I update the database with Migrations,…
-
0
votes1
answer65
viewsQ: Where it doesn’t work when listing all records - Entity Framework
I need to return all records containing the branch informed using the clause where, only that the Entity Framework is returning all records ignoring what is in the where. Where am I going wrong?…
-
1
votes1
answer192
viewsQ: How to implement a Person repository function for the Generic - Asp.net MVC and EF Core repository
I have a function to return the highest value of a table ID field using EF Core. Only that I would like to implement it in my generic repository to be dynamic and to be used by all classes. How do I…
-
0
votes1
answer90
viewsQ: How to reduce TABS spacing with view corners using CSS - Asp.Net MVC
When I insert a tab into my view, there is a very exaggerated spacing with the edges of the page inside the modal. I’m using a framework called Remark, but I believe it can be solved with CSS. Does…
-
0
votes1
answer487
viewsQ: Make the Bootstrap modal Footer display the vertically aligned buttons at the bottom - Asp.net MVC
I have a modal window that is generic and is used to perform CRUD operations. I have a grouping of buttons that need to be aligned to the left and should always be glued to the bottom of the modal,…
-
0
votes2
answers4843
views -
0
votes0
answers216
viewsQ: Position the vertical scrollbar on the body (below the header) of a Modal Bootstrap window
I have a modal window and every time the view expands, it self-adjusting and creating a vertical scrollbar and including Header. It is possible to make this vertical scroll bar not include Header…
-
1
votes1
answer70
viewsQ: How to disable Validations when doing a Submit in the Dropdown Change event
I have a modal with a dropdown, where, whenever an option is selected, a Ubmit is made and the model is sent to the action to be edited and then returned. The problem is that Validations get in the…
-
2
votes2
answers74
viewsQ: Questions about ID in the register of a web system
I’m developing a commercial web app and I come from the world of desktop apps. I noticed that in most commercial app sites are ignored the Ids or codes of customer registration. Of course in the…
-
0
votes1
answer649
viewsQ: Change a JS Function to open two different Modal Bootstrap Windows - Asp.Net Core MVC
Currently, I have a Modal (modalGenerica) in my Index that opens the Create, Edit and Delete views in a generic way. To open the Create and Edit views, there is no problem, as both open in a modal…
-
0
votes1
answer491
viewsQ: How to display messages (Summay) to the user in the Index view
I have a View Index and via the Create view is opened in a modal form from it. When I open the Create modal, I fill in the fields and click on the save button the modal remains open and Summary…
-
0
votes1
answer122
viewsQ: Error while Updating using Entityframework Core
I have a layered project using DDD and am having trouble updating a record of my Personal class. public Task Handle(UpdatePessoaSituacaoCommand message, CancellationToken cancellationToken) { if…
-
1
votes1
answer1289
viewsQ: Vertically align data from a line into a datatable
I have a Datatable where Header is built using HTML and lines are loaded and built using Javascript. If you observe in the image, the "Actions" column has a group of buttons that are aligned…