how to call renderpartial from spark

how to call renderpartial from spark

I'm using both spark and .aspx view engines. My partial is in aspx so i'm tring to call from my spark engine.

I've seen something like the following


Seems like i'm missing a reference, can't really see what.

Dynamic view compilation failed. d:\Website\Views\Retailer\Index.spark(11,23): error CS1061: 'System.Web.Mvc.HtmlHelper' does not contain a definition for 'RenderPartial' and no extension method 'RenderPartial' accepting a first argument of type 'System.Web.Mvc.HtmlHelper' could be found (are you missing a using directive or an assembly reference?)


<use namespace="MvcContrib.UI"/> <use namespace="MvcContrib.UI.Grid"/> <use namespace="MvcContrib.UI.Pager"/> <use namespace="MvcContrib.UI.Grid.ActionSyntax"/> <viewdata model="EStore.Domain.ViewModel.RetailerViewModel"/>   <content name="MainContent">   ${Html.RenderPartial("HeaderControl")} </content> 

MVC - Changing or adding a class for either 'Html.ValidationMessage' or 'Html.TextBox'


Should my ViewModel's constructor populate the ViewModel's data?
Guess, sorry, for the reason this I don't use spark:. Jquery problem:validation code not working
<use namespace="System.Web.Mvc.Html"/> 
RenderPartial is defined in System.Web.Mvc.Html.RenderPartialExtensions. How to make selectedItem in a SelectList be dynamicHowever I don't generally need to import anything to use it for regular MVC 2.. Master ASP.NET MVC
How do I convert DateTime format to ShortDateString in Jquery?

74 out of 100 based on 24 user ratings 104 reviews