locked
select one of N cards RRS feed

  • Question

  • User1457412228 posted

    I want to display N bootstrap cards, with one of them highlighted to show it was previously selected.

    Then, when the user clicks on one of the cards, I want to know which card was selected on server side.

    I don't know what I have done wrong, but it seems my entire approach is suspect and so I would like to start over.

    Sunday, August 18, 2019 5:52 PM

Answers

  • User753101303 posted

    Hi,

    Be explicit about what you find suspect or what you are trying to do.

    For example if you meant this is an actual card game and the problem is telling other players which card the active player selected you could have a look at  https://docs.microsoft.com/en-us/aspnet/core/signalr/introduction?view=aspnetcore-2.2

    It allows to establish a connection between the web server and each connected user. As usual a user can send an information to the server but the server can then immediately send something to other users without any action from them.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, August 18, 2019 7:31 PM