Tech Stuff with Rybo
An overview of technical problems and my solutions for them.
Thursday, April 23, 2009
ASP.NET MVC usercontrol
There are a few things I found out about ASP.Net MVC user controls.
1. The user control cannot be contained in asp:content blocks. The code must be in "the open".
2. You can pass the ViewData as a parameter.
3. To render the user control you must:
4. You do not need the '.ascx' after the name of the view.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment