I cooked my head to find a good solution for it, and finally, I can breathe after finishing. So, I would like to share with you my solution. Paging and Alphabetical Sort using only Razor and Umbraco API.
The Razor well used can be an advantage and it was created to be used together with HTML.
The code is simple, easy to use, ease to customize, it is using only Razor and HTML. Maybe you see the code hard to understand because of this dark background.
However I can understand you point of view also.
I think like this: "different solutions different approaches".
Anyway, this minimalist approach for me works great. Maybe we have different points of view, but, I created and tested this code and it is fast and effective.
Creating Paging and Alphabetical Sort with Razor
Hi guys,
I cooked my head to find a good solution for it, and finally, I can breathe after finishing. So, I would like to share with you my solution. Paging and Alphabetical Sort using only Razor and Umbraco API.
I hope that it could help you be more inspired.
}
Problems, concerns or improvements, please let me know will be a pleasure collaborate and support you.
Cheers, Leonardo Moura
I think from a manageability viewpoint, your code is hard to read and debug.
As a suggestion you may want to field out some of the logic to a supporting helper class or even create some helpers on the view.
at least that way you can separate your code and HTML a bit more.
https://docs.microsoft.com/en-us/aspnet/web-pages/overview/ui-layouts-and-themes/creating-and-using-a-helper-in-an-aspnet-web-pages-site
Mixing so much razor and HTML can be a headache and harder to locate errors.
Dear Streety,
So, I disagree with you.
The Razor well used can be an advantage and it was created to be used together with HTML.
The code is simple, easy to use, ease to customize, it is using only Razor and HTML. Maybe you see the code hard to understand because of this dark background.
However I can understand you point of view also.
I think like this: "different solutions different approaches".
Anyway, this minimalist approach for me works great. Maybe we have different points of view, but, I created and tested this code and it is fast and effective.
Thank you for your suggestion I gonna study it.
is working on a reply...