Posts by Nicola Bogar • 1,149 points
76 posts
-
-1
votes1
answer166
viewsQ: Problem raising API and making request via Postman
I’m creating an API project in dotnet core and I’m not being able to perform requests via postaman on it. Urls of attempts: "http://localhost:5050 e http://0.0.0.0:5050" "https://localhost:5001 e…
-
0
votes1
answer124
viewsQ: Query to bring 1 parent record and in it can contain multiple children records (performance)
Supposing for the client I can add more joins as not only sales, and the result of this consultation bring much more records. This is a performative way of working or would be better to query each…
-
5
votes2
answers1346
viewsQ: Difference between ADO.NET and Dapper
What are the differences between Orms? When to use one and when to use the other? What are the disadvantages of each?
-
3
votes2
answers404
viewsQ: Publication of ASP.NET MVC Project
Good morning gentlemen, I work in systems development, but until then I never had to publish on the internet an application of mine, because I have always worked with projects ready, what is the…
-
1
votes1
answer244
viewsQ: Ajax POST does not execute the ASP.NET MVC action
Controller Action public class EstabelecimentoController : ControllerBase { [HttpPost] public ActionResult ImportarEstabelecimentos() { var file = Request.Files["inputFileImportarEstabelecimentos"];…
-
0
votes1
answer123
viewsQ: Popular a View with values in the ASP.NET MVC model
In the Index Method I can set values in the model and initialize my VIEW with predefined value. But when I do the POST for the START method, when I change the Aquedica property, the value is not…
-
0
votes0
answers63
viewsQ: Save value from a variable within a controller to use in another DLL run method
I need to save information in the User Login and use this information in another DLL. EX: Projeto.Web Projeto.Domain.dll When logging in the User Project.Web controller, I need to save which project…
-
1
votes0
answers166
viewsQ: Storedprocedure in SQL-Server passing a C#List parameter
I would like to pass a list of parameters to a precedent, how to do this process? I did some research and I thought it is possible to create a TABLE TYPE and use it in the parameters of the past,…
-
1
votes1
answer55
viewsA: Possibility to use MAX in Datetime Lambda expression fields
The above solutions did not solve my problem, because I intend to bring really only one record, so I would like to use MAX, and if I use the MAX that contains in Ienumerable it brings only the…
-
-1
votes1
answer55
viewsQ: Possibility to use MAX in Datetime Lambda expression fields
There is the possibility to use the MAX in expression consultations lambdas, for example: I would like to take all registration at the age of 18 years and get the only last record entered in the…
-
0
votes1
answer147
viewsQ: Improve Process Performance C#
Good morning, I have a problem of slowness when performing a process that is performed 1 Insert and 2 Updates for each record. That is 2500 records, will be held 7500 access in the database. Here is…
-
5
votes2
answers211
viewsQ: Difference in cast using "as" and "type cast"
A question arose about casting in C#, I see in many fonts using the cast in the following ways. What is the difference between one and the other, when using one way or another? public interface…
-
0
votes1
answer492
viewsQ: Postback Asp.Net Webforms
I just started working with WebForms and it became a question, due to always messing with the asp.net mvc. Supposing I have one DropDownList and populated the DataSource of it with various records,…
-
0
votes1
answer48
viewsQ: Create List of actions already passing the parameters and then run them as parameters passed
I wanted to know if there is the possibility of creating a list of Actions already passing its parameters to execution, because the number that I will pass to the execution of the same can be…
-
1
votes1
answer62
viewsQ: Create Actions list with parameters and then run it
I would like to create a list of Actions with parameters and then do a foreach in this list and exit executing the methods, each with their respective parameters. Something more or less with the…
-
0
votes2
answers265
viewsA: Create Directive Attribute for Date Month/Year in Angular JS
I don’t know if you’re the best way, but I managed to solve my problem this way. .directive('formatDateMesAno', function () { return { restrict: 'A', require: 'ngModel', scope: { }, link: function…
-
0
votes2
answers265
viewsQ: Create Directive Attribute for Date Month/Year in Angular JS
How to create a date formatting Month/A I developed as code below, and it is not going through the console menus, IE, is not entering the link: Note: there is no error in the console. <div…
-
0
votes0
answers998
viewsQ: Take data from excel spreadsheet and insert into SQL SERVER database
I want to know if you have how to take the records of a spreadsheet and play for an SQL-SERVER table, there is this possibility ?
-
1
votes4
answers8000
viewsQ: Create floating button that accompanies a table scroll
I need to create a floating button that accompanies my scroll as I go along, and I want to put a function back on top. #voltarAoTopo { float:right; z-index:0; } <button id="voltarAoTopo">…
-
1
votes2
answers975
viewsA: Mask for landline field does not work
Reformulating the answer, I made a function for you to pass an input and also the mask you want to format. with it you no longer need to put in html the size, and maxlength, because now it will obey…
javascriptanswered Nicola Bogar 1,149 -
0
votes2
answers124
viewsA: List Category and sub-egoria
| CATEGORIA | SUBCATEGORIA | | | ID - INT - PRIMARYKEY | ID - INT - PRIMARYKEY | DESCRICAO - VARCHAR(50) | DESCRICAO - VARCHAR(50) | | CATEGORIAID - INT FOREINGKEY (CATEGORIA) SELECT SUB.DESCRICAO…
mysqlanswered Nicola Bogar 1,149 -
0
votes1
answer248
viewsQ: Questions Properties Popover Bootstrap
I’m creating a Popover with bootstrap, it appears as soon as I pass the mouse in the html tag, but when I try to click on the Popover it goes away, it has some property that when I hover over it…
-
0
votes1
answer563
viewsQ: How to pass bidirectional parameters to an Angularjs directive
I need the attribute parameterID="{{autor.ID}} which in the Directive is parameterID: '@' be updated as soon as it is changed, that is, I need the bind to be bideretional, I saw in several places…
-
1
votes0
answers288
viewsQ: Using multiple html pages with the same Angularjs + ASP.NET MVC controller
Using the routes with Angularjs, When entering the Author.html page with the route /Autor, is listed all authors registered in a table where a link is created for each author’s edition, according to…
-
2
votes1
answer160
viewsQ: Doubts about routes Angular JS x ASP.NET MVC
I would like to clear up some doubts about Angular JS x ASP.NET MVC. Created an empty ASP.NET MVC application that will work with WEB API, configured all my routes with Angularjs, created an html…
-
0
votes2
answers94
viewsA: Configuring Angulasjs Routes with ASP.NET MVC
I managed to solve my problem as follows! Instead de : <a ng-href="#/Home"> Home </a> coloquei: <a ng-href="#!/Home"> Home </a> <body ng-app="app"> <a…
-
0
votes2
answers94
viewsQ: Configuring Angulasjs Routes with ASP.NET MVC
I’m having trouble routing Angularjs with Asp.net mvc. I set up my routing in the app.js and when I click on my links the pages are not being redirected correctly, the only page that appears…
-
1
votes1
answer99
viewsQ: Problem coloring table rows in print using @media ASP.NET MVC
In my view the result of my table is as follows: In printing: I put my css styles used in the view inside @media as follows: <style> .form-control { min-width: 100% !important; } .p-periodo{…
-
2
votes2
answers2277
viewsA: Pass jquery parameters to Url.Action ASP.NET MVC
I solved my problem using @Html.Raw, as follows: var url = '@Html.Raw(@Url.Action("ExtratoPrint", "Extrato", new { contaCorrente = "paramContaCorrente", dataPesquisa = "paramDataPesquisa" }))';…
-
1
votes2
answers2277
viewsQ: Pass jquery parameters to Url.Action ASP.NET MVC
I’m having trouble assembling a URL with parameters. Until then I managed using the @Url.Action, but the second parameter dataPesquisa is going nil. I imagine when the parameter passed directly to…
-
0
votes1
answer769
viewsQ: Run Action Post by Jquery ASP.NET MVC
Would you like to delete a record in a button click by Jquery, what’s the best way to do it ? The way I did it’s not working. Action I want to call by Jquery // POST: Pais/Delete/5 [HttpPost,…
-
0
votes3
answers2176
viewsA: Question how to increase input size according to div size using bootstrap
I solved my problem after several attempts using the CSS property, .form-control { min-width : 100% ! Important;}, so it gets the size of the parent div. Code @model…
-
2
votes3
answers2176
viewsQ: Question how to increase input size according to div size using bootstrap
I am having difficulty increasing the size of my inputs using the bootstrap classes, I would like to leave them according to the sizes of my div for example, in a Row with 12 columns I create the…
-
0
votes1
answer323
viewsQ: Call Get action that returns a view by jquery ASP.NET MVC
I need to open the create view by clicking a button, how to do this by Jquery? Knob <div class="col-md-3"> <button id="btnNovo" class="btn btn-info form-control" style="width: 200px">…
-
0
votes2
answers438
viewsA: Display a div for a given time Jquery
I got it that way: <script> var functionWarrning = function () { $('#alerta').html('<div class="alert alert-warning" role="alert"> Erro ao salvar registro.</div>')…
-
0
votes2
answers438
viewsQ: Display a div for a given time Jquery
I wonder if there’s any way I can present the contents of a div at a certain time. Because in this case I’m inserting an html into the div and after a while I’d like it to disappear, there’s some…
-
1
votes3
answers3345
viewsQ: Go through jquery inputs and check if you have a certain class in input
I’m picking up the inputs with the code var itensTabelaPresentation = ('#tabelaPresentarion > li'); and would like to walk through them and go checking if they have certain class, how do I…
-
0
votes1
answer587
viewsQ: Datetime field problem in POST ASP.NET MVC
Field Datetime getting 01/01/0001 00:00:00, and not with the date before the POST. Datatime Field with Dataannotations (MODEL) [Required(ErrorMessage = "Campo Data de cadastro é obrigatório.")]…
-
0
votes1
answer558
viewsQ: Line breaks in table cells ASP.NET MVC C#
How to do not break in multiple rows the columns of a <table>, because I put a scroll and would like to leave the grid cells without breaking, and rather let the user use the scroll. View…
-
0
votes0
answers166
viewsQ: Create an object instance by Activator.Createinstancefrom C#
I need to instantiate the Paismapper class with the following scenario. DLL running: Projeto.ERP.Desktop In Formuláriopal I execute the method…
-
3
votes1
answer1037
viewsQ: Doubt when deserializing JSON C#objects
I am deserializing the JSON below, and would like to know, if I need to create a class with all attributes related to this JSON, or can I just create with the attributes I need to use? Am I going…
-
0
votes1
answer32
viewsQ: Show grouped partial files
I’m creating a partial class, and I’d like to implement some validations in another partial class, just to separate the methods. I know that this is possible, but I would like to join these two…
visual-studioasked Nicola Bogar 1,149 -
0
votes1
answer136
viewsQ: Error editing record more than once with Entityframework C#
When editing a record and saving for the first time entityframework performs the update successfully, but when I click again on edit and save the record I come across the following error: Error…
-
0
votes1
answer159
viewsQ: Virtual method with Generic C#
I am creating a Base Form where I am not using it of type "Generic" due to problem with inheritance of forms in C# with the same. In this base form, I had the need to create a virtual method with…
-
0
votes1
answer59
viewsQ: Dependencies with Entityframework C#
My question is how to use the state-class include for parents, because the city-class has no connection with parents. How to perform this sql by loading the dependencies? private void…
-
0
votes1
answer188
viewsQ: Error using bootstrap with ASP.NET MVC
I have the error when using bootstrap.min.js, the error is that it does not find a function. It follows error below and configuration of my system. You need to post something else so you can help me…
-
0
votes1
answer110
viewsQ: Positioning of components in ASP.NET MVC
I’m having a hard time positioning components in css, in this project I’m using the bootstrap techniques to make a form, and as picture below I can’t leave the centered components right in a row…
-
0
votes1
answer76
viewsQ: Problem with width of components with form-inline bootstrap
I am building a form and I am having trouble organizing the form components the way I would like. When I use the class col-md bootstrap components are getting all messed up and when I move the size…
-
4
votes2
answers1079
viewsQ: Event loading when conducting queries in AJAX with ASP.NET MVC
I’d like to know how to best place a Waiting to identify that the data of a survey is being processed, in case I have a table and can perform a search filter, when the request is sent I would like…
-
6
votes1
answer1124
viewsQ: Does Angular 2 replace jQuery and AJAX?
With the use of Angular 2, it is still necessary to use jQuery and AJAX or Angular to replace 100% of these 2 technologies?