Posts by Lucas Ost • 319 points
7 posts
-
0
votes3
answers125
viewsA: Save or remove accent on a Textareafor
The error occurred for two reasons: 1º The generated html string was converted to uppercase, before reaching the controller. 2º I needed to use the method HttpUtility.HtmlDecode(), as follows.…
-
3
votes3
answers125
viewsQ: Save or remove accent on a Textareafor
Hello. I have a Textareafor which receives the HTML content, however when saving the data, the accents and special characters are encoded and I have problems later when editing or viewing the data.…
-
0
votes1
answer65
viewsA: Formatting Javascript data
To solve this case, I converted to string and did the formatting $(".dataFim").html(current.DataFim.toString().substr(0, 10).split('-').reverse().join('/'));
-
-2
votes1
answer65
viewsQ: Formatting Javascript data
The date is filled in according to the information obtained from a JSON response Script $(document).ready(function () { $("#@(Model.Campo)_Nome").typeahead({ source: function (query, process) {…
-
3
votes2
answers688
viewsQ: Creation of buttons with bootstrap
I need to create buttons with the bootstrap style similar to the image below. You can find the buttons: https://fontawesome.com/ However I can arrive only in this result: I use the following code:…
-
6
votes1
answer813
viewsQ: Self Relationship in EF
I’m having the following problem creating two self relationships. When rotating the Update-Database The following error message appears: Unable to determine the main end of an Association between…
-
9
votes2
answers1277
viewsA: How to store a List<Object> in a database?
Complementing the Gypsy, you can use the Dapperwith EFor with a connection that implements Isqlconnection Dapper works with Extension methods for your connection, i.e., you will initially create a…