Good Practices Asp.net Core MVC: Creating a Dropdown for a current record to be used globally across the system

Asked

Viewed 49 times

0

I have a question: I am creating a backward system in Asp.net core mvc and in my _Layout.cshtml I need to create and load a dropdown listing all the AFFILIATES of the system so that the user selects the branch that he wants to manage. This selected branch should be pulled on all screens of the system... An example of this would be the ACCOUNTS TO PAY... When a record is launched, the branch field will be automatically populated as the basis for the branch that is currently selected. In desktop applications this is common and very easy to do, but in webapp I’m falling on my head right now and catching a lot of... In theory, how would I do that? Would anyone have any example?

inserir a descrição da imagem aqui

  • https://docs.microsoft.com/pt-br/aspnet/core/mvc/views/view-components?view=aspnetcore-2.1 could create a component!

  • Thanks for your help, Virgilio, but the shipment part I understood... Works as a Partialview, but I did not understand how I will do when I select an affiliate and it stay current for the screens use as in the image I add above a Desktop app...

  • One option is to save to localstorage..

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.