Trying to extract elements from a List and display in Blazor razor component

When your blazor page will render first time, it will not yet have awaited your async operation, it will re-render once that operation is done. Meaning on first render your testquestion will be empty – that’s why you have Index Out Of Range, so you need to handle it, say for example “if testquestion is empty – display loading”

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top