Posts by Matheus • 616 points
74 posts
-
0
votes0
answers123
viewsQ: Dependency Injection - Web Api
Good Afternoon, I’m trying to create the dependency injection in the Web Api, but I’m not getting it, I get the following error: SimpleInjector.DiagnosticVerificationException Hresult=0x80131500…
-
0
votes0
answers247
viewsQ: System.Missingmethodexception: No constructor without parameters has been defined for this object
I’m getting the following error: System.Missingmethodexception: No constructor without parameters has been defined for this object. My Controller: using BecomexTeste.Models; using…
-
1
votes0
answers100
viewsQ: Use 2 models in a View, but separate them in the form submission
I’m getting the following error: 'Addemployeeviewmodel' does not contain a Definition for 'Officeemployee' and no Extension method 'Officeemployee' Accepting a first argument of type…
-
1
votes1
answer645
viewsQ: Create Dropdownlist with Viewbag
I’m getting the following error: Invalidoperationexception: There is no Viewdata item of type 'Ienumerable' that has the key 'Office'. Here I search from the database: public…
-
0
votes0
answers441
viewsQ: Uncaught Typeerror: e.map is not a Function
I’m getting the following error, could help me ? Uncaught TypeError: e.map is not a function at t.setResources (scheduler.min.js:8) at scheduler.min.js:8 at scheduler.min.js:8 at cal-init.js:218 at…
-
0
votes1
answer332
views -
1
votes1
answer86
viewsQ: "Jsonresult" does not contain a constructor that accepts 0 arguments
I am trying to return a Jsonresult to my View, but it is returning the following error. "Jsonresult" does not contain a constructor that accepts 0 arguments You could help me friends ? [HttpGet]…
-
0
votes0
answers214
viewsQ: Upload Image and save to Asp.net server
Friends could help me create a function to record the path + image name in the database, and save the image on my server ? I’m using the field model.PhotoName which is a string to store the path,…
-
0
votes0
answers58
viewsQ: Update of Telephone Array in the database
I’m trying to update information in my database where I have 1:N amid Clientes and Telefones, but I am not able to perform such update, because sometimes it will be necessary to remove a phone that…
-
0
votes0
answers108
viewsQ: Two Viewmodels in one View
I have a problem, let’s explain: I have a page called Index where I re-address all the clientes from my database in a table, in this table there is a delete button that opens a Modal de Confirmação…
-
2
votes2
answers1783
viewsQ: X.PagedList.Mvc with Core and Bootstrap 4.0
How to use the X.PagedList.Mvc with Core and Bootstrap 4.0, and thus create a full automatic pagination.
-
3
votes2
answers1783
viewsA: X.PagedList.Mvc with Core and Bootstrap 4.0
Today I bring, a way to use the X.PagedList.Mvc with Coreand Bootstrap 4.0: First we have to download the X.PagedList.Mvc.Core via Nuget. In the VIEW We will use: @using X.PagedList.Mvc.Core @model…
-
1
votes0
answers200
viewsQ: Pagination problem X.Pagedlist
I am trying to implement X.Pagedlist pagination, but on this line: @Html.PagedListPager(Model, pagina => Url.Action( "Index", new { pagina, search = ViewBag.Busca })) I’m getting the following…
-
-2
votes1
answer73
viewsQ: Return data from the Customer
Good morning Personal, I would like to create a function, which returns the requested client, and its data, which are in 3 different tables Clientes, ClientesTelephone, ClientesEmail, I can add the…
-
0
votes3
answers121
viewsA: Dataannotations problem in string fields[]
as the help of the above friends didn’t work for me, I created a folder Validation and within it I created the class CustomAnnotations.cswith the following code. using System; using…
-
-1
votes3
answers121
viewsQ: Dataannotations problem in string fields[]
I need help validating a field string[], because whenever I send this empty field, it returns error, even if it is in the correct format: This is the field:…
-
2
votes0
answers74
viewsQ: Model not being fully validated
Good morning Guys, I’m testing an application to add a client, but whenever I try to add the user, test the Viewmodel to see if the information is consistent, but the program does not validate all…
-
2
votes1
answer116
viewsQ: Save Phone Array to Database
I created a table of Clientes and two from customers who are ClientesTelefone and ClientesEmail in my form I am generating email fields and phone dynamically, so I would like to know how I can…
-
3
votes1
answer182
viewsQ: Individual and Legal in the same table
Could you help me please ? I am developing a crud for client, where I will leave physical and legal person in the same table, but in case when the user chooses the type of person through a radio…
-
1
votes1
answer1719
viewsQ: Inconsistent accessibility: "value" parameter type is less accessible than "value" method
Inconsistent accessibility: "Iclientmanager" parameter type is less accessible than "Clientecontroller.Clientcontroller(Iclientmanager, Usermanager) Controller: public class ClientController :…
-
0
votes1
answer1180
viewsQ: Cannot convert Implicitly
I’m getting the following error: Unable to convert from "Tclient" to "Easysistema.Models.Applicationclient" public class ClientManager<TClient> { private ApplicationDbContext _context; public…
-
1
votes1
answer423
viewsQ: How to start a function with onclick?
I have a script that reads one . log basically in real time and shows it on screen, but the point is that it starts with the DOM, I would like it to start only from the click on the button, could…
-
0
votes2
answers294
viewsA: Start function by Onclick
Thanks for the feedback @Leonardo. I did it this way, but it still doesn’t work: $('.log-btn').click(function()) { $.repeat(1000, function() {…
-
0
votes2
answers294
viewsQ: Start function by Onclick
Boa Tarde Amigos. My question is this, I have a script that keeps reading one. log basically in real time and shows it on screen, but the point is that it starts with the DOM, I would like it to…