In ASP.Net we always use so may ASP.Net controls . But we also know ASP.Net controls have ViewState , so we should ignore using ASP.Net controls as much as possible to reduce the Load time of DOM .
In my example , I will show how we can bind and show the data to HTML without using ASP.Net Control in ASP.Net.
I have a List of a custom object like below :
This is a list of a ViewModel . and the ViewModel of my example is like below :::
Let, We have populated the List from Database Server . Now we have to show/Bind the Data to the UI .
So my markup code will be just simple like below :
So , its done 🙂