© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
4 replies
xdd

❔ Web things :)

hi, i have small web app (pet. proj.) which should be smthing like shop,where u can add your products. So want to ask how ppl do some things in prjoects like this.
1 - Log in, Reg/Log out Buttons in header (screenshot 1). So in my case in every page's js file i have onload func to checks cookies for authorization thing, like -
window.addEventListener("load", async () => {
    await FillProducts();

    if (document.cookie.includes(".AspNetCore.Cookies")) {
        ButtonLoged();
    }
    else {
        ButtonNotLoged();
    }
});
window.addEventListener("load", async () => {
    await FillProducts();

    if (document.cookie.includes(".AspNetCore.Cookies")) {
        ButtonLoged();
    }
    else {
        ButtonNotLoged();
    }
});

and there is functions which loads needed buttons based on authorization status.
what do u think about this way to handle problem?

2 - i want to make page of products (screenshot 2), like on screenshot, have no clue how to make this, any advices? i thought i can load like, if page is 1, i load 1-25 items from db, on page 2 load 26-50, on page 3 load 51-75. but i think its a bit hard to do like this, especially when it comes to load data with filters, (or maybe i should use default mssql with join's instead of Ef core?). or maybe there is some technologies especially for that thing.
image.png
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Some web things
C#CC# / help
3y ago
✅ Web things minimal api
C#CC# / help
3y ago
Legal things
C#CC# / help
3y ago
Referencing Things
C#CC# / help
3y ago