Custom Navigation and form caching in ASP.Net Core.
I am fairly new (okay very new) to ASP.Net core, and am trying to figure out how to handle a request from our user group. This is my groups first foray into a web-based app (all of our previous apps were windows form-based).
We currently have a create wizard page. There are a total of 5 different objects being created via this page so a ViewModel was chosen (easy enough to this point). One of the objects is a Customer object. The request is that we put a search icon next to the name fields. The end user could click the search icon and go to the Customer Search page (again easy enough), they would put in their search criteria and select a customer to use. At this point the request is to take them back to the wizard page (with the selected customer object). They want all previous information entered to be saved and repopulated, and then the Customer information all populated for the end user to see.
Is the TempData the best way to be saving all of the existing information or is there something better? Should I also be using the TempData to pass the selected Object back to the wizard page?
There is another object where I would be doing the same thing on the form if that has any impact on the answer.
Thanks.
0 comments:
Post a Comment