Posts by Csorgo • 434 points
29 posts
-
3
votes1
answer38
viewsA: Get Method with Customizable Where
Thank you very much for your comments from colleagues in the community. I talked to a colleague yesterday about the problem and saw that the best way (for security and usability reasons) is to…
-
1
votes1
answer38
viewsQ: Get Method with Customizable Where
I made a WebAPI (ASPNET with EF6) with verb support Get(), Post() and Delete(). At some point, I need to access certain values that are not returned by default by verbs, for example: The Order…
-
0
votes1
answer52
viewsA: Failed to add the "System.Runtime" reference to Asp.net
The issue has been solved with the version downgrade. I will wait for a next package update and test.
-
1
votes1
answer129
viewsA: When is Trigger SQL server triggered After Insert?
The Trigger is triggered at the time of INSERT. The transaction is only confirmed if all the instructions INSIDE it are Successfully Completed. Follow the hint of a reference link for study:…
-
1
votes1
answer109
viewsQ: Doubt about modularization in MVC Application
Friends, I always try to focus on good programming practices, and one practice that most confuses me is the Modularization. For example, I have the method below that receives data from an API and…
-
1
votes1
answer590
viewsA: How to replace the space character with another one?
First of all you will need to do a validation. Note that gray dots commonly appear only to the left of the code, not to the right or between the code. You will also need to work on visual…
-
1
votes5
answers371
viewsA: Validate model before inserting in the database
I found the solution Here The language itself provides a way to validate the model before inserting it into the database via Annotations using lib System.ComponentModel.DataAnnotations on the model…
-
0
votes1
answer1150
viewsQ: Turn Httpresponsemessage return to JSON
My API currently returns database values in JSON. If no value is found, I return one HttpResponseMessage with error code 404. However, when testing the request, only the message contained in Content…
-
2
votes5
answers371
viewsQ: Validate model before inserting in the database
I am developing a Webapi using Entityframework6. Before performing an INSERT in the database, I would like to validate the model that is coming via request (I believe to be fundamental), but I have…
-
2
votes1
answer415
viewsQ: View data display with Codeigniter
I’m trying to present the data from my View database. I followed the various tutorials I found on the internet but none of them could meet me :/. Model public function get_titles() { $title =…
-
1
votes1
answer658
viewsA: Access denied when accessing controller with Codeigniter
The error was in the config.php file, located in application/config/config.php. the variable $config['index_page'] was empty. I added the code below and the problem was fixed: $config['index_page']…
-
2
votes1
answer658
viewsQ: Access denied when accessing controller with Codeigniter
I made an application with code Igniter and implemented a login screen. When logging in, the user is directed to the Dashboard screen. By clicking on any link on this screen, the "Access prohibited"…
-
0
votes1
answer52
viewsQ: Failed to add the "System.Runtime" reference to Asp.net
I am trying to install the latest "stable version" of Mysql.Data from Nuget package manager. The version in question is 6.10.5. When trying to install, the message below is displayed: Failed to add…
-
0
votes1
answer225
viewsQ: Return of incorrect AJAX Success
I am using Jquery AJAX in my ASP.NET MVC application and I am having a somewhat strange problem. When performing an AJAX request, instead of retouching the content I want to load (a new ".cshtml"…
-
1
votes1
answer337
views -
2
votes1
answer337
views -
0
votes0
answers662
views -
2
votes1
answer25
viewsQ: Error in obtaining bank value
I’m trying to get the ID of a database with PHP. When returning the value, it always comes as 1. //Obtenho os valores por GET $description = $_GET['DESC']; $contentType = $_GET['TYPE']; $content =…
-
0
votes1
answer36
viewsQ: Problem in hiding div
I made a function in Jquery to hide/display 2 Divs. The first div works normally, but the second one does not :/ The idea is to hide the div, change the button icon and change the text at the same…
-
1
votes3
answers1868
viewsA: Mask in table values
I appreciate the help from all! I had trouble using String.Format("{0:C}", ValorDinheiro), so I made a method to assemble my mask. I hope it helps others: public static string FormataDinheiro(string…
-
0
votes3
answers1868
viewsQ: Mask in table values
I am looking for a way to create "Masks" for the values of my table in ASP.NET. Currently, I am displaying the values like this: @model TB_RESUMO_GERAL List<TB_RESUMO_GERAL> rg =…
-
2
votes0
answers160
viewsQ: Directory permission for the entire domain
I am trying to create a folder and assign it read permissions: public static void createFolder(string path) { DirectorySecurity securityRules = new DirectorySecurity();…
-
1
votes1
answer73
viewsQ: Transform a byte array into Dataset
I am reading an excel file (xls, xlsx, csv) and displaying its contents on a new page using Dataset. I can do for xls and xlsx, but for csv it’s not rolling. public static DataSet result; public…
-
2
votes1
answer209
viewsQ: httppostedfilebase always empty when switching to controller
I am sending a form to my Controller passing one HttpPostedFileBase as parameter. The problem is that it always comes empty. HTML: <form action="@Url.Action("Import","Importacao")" method="post"…
-
1
votes1
answer7151
viewsQ: Change input text type=file with filename
I am doing a project in Asp.net MVC 5, and I need the text of my input type 'file' to change to the name of the file when loading it. I hid the input to be triggered by clicking on label in CSS as…
-
0
votes2
answers166
viewsA: How to make my URL more user friendly?
Hello, you can use mod_rewrite to do this. 1) Create a . htaccess file at the root of your server directory; 2) write RewriteEngine On in the first line of the file. 3) create a rule for redirecting…
-
3
votes1
answer647
viewsA: Resize images by passing values through the url
Hello. To go through the URL, you would need to request a get by passing width and height. You can do this easily with PHP. <?php //Parametros obtidos via Get $width = $_GET('WIDTH'); $height =…
-
2
votes1
answer114
viewsQ: Form Zera values greater than 999.99
I’m going through a problem I’ve never seen before. I’m hoping someone has seen it and can help me. I’m working with Asp.net mvc 5, and sending a form via post to my controller. My model: <div…
-
0
votes0
answers180
viewsQ: Web alert in c#script
I am developing a web system on Asp.net and came across a problem. On the return of your Catchs, I return an error through an Alert to the user thus: try{ ... } catch(Exception ex){…