« Rails Notes | Main | Tulsa Ruby Workshop »

January 15, 2008

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d8341d7a7453ef00e54fe04d638833

Listed below are links to weblogs that reference RenderUserControl from Controller:

Comments

Nik

Hi there.

With the latest drop of MVC, this no longer works, as you need to pass in additional parameters ( viewName, and masterName) ... any ideas?

all the best.

bclubb

I'll take a look and see if sending two blank strings would work. We've actually started to use only viewusercontrols for pages and even as the master pages so we make this call from an application controller that implements renderview and uses this call to load the view as a viewusercontrol. From here we have the thew viewname and we pass it to the helper.

I don't see any need to know the view when rendering the usercontrol so I would think that passing an empty string for both values should be fine.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment