Pakeeza

Pakeeza

  • 1.5k
  • 107
  • 4.2k

Binding view from multiple table in mvc

Jul 12 2024 12:13 PM

I have a simple mvc application in which I have login form in this login form I have student email and password which are coming from the text boxes this view is strongly type and binding with login model ,now i wanted to add one more field to be passed to controller from view and this new field is in anothet table like student house number ,i have added the property as public studentadrrss addrss,as here studentadrrss is a entity it comes in controller but emplty i want to get the student adress of that specific student and pass in controller or to get it in controller and pass in view how to do that


Answers (1)