Sunday, June 24, 2018

Asp.Net Core - gather data from Partial Views

Hi everyone,

I have complex object with multiple nested objects that I want to display to user and let him fill the data. It looks something like this:

  • frequency (int)
  • requester (object)
    • name (string)
    • age (int)
  • ...

I created controller and added view -> it has only the frequency field (becuase other fields are objects). This works, editing frequency sends data back to controller. I've added other partial views and included them into the main view - but data from partial views do not send back into controller (or I'm unable to get the data). I've asked on Stack Overflow, but I've got no response. Could you please look at it? I have more details and code in there.

Thank You!

Tl;Dr: I have view. I can get data from it. I have nested partialView in that view. I cannot get data from it. How can I get data from it?

Asp.Net Core - gather data from Partial Views Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team