Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Iam having a usercontrol in that i have a menu content this content i want add in
my _layout.cshtml .
can an one help me
thanxs
Posted
Comments
StianSandberg 14-May-13 7:16am    
I don't think this is a good idea. It's doable, but don't go there.. Rewrite your usercontrol to a partial view..
[no name] 14-May-13 7:20am    
yes . thats why we use MVC.(Avoid server side controls)

1 solution

No server controls in MVC Razor. Use a Partial View instead.
 
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