How to call a view from different controller action

Rashmi
Rashmi
Member
78 Points
24 Posts

Hi,

I have a view and want to call from two controller. Is it possible?

Views: 8122
Total Answered: 1
Total Marked As Answer: 0
Posted On: 30-Nov-2015 08:28

Share:   fb twitter linkedin
Answers
Jak
Jak
Member
352 Points
151 Posts
     

Hi Rashmi,

You can put the view into the shared folder since the view engine first search into the current controller directory and then shared directory.

Example:

return View("NameOfShareView");
Posted On: 15-Dec-2015 22:14
banner

Blog

Active User (2)

 Log In to Chat