Posts by Rafael Scheffer • 336 points
15 posts
-
0
votes1
answer125
viewsA: How to make Selenium click a dynamically generated button?
If it is always rendered in the same place, take it by xpath, go to the html code of the site, right click on the html button, then on copy -> full copy Xpath. Then call him by the xpath…
-
0
votes1
answer113
viewsA: What is the difference [email protected] vs 'Asp-controller' next to 'Asp-action'?
In practice there is no difference, the output generated will be the same. What changes is that anchor tag helper is more semantic with html, it’s like you write pure html to mount your html tags…
-
-1
votes2
answers37
viewsA: Footer is not being responsive
It is on top because of position:Absolute, one thing you can do is declare a min-height:90vh; in the element where your content is, previous to the footer, there whenever your page does not have…
-
0
votes1
answer31
viewsQ: Apply filter to a list returned by a mock
Good night! I have the following scenario: A concrete class called Usersservice, which receives by injection of dependencies the repository through an interface and a notifier. She gets like this…
-
2
votes1
answer400
viewsQ: Grab URL directly from an image of my ASP NET MVC application
Good afternoon, I’m trying to make an API to return the URL of an image list but I don’t know how to do it. I found things with server.mapPatch but these return the physical address of the file. I…
-
1
votes1
answer136
viewsQ: Can static classes and methods be used in ASP.NET MVC without problems between user sessions?
I did a routine of login using cookies and as I’m always looking for this information, so you don’t have to be instantiating everywhere I use I left these static classes, my question is if there…
-
3
votes2
answers113
viewsA: Split phone number that comes from an html file and split it in two
can use substring, the first digit is how many characters you want to jump from the string and the second is how many characters you want to pick from the first parameter. string texto =…
c#answered Rafael Scheffer 336 -
6
votes2
answers386
viewsQ: Regular expression C# console application
I have a list of words, for example: São Paulo 9000-000 a 9999-9999 Barigui 8000-0000 a 8999-999 I want to take only the numbers, with the same trace and separate, in another list for example, I…
-
1
votes3
answers352
viewsQ: HTML5 validation before preventing form submission
I’m capturing the event of clique on a button of a form and I am using the preventDefault() not to send the form, but by doing so the validation of the HTML 5 (required, email, maxlength) doesn’t…
-
1
votes1
answer488
viewsQ: Requests POST AJAX ASP net MVC
Good afternoon, I’m with a small doubt, I’m making a POST request with AJAX on ASP net MVC and it works normal, but in firefox I get an error on the console However, this error does not appear on…
-
5
votes1
answer138
viewsQ: Scroll Infinity ASP NET MVC C#
Good afternoon, I am implementing an infinite list in Asp net mvc and I have some questions about what is the best way to do this. I implemented using partial view, making a request via ajax and…
-
0
votes2
answers881
viewsA: PHP Search system ignore uppercase letters and add keywords
About the uppercase and lowercase letters, I believe that the best way is for you to define how you will save the words in the database, if it is uppercase for example, when reading the words that…
-
1
votes2
answers1511
viewsQ: Reading data from a Java file
Good evening, I have a text file like the image I need to read this file and take the data and store it in an object array. For example, I have a ROOM object, this object has the following…
-
0
votes2
answers3154
viewsQ: Sum values of a TD with Avascript
Good afternoon, I have a script that helped me to make right here, which creates a table after reading information from a textarea. After the table is ready I wanted to add up the values of one of…
-
0
votes1
answer2505
viewsQ: Take data from a textarea and fill HTML table
Good afternoon, I’m racking my brain to fix this, someone could help? I have a textarea in which the user will paste the data from an excel spreadsheet, the data enter as follows: 10 | produto1 | 1…