Quantcast
Channel: User Liyun Zhang - MSFT - Stack Overflow
Viewing all articles
Browse latest Browse all 446

Answer by Liyun Zhang - MSFT for Display List in MAUI Blazor App after json deserialization

$
0
0

That was caused by @Questions. And you want to

Display List in MAUI Blazor App after json deserialization

You can delete the @Questions and @jsonstring and display data in the foreach loop. Such as:

<table class="table"><thead><tr><th>DaysBegin</th><th>DaysEnd</th><th>Interest</th><th>SrInterest</th></tr></thead><tbody>@foreach (InQuestion inques in Questions){    // Pass the Dto properties to the component<tr><td>@inques.DaysBegin</td><td>@inques.DaysEnd</td><td>@inques.Interest</td><td>@inques.SrInterest</td></tr>        }</tbody></table>

And the result image:

enter image description here


Viewing all articles
Browse latest Browse all 446

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>