0
Reply

Pass multiple values to partial View in .Net MVC

Prasant Jinaga

Prasant Jinaga

Aug 16 2012 4:05 PM
1.7k
Hi,

I have a action result method which is been called while creating a new address

[HttpPost]
public ActionResult AddContactAddress(string test)
{
DemographicsViewModel GetDemographicsViewModl = GetDemographicsViewModel(string.Empty, string.Empty);
return PartialView("ChangeRequestContactAddress", GetDemographicsViewModl);
}

Now i want to pass test value and  GetDemographicsViewModl both data to the Partial view "ChangeRequestContactAddress "

Could it be possible??Any suggestions on this.

Thanks,
Prasant