Posts by FernandoPaiva • 1,562 points
111 posts
-
-1
votes1
answer38
viewsA: Select String attribute using Split and LINQ?
Solved. var _myNum = context.SequenciasNumeros .AsEnumerable() .SelectMany(x => x.Numeros.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries)) .Intersect(_pesquisaNumeros.Split(new…
-
1
votes1
answer38
viewsQ: Select String attribute using Split and LINQ?
I have the following string "1,2,3,4,5,6,7,8,9,10," that I want to make a Split in a Select to search in the database if the number 9 is inserted in a field that receives strings of numbers. I want…
-
1
votes1
answer98
viewsQ: Restful Pagseguro API returning "message": "Unauthorized"?
I am trying to implement payment by card using Pagseguro’s Rest API. I have followed every step of this documentation but the return is always "message": "Unauthorized". I’m testing directly at…
postmanasked FernandoPaiva 1,562 -
1
votes0
answers213
viewsQ: Cielo’s integration with C# and Asp.Net MVC?
I’m trying to integrate Cielo to make payments on my site "Asp.Net MVC" but I’m not getting it. I read the Cielo integration manual, followed all the steps, performed tests in Postman and works…
-
1
votes0
answers35
viewsQ: Performing Groupby with Linq?
I’m trying to perform a Groupby but I’m not getting it. Always returns an Exception that I’m not able to solve. How do I solve this problem ? LINQ public ActionResult MeusConcursos(){ Usuario…
-
1
votes1
answer56
viewsQ: One-To-One relationship with EF?
I’m trying to create a relationship OneToOne with EF6. In my scheme I have a User class and a Plan and the relationship would be 1 User has 1 Plan, however, this relationship is done when the User…
-
0
votes0
answers157
viewsQ: Modal Loading with Xamarin?
I am creating an application with Xamarin and I want to create a Modal of Loading while doing a search in Webservice. I researched some examples that use Page Modal and others with Popup. Now I’m…
xamarinasked FernandoPaiva 1,562 -
0
votes1
answer1332
viewsQ: How to create War to deploy on Tomcat with Spring-Boot?
I am creating a project in Spring-Boot and I want to create the.War file to deploy to Tomcat and I am unable to do so. I am following this example but I have not yet had success War is not being…
-
0
votes1
answer110
viewsQ: Pagseguro Session with Asp.Net MVC?
I am trying to get the Pagseguro session using the Asp.Net MVC Webclient but always launches an error exception that I am unable to solve. Webclient [HttpPost] public JsonResult getSessaoPagSeguro()…
asp.net-mvcasked FernandoPaiva 1,562 -
7
votes4
answers2085
viewsQ: Does the date conversion always remain in en-BR?
I’m trying to convert a date in Asp.Net MVC to yyyy-MM-dd, what happens is that always when I convert and display this date it gets dd/MM/yyyy and I don’t know why it happens. How to solve this?…
-
0
votes0
answers35
viewsQ: Onetomany entering a new record?
I am trying to create a Onetomany relationship between 2 classes "User and Broker" where 1 User has many Brokers. The problem is when I add a new Broker a new User is created and I don’t know why it…
-
0
votes2
answers1065
viewsA: How to Paginate Data with Pagedlist in Asp.Net MVC?
As I use a Model to display the data, I ended up using the StaticPagedList that is part of the Pagedlist library, and that solved my problem, besides being very performatic. I did so. public…
-
0
votes2
answers1065
viewsQ: How to Paginate Data with Pagedlist in Asp.Net MVC?
I have a user table with 10,000 entries. I want to paginate these records using LIMIT and OFFSET with Pagedlist but I’m not able to do that. Currently the system searches all records to then…
-
1
votes0
answers93
viewsQ: ASP.Net MVC - Draw in PDF file?
I’m creating a system in Asp.Net MVC and I need to create a scheme for the user to draw his signature in a.pdf file that is corresponding to a contract and I am looking for a way to do this but…
-
0
votes0
answers352
viewsQ: Create autocomplete for Select Option with Jquery?
I’m trying to make an autocomplete using select with jquery but I’m not getting it. How to do this ? I’m trying like this function fillSelect(data) { //$('#usuarioSelected').empty(); if…
jqueryasked FernandoPaiva 1,562 -
0
votes0
answers100
viewsQ: Create Thread for email submission?
I am developing an ASP.Net MVC application and want to create a thread to send emails every 30 seconds. I need this, because my provider does not allow the sending of many emails at msm time, so I…
asp.net-mvcasked FernandoPaiva 1,562 -
1
votes1
answer501
viewsQ: Pass parameter through GET with Asp.Net MVC?
I am creating a search screen and for this I created a Model with some attributes of the type Datetime to do a search by date period. The problem is that when I pass these parameters to the method…
asp.net-mvcasked FernandoPaiva 1,562 -
1
votes1
answer448
viewsQ: How do I profile security with Asp.Net MVC?
I am creating a system using Asp.Net MVC and before I start I need to do profile-based security. I’ll have multiple profiles each with an access option. For example: Admin Profile (access all),…
-
0
votes2
answers593
viewsQ: How to model the products table for an e-commerce?
I have a question about how to model the table Produto of a small e-commerce I’m doing. I have been seeing some e-commerces and came across the following situation: mm same product can have…
-
0
votes1
answer263
viewsQ: Navbar under Jumbotron, huh?
I’m creating a layout and I’m trying to put a navbar under a jumbotron but I’m not getting it. It turns out that the jumbotron gets a space at the top and the navbar is with a space between the…
-
0
votes1
answer143
viewsQ: Fluentnhibernate.cfg.Fluentconfigurationexception.Getobjectdata how to resolve?
I have a site that I use Fluentnhibernate and now I uploaded this site to the provider but when I try to open the site shows me some Exceptions of Fluentnhibernate. This site, on my computer, works…
-
0
votes1
answer290
viewsQ: Publish Asp.NET MVC website?
I developed a site in ASP.NET MVC and now I want to publish it on my provider using FTP. I’ve done all the FTP configuration on Publish of the 2013 VS I’m using. When do I publish the Controllers,…
-
1
votes0
answers255
viewsQ: You doubt about Ubmit and jquery?
I am developing an application in Asp.Net MVC and I am having a problem that I am not able to solve. I have a form with 2 buttons submit, and when I do the submit I want to get the name of the…
-
0
votes1
answer338
viewsQ: Changing model value by Jquery and Asp.Net MVC?
I have a model where I have the attribute status, this attribute is a int that define values. In my form I have 2 buttons: gravar e publicar and gravar, each of these buttons would be a value for…
-
2
votes1
answer408
viewsQ: Div to loading ajax in full screen?
I’m using Bootstrap 3 and created a <div> that works in full screen for an ajax loading, this works well if the screen is docked, without scrollbar in vertical. But now I noticed that if the…
-
0
votes2
answers553
viewsA: Fill Dropdownlistfor dynamically with Jquery?
Solved. I just created an empty list of cities and added it to Model and it worked. did so. Controller public ActionResult add(){ AddTaxModel model = new AddTaxModel(); model.estados = new…
-
3
votes2
answers553
viewsQ: Fill Dropdownlistfor dynamically with Jquery?
I’m trying to fill one DropDownListFor dynamically. This DropDownListFor eh to display the cities of the state, for example: The user chooses the state and in this DropDown the cities of that state…
-
1
votes1
answer2240
viewsQ: Div full screen with Bootstrap?
I’m trying to create a div on the whole screen that will serve as a loading, but I’m having a problem because <header> I have a navbar which I defined as navbar-fixed-top and the div does not…
-
1
votes0
answers664
viewsQ: How to set up external access in IIS Express VS 2013?
I have a webservice on Asp.net mvc 4 running on my local pc if I do http://localhost:14807 works blazin, but if I do, http://192.168.1.105:14807 which is itself does not work, the same happens if I…
-
2
votes1
answer127
viewsQ: How to pass a JSON Object to a method in the webservice?
I’m trying to pass a JSON Object to a method in my controller and I’m not getting it, the problem is that the email field always returns null. How to do this ? I’m trying like this. JSON Object…
-
0
votes1
answer296
viewsQ: How to create a dynamic @Html.Actionlink with Jquery?
I’m trying to create a @Html.ActionLink dynamic with Jquery but I’m not getting, how to do it ? $('#tableView > tbody').empty(); if (data["CategoriaProduto"].length > 0) {…
-
0
votes1
answer1197
viewsQ: SELECT to filter null value?
I’m trying to make a SELECT in a table conta, in this table I have a foreign key to the table venda, in certain cases this foreign key is null and I want to return the information of the sale when…
-
2
votes1
answer33
viewsQ: Jquery function executes when I click on a button with back() function?
I have a form that I send to a function with $.ajax That shipping by Ubmit, this works well. The problem is that I have a button that I do a back() to return the page and when I click on that button…
jqueryasked FernandoPaiva 1,562 -
0
votes1
answer62
viewsA: How to remove an object from a Hasmanytomany relationship?
Solved. I just removed the list item and updated it. Like the mapping this SaveUpdate() already does automatically. Stayed like this. /// <summary> /// Delete formapagamento da empresa ///…
-
0
votes1
answer62
viewsQ: How to remove an object from a Hasmanytomany relationship?
I have 2 entities that relate: Entities Empresa and FormaPagamento many companies may have many forms of payment, to save this working well but now I want to remove the forms of payment that the…
-
0
votes1
answer121
viewsQ: How to validate a Ienumerable property using Dataannotations?
I have a IEnumerable<long> selectedItems he is to display a select to select multiple values, I want to validate this IEnumerable using the DataAnnotations to check if it is empty because it…
-
1
votes1
answer202
viewsA: How to use Remote Validation correctly?
Solved, by what I read in the documentation when there is the occurrence, in case the email, the return in JSON should be false and not true as I was trying, I made the change and it worked 100%. I…
asp.net-mvcanswered FernandoPaiva 1,562 -
0
votes1
answer202
viewsQ: How to use Remote Validation correctly?
I’m trying to use the Remote Validation to check if the email is already registered, the problem is that whenever I inform an email for example [email protected] does not return that the email…
asp.net-mvcasked FernandoPaiva 1,562 -
1
votes1
answer145
viewsA: Running Query with SUM in HQL?
Solved. After much researching a way to do this and the reasons of Exception I found a way to do it. Anyway, it worked 100%. I did so. public IList<Conta> findAllContasReceber() { ISession…
-
1
votes1
answer145
viewsQ: Running Query with SUM in HQL?
I’m trying to use the SUM to sum an attribute of an entity using HQL of NHibernate, but whenever I execute the query returns empty. I am following the example here but I still can’t do it. How to do…
-
4
votes3
answers11041
viewsA: Printing text file on thermal printer with Printdocument?
Solved. I created a class that extends PrintDocument and created the voucher as needed. I didn’t even need to generate text file, I did it using the Graphics of PrintDocument msm. It works 100%. did…
-
5
votes1
answer1202
viewsA: RDLC report in an internal project folder?
Solved. It was enough to change the reportViewer.LocalReport.ReportPath for reportViewer.LocalReport.ReportEmbeddedResource. being like this: reportViewer.LocalReport.ReportEmbeddedResource =…
-
3
votes1
answer1202
viewsQ: RDLC report in an internal project folder?
I created a system with C# and Winforms and to create my reports I created an internal folder in the project with the name of reports, in this folder I create the RDLC for display in ReportViewer…
-
2
votes1
answer255
viewsQ: Add the same column by different criteria?
I’m trying to create a report using ReportViewer that makes a SUM in the same column for different criteria. My query works well in Phpmyadmin but in Querybuilder of Reportviewer does not work and…
-
4
votes3
answers11041
viewsQ: Printing text file on thermal printer with Printdocument?
I am developing a system in Winforms with C# and now I need to generate a sales receipt coupon and print on a thermal printer. I’ve been reading about Printdocument but can’t find examples of how to…
-
1
votes1
answer994
viewsQ: Format number in reportviewer?
I’m trying to format a number on ReportViewer and I’m not getting it, so I’m trying to use the function Format of TextBox in the ReportViewer. The number is a code and I’m trying to fill it with 3…
-
0
votes0
answers216
viewsQ: Does reportviewer display no object value?
I am trying to generate a report with Reportviewer about the items of a sale, the report is displayed but in the product column instead of appearing the product appears #Erro. My classes are all…
-
3
votes0
answers284
viewsQ: Using JOIN with HQL function in Nhibernate?
I am trying to run a JOIN using HQL with Nhibernate and returns an empty list. How to do this ? I’m trying like this. [Serializable] public class Cliente { public virtual int id { set; get; } public…
-
0
votes1
answer71
viewsQ: Ignore property with Fluentnhibernate?
I’m trying to ignore a class property for mapping with Fluentnhibernate and I’m not getting it. I’m trying to follow this example link. How to do this ? trying to. public class Caixa { public…
-
2
votes1
answer485
viewsQ: Create JPA project without persistence.xml?
I created a project with Swing and JPA and is working well, now I want to remove the file persistence.xml and create a class for him to work in his place. I’m researching some way to do this and I…