jmb
jmb
CC#
Created by TOLOXI on 9/7/2022 in #help
im trying to code a 4 digit password cracker
Maybe a better approach would be to generate a random string as the secret code instead of a loop?
76 replies
CC#
Created by TOLOXI on 9/7/2022 in #help
im trying to code a 4 digit password cracker
Oh right. Missed it!
76 replies
CC#
Created by TOLOXI on 9/7/2022 in #help
im trying to code a 4 digit password cracker
Anyway. TypeScript > Javascript. TypeScript makes frontend so adorable
76 replies
CC#
Created by TOLOXI on 9/7/2022 in #help
im trying to code a 4 digit password cracker
Set few breakpoints in your code and step through them. This ist the best way to understand the code you wrote. But maybe lower the loop^^
76 replies
CC#
Created by TOLOXI on 9/7/2022 in #help
im trying to code a 4 digit password cracker
But == will also work tho
76 replies
CC#
Created by TOLOXI on 9/7/2022 in #help
im trying to code a 4 digit password cracker
=== is only for type equality
76 replies
CC#
Created by TOLOXI on 9/7/2022 in #help
im trying to code a 4 digit password cracker
That's not true
76 replies
CC#
Created by TOLOXI on 9/7/2022 in #help
im trying to code a 4 digit password cracker
You're testing 9998 against 5432 for equality. It won't pass
76 replies
CC#
Created by cnetworks on 9/7/2022 in #help
How to save Checboxes values into single column?
no problem^^
31 replies
CC#
Created by cnetworks on 9/7/2022 in #help
How to save Checboxes values into single column?
no problem:)
31 replies
CC#
Created by cnetworks on 9/7/2022 in #help
How to save Checboxes values into single column?
yes there is a community license which you can use
31 replies
CC#
Created by cnetworks on 9/7/2022 in #help
How to save Checboxes values into single column?
there are also ui frameworks that would make your life easier like radzen. But I would first learn how to implement this by yourself, just to understand it before using libraries
31 replies
CC#
Created by cnetworks on 9/7/2022 in #help
How to save Checboxes values into single column?
yes it will work
31 replies
CC#
Created by cnetworks on 9/7/2022 in #help
How to save Checboxes values into single column?
you mean in your razor page?
31 replies
CC#
Created by cnetworks on 9/7/2022 in #help
How to save Checboxes values into single column?
I don't think you have to write any js for this. in razor you have attributes like @bind-value or @onchange to call the functions.
31 replies
CC#
Created by cnetworks on 9/7/2022 in #help
How to save Checboxes values into single column?
what do you use as frontend ?
31 replies
CC#
Created by cnetworks on 9/7/2022 in #help
How to save Checboxes values into single column?
Without code I cant help you a lot. But I assue you could do a onchange event listener. Which would call a function like AddToList(ChangeEventArgs cea) then you could take the value from the event argument like this
var value = (boolean)cea.Value;
var value = (boolean)cea.Value;
and then just yourList.Add(value);
31 replies
CC#
Created by cnetworks on 9/7/2022 in #help
How to save Checboxes values into single column?
If you have a list of your selected values you could join them e.g.
var selectedValues = new List<string>() { "1", "2", "3" };
var valuesWithCommaSeparated = string.Join(",", selectedValues );
var selectedValues = new List<string>() { "1", "2", "3" };
var valuesWithCommaSeparated = string.Join(",", selectedValues );
31 replies