0

Im new in MVC and im having a hard time passing a string parameter value (subjectid) to another action result in the same controller.

I badly need help.

Controller - ActionResult Content

Controller - ActionResult Forward

ActionResult Content needs to pass the ticketcontent to a view. Will still i be able to use the RedirectToAction? Any other solution/s please.

1 Answers1

0

Did you try using RedirectToAction()? What error do you get? Take a look at below if it helps.

RedirectToAction with parameter

Deepak Agarwal
  • 458
  • 1
  • 4
  • 18
  • If i use RedirectToAction how will i render the view for may ActionResult Content? – Migs Mempin Jan 06 '19 at 11:24
  • Do you want to execute Controller - ActionResult Forward in the same request? I believe this would be executed/invoked from some view and you can pass required parameters via route parameters or query strings. – Deepak Agarwal Jan 07 '19 at 04:31