Posts by edro • 149 points
10 posts
-
0
votes1
answer87
viewsQ: Taking values from a form using a model
I’m creating a web form and I’ve been told here at Sopt to use a model, since I’m using . Net Core Razor. I am trying to create the model, to pass parameter but I cannot recover the values of the…
-
1
votes2
answers262
viewsQ: Add value to a string list
I have a class, and in it I have a List<string> and I just create it to add the values elsewhere. But when I try to add a value, I get the following error: Nullreferenceexception: Object…
-
0
votes0
answers25
viewsQ: Create a web form model
I’m putting together a web page with . Net Core and I have a web form that has many fields and I was thinking about how to get all this information filled out more dynamically, I asked a question…
-
3
votes1
answer83
viewsQ: Counting amount of results of a Split()
I have a string that looks like this: Yeah, No, Maybe And I have a code that I need to put these string results separately into a <option> of a <select>. I intend to do this through a…
-
1
votes3
answers154
viewsQ: How to "mount" a multiple variable?
Would it be possible to mount a variable to pass a value to it? For example: var teste0 = "valor"; var teste1 = "outro valor"; var teste2 = "mais um valor"; for(int i=0;i<3;i++){ teste+i = "mudou…
-
1
votes1
answer55
viewsQ: Difference of the same code with and without for()
I am mounting a jQuery code with dateTimePicker Bootstrap. I’m tried a problem which is this: when I do it in a more extensive way it works perfectly, but when I try to do it in a more simplified,…
-
0
votes1
answer141
viewsQ: How to check by the url if the page is the index
As I get through JS, if my url is the index? I have a code like this: window.onload = function () { url = window.location.href; if (url.match("/dashboard")) { [...] } } that checks if it is in the…
-
4
votes5
answers1315
viewsQ: Join two events that have the same function
I am new to programming and I was creating an html code, in which I am calling JS functions in my own input. Anyway, I have this excerpt, in my input code: <input type="text"…
-
1
votes1
answer824
viewsQ: Bootstrap Datetimepicker Moment.js
I am trying to implement Bootstrap Datetimepicker in my project that is with version 4.3.1 of Bootstrap. The problem is I don’t know how to do it. I downloaded from this site:…
-
1
votes3
answers515
viewsQ: Button type reset calls a function
I have a web form on which I put a input type="reset", to delete the form data in case the user needs it. The button works and is erasing the data as desired, but I’m having a problem. I have a…