What a score?
I managed to start the spark view in a call to System.Web.Mvc.ViewUserControl Html.RenderView () from the spark view. I bet I could also place the Spark view in System.Web.Mvc.ViewUserControl using Html.RenderView (). This leads to some options (all with overhead) for sharing the main page:
Write a simple .ascx wrapper for you .spark views. They had the same model object, the wrapper could call HtmlRenderPartial in the wrapped state.
(vice versa) Write a simple .spark wrapper for your .ascx controls.
When I tried to have an Index.spark view using masterpage Site.Master, I received an error message:
The view 'Index' or its master could not be found. The following locations were searched: ~/Views/LfgSettings/Index.aspx ~/Views/LfgSettings/Index.ascx ~/Views/Shared/Index.aspx ~/Views/Shared/Index.ascx Layouts\Site.spark Shared\Site.spark
I don’t know what these paths are, it looks like a search path for representing Index and search paths for its main page. It seems that the .spark file cannot use the .master main page.
Interesting, but if possible, write a wrapper .master file that calls the .spark file, which has the correct content areas. Some reflectors will probably dig up some interfaces that can be created to work together.
Frank schwieterman
source share