0

I have tried to use all the above methods to store a value in the controller method, after which I give a call to the partial view.

The problem here is the value that I had stored earlier gets flushed.

I need to persist that value. What should i do?

tereško
  • 58,060
  • 25
  • 98
  • 150
Soni
  • 3
  • 2
  • public ActionResult test(){@ViewBag.Test = "xyz" return PartialView("_testPV") } – Soni Aug 15 '12 at 12:57
  • cannot access ViewBag's value. Similarly even if i take ViewData or Session,i am not able to access the value that I have stored – Soni Aug 15 '12 at 12:59

0 Answers0