How to pass data of partial view into view in mvc4?
I have one partial view and one simple Index view I have dragged partial view into simple Index view.Now I entered data into partial view and after click on button I want to pass data Index view. Please give me solution
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Anupam SinghRank #643 · 3.7K reputationPosted Jul 1, 2014, 11:56 PM EDT
data into hidden fields in your parent view (Index in your case).
Than you can simple retrieve it using HttpContext or Formcollection (if you dont have property in model).
Atul Band145 reputationPosted Jul 2, 2014, 12:34 AM EDT
Anupam SinghRank #643 · 3.7K reputationPosted Jul 2, 2014, 1:13 AM EDT
e.g.