Prasant Jinaga

Prasant Jinaga

  • 1k
  • 751
  • 425.8k

Pass multiple values to partial View in .Net MVC

Aug 16 2012 4:05 PM
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