I’m looking for some help on a Project which is created in MVC Asp.NET utilizing SQL. I have been successful in creating the basic Controllers which then I created the Views. The Database & Models have also been created. I have broken this down into 2 Stages. I believe most of it can be utilized via the MVC Membership Starter Kit.
Stage 1 – need to have the Login View created where a User after successful is now displayed with their Activities in a List View. Since there are various Activities Types, it needs to direct to the correct View when selected.
Stage 2 – since the User is inside the Web App they can create a New Activity by selecting the [New] button.
1. After a User logs into site how do I display a List of Data based on the Username (UserID) &/or their Company (CoID)?
a. Do I create a Cookie that stores this information to retrieve & if so how does this get accomplished?
b. Or is there a better way with MVC5?
Note: do not want to display this information in the URL Address Field
2. Another is once their go to another View how do we retrieve that same Username (UserID), Company (CoID), &/or their selection from selecting from the List?