Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a controller for Product Search action and a corresponding View for it. I want to add that very Product Search View in my layout page so that it is accessible from everywhere in that application.I have been trying @Html.Render("_ProdSearch") but to no avail.So can anyone give me a detailed explanation as to how to do it. Thanks in advance.
Posted

 
Share this answer
 
Comments
Shiv19 18-Dec-12 1:30am    
Thanks rejeesh....That worked for me...
Hello,

you can try
C#
@Html.Partial("_PartialView", (ModelClass)View.Data)

that would work for you
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900