Michelle Carthy

Michelle Carthy

  • NA
  • 52
  • 10.8k

Showing data from a table depending on certain user,

Oct 26 2017 9:43 AM
I am new to C# and ASP.net so I am having difficulties in understanding how this scenerio would be possible. I am using Visual Studio 2015.
I have an 'owner' log in using their email and password they are redirected to a page which would display a different table called 'Houses' but only display the houses that have the id of the owner which has logged in?
 
I have created the log in and it is able to redirect to the page however I do not know how to show the 'Houses' table that only shows the details depending on the id that is logged in. I have a Houses table which has address,  number of tenants , vacant and owner id and I would like to show address, number of tenants and if it is vacant or not. 
 
If there are any online tutorials to help me with this I would be much appreciated. 
 
Thanks 

Answers (17)