frankcollins3 / ASPokedex

Pokedex with ASP backend / razor pages, and VanillaJS front end
1 stars 0 forks source link

iterate (JS) list-data retrieving functions in C# [9:08pm] #10

Open frankcollins3 opened 1 year ago

frankcollins3 commented 1 year ago

attempting to do: @function{} that takes element-img-src-data as params and returns pokemon.id from img-src works in javascript

Screen Shot 2023-09-19 at 9 07 57 PM

Screen Shot 2023-09-19 at 9 09 32 PM

error: Screen Shot 2023-09-19 at 9 08 06 PM

proposed approach: part of this approach includes seeing (EventArgs e) in a func() on the System.Runtime.Caching docs Screen Shot 2023-09-19 at 9 10 54 PM here is the function that has (EventArgs e) being used. Screen Shot 2023-09-19 at 9 10 58 PM

possible improvements:

frankcollins3 commented 1 year ago

👍 wow the answer is to keep things the way they are. kind of surprised that client code wouldn't have access to those functions Screen Shot 2023-09-19 at 9 17 08 PM [9:18pm]