Posts by Eluander J. F. Lopes • 400 points
25 posts
-
0
votes1
answer338
viewsQ: Pagseguro . Net Core Problem with . xml
I am implementing the payment with Pagseguro, however I am having problem in the execution of the following line: const bool isSandbox = true; EnvironmentConfiguration.ChangeEnvironment(isSandbox);…
-
0
votes1
answer27
viewsQ: Parameterize with Restshap
Hello, I am trying to pass a POST to my Webapi using Rastsharp, but I’m having difficulty passing the parameters... RestClient client = new RestClient("http://localhost:18256"); RestRequest request…
c#asked Eluander J. F. Lopes 400 -
-1
votes1
answer36
viewsQ: Help with Update SQL
I need to learn how to update my chart. I have the "Person" table, this one has the "Description" column. At the time it was created a maxlenght of 100 characters was added, I need to change this so…
-
3
votes1
answer98
viewsQ: Form losing model list
I have the following models: Models public class Atividade : BaseEntity { public virtual int Id{ get; set; } public virtual string Descricao{ get; set; } public virtual IList<Anotacao>…
-
1
votes1
answer28
viewsQ: Discover executed event
I made the following command to display a loading every time I perform a project Submit. $("button[data-noPreload!='true'][type='submit']").click(openPreloading); function openPreloading() {…
-
1
votes1
answer686
viewsA: I couldn’t translate the Fullcalendar plugin to en. Can anyone help me?
When you downloaded the fullcalendar you probably had a folder called locale next to the files, in this folder contains the languages. Make the file reference en.js next to fullcalendar reference.…
-
2
votes3
answers472
viewsA: Asp mvc how to change model data and move to another view
public ActionResult Index() { Produto produto = new Models.Produto { ProdutoId = 1, Descricao = "Calça jeans Pitbull", Tipo = "Calça", Tamanho = "40", Valor = 59.99 }; return View(produto); } So…
asp.net-mvcanswered Eluander J. F. Lopes 400 -
0
votes2
answers108
viewsA: Create Database using Fluent Nhibernate
Nhibernate does not generate new Database, but it is possible to generate new DB by adding the Npgsql reference. With that now we can execute: // 1. Connect to server to create database: const…
-
0
votes1
answer53
viewsQ: Save form Razor
How can I make my form not to sumbit the same form several times. I’m having this problem because some users are clicking save several times, not waiting for the screen update, so it is saving…
-
1
votes1
answer329
viewsQ: Ajax in MVC - Select
I’m having a problem loading the fields select in my project. Mine Forms are all done with Razor and only the select’s(combobox) I charge by ajax. Problem: When I start the form the ajax event to…
-
0
votes1
answer166
viewsQ: Problem with form Ubmit
I’m having trouble trying to make a form Ubmit when my object is null as it is not required. However it is not possible to save with it null. /// Model public class Atividade { public virtual long…
-
0
votes1
answer218
viewsA: Update Dropdownlistfor in form
I managed to solve the problem using ajax. So did my dropdownlist: @Html.DropDownListFor(model => model.Cliente.Id, cliente, "Nenhum", new { @class = "form-control", required = "true", onchange =…
-
0
votes1
answer218
viewsQ: Update Dropdownlistfor in form
I have a form that has two @Html.Dropdownlistfor among other fields. However, when changing the first Dropdownlistfor I need to update the values of the other dropdownlist by passing its id as…
-
1
votes2
answers108
viewsQ: Create Database using Fluent Nhibernate
Is there any way to create a new database directly from my application? I’m using Asp.Net MVC5 C#, Fluent Nhibernate and Postgresql. Note: I can already access my tables through the application,…
-
1
votes2
answers655
viewsQ: Validation of fields from Razor forms
I’m using MVC5 Razor to create my forms, now I have a question for field validations of that form; Example: @Html.LabelFor(m => m.Nome, "Nome:") @Html.DropDownListFor(m => m.Nome, "Nenhum" ,…
-
1
votes1
answer497
viewsQ: Communication between MVC Controllers
I’m having trouble making a communication between Controllers each in a Area different, the public methods of the second controller are not available in the first. Is there any way to do this?…
-
4
votes2
answers2552
viewsQ: Claims Identity MVC
I’m having difficulty implementing Claims to make user authorizations in my project, I’ve read a lot but I can’t execute it. I’m using in the project the Nhibernate.AspNet.Identity may be that for…
-
1
votes1
answer79
viewsQ: Convert View to Controller Values
I need you to byte[]Descricao, when sent to my view displays the text as string for the user to manipulate within the TextArea, when I click in saving need to be converted again to byte[] for that…
-
3
votes3
answers603
viewsQ: Problem sending model to controller
I’m having trouble forwarding my model to control: Class: public class Pessoa { public virtual long Id {get; set;} public virtual string Nome {get; set;} public virtual ETipo Tipo {get; set;} public…
-
0
votes1
answer57
viewsQ: Fix value still inside the View
I would like to know how I can change the value of @Model still in the view, before sending to the server and which the best way to do this? Example: @{ var model = (Pessoa)Model bool isAtivo =…
-
1
votes2
answers87
viewsQ: Security of My Intranet Project
I have a commercial intranet project, but how to validate so that this project is not copied from the root folder, where the IIS runs? Because so if my client has a knowledge he could easily copy my…
-
3
votes1
answer836
viewsQ: Receive by Parameter and Manipulate a Generic Object LIST
I need to receive an Object List by parameter Generic and manipulate, although researching did not understand right how to do. Example: public class Funcionario { public long Id {get; set;} public…
-
4
votes1
answer999
viewsQ: Access Object Property with a string
Pupil: public class Aluno{ public int Id { get; set; } public string Nome { get; set; } public string Sobrenome { get; set; } } Now I need to access the student’s Name and Surname through a string,…
-
1
votes3
answers857
viewsA: Invalid Pointer
To fix the mentioned problem only Windows restart was required! I tried to restart the Project, Visual Studio 2015 and did not help. Only then I realized that there was a windows 10 update, because,…
visual-studioanswered Eluander J. F. Lopes 400 -
2
votes2
answers743
viewsQ: Receive by parameter a List of miscellaneous objects
I have the following problem described in the comment: public class Funcionario{ public long Id {get; set;} public string Nome {get; set;} public DateTime DataContrato {get; set;} } public class…