<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: Fun with IView and IViewEngine</title>
	<atom:link href="http://software.herbrandson.com/index.php/2009/06/fun-with-iview-and-iviewengine/feed/" rel="self" type="application/rss+xml" />
	<link>http://software.herbrandson.com/index.php/2009/06/fun-with-iview-and-iviewengine/</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Sat, 31 Jul 2010 15:50:53 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: herbrandson</title>
		<link>http://software.herbrandson.com/index.php/2009/06/fun-with-iview-and-iviewengine/comment-page-1/#comment-310</link>
		<dc:creator>herbrandson</dc:creator>
		<pubDate>Thu, 13 Aug 2009 15:34:59 +0000</pubDate>
		<guid isPermaLink="false">http://software.herbrandson.com/?p=57#comment-310</guid>
		<description>Great! I'm glad it's working for you now.</description>
		<content:encoded><![CDATA[<p>Great! I&#8217;m glad it&#8217;s working for you now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sunny</title>
		<link>http://software.herbrandson.com/index.php/2009/06/fun-with-iview-and-iviewengine/comment-page-1/#comment-309</link>
		<dc:creator>Sunny</dc:creator>
		<pubDate>Thu, 13 Aug 2009 15:09:59 +0000</pubDate>
		<guid isPermaLink="false">http://software.herbrandson.com/?p=57#comment-309</guid>
		<description>Alrighty - something weired with my VS2008 intellisense due to which I could not get to the method... but typing it in solved the problem &amp; the code works, odd but true!

Thanks for this concept &amp; all the help!</description>
		<content:encoded><![CDATA[<p>Alrighty - something weired with my VS2008 intellisense due to which I could not get to the method&#8230; but typing it in solved the problem &amp; the code works, odd but true!</p>
<p>Thanks for this concept &amp; all the help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: herbrandson</title>
		<link>http://software.herbrandson.com/index.php/2009/06/fun-with-iview-and-iviewengine/comment-page-1/#comment-299</link>
		<dc:creator>herbrandson</dc:creator>
		<pubDate>Wed, 12 Aug 2009 22:34:18 +0000</pubDate>
		<guid isPermaLink="false">http://software.herbrandson.com/?p=57#comment-299</guid>
		<description>If DynamicView.Render is not being called, it sounds like the request is not being handled by the DynamicViewEngine. Is DynamicViewEngine.FindView being called? If so, is it returning a ViewEngineResult with an instance of DynamicView?

AddContentTemplate is a function on DynamicViewPage and it handles rendering content to the correct content area on the master page. The source code for AddContentTemplate is included in the original post. You shouldn't need to deal with it.

Let me know if you're still having trouble.</description>
		<content:encoded><![CDATA[<p>If DynamicView.Render is not being called, it sounds like the request is not being handled by the DynamicViewEngine. Is DynamicViewEngine.FindView being called? If so, is it returning a ViewEngineResult with an instance of DynamicView?</p>
<p>AddContentTemplate is a function on DynamicViewPage and it handles rendering content to the correct content area on the master page. The source code for AddContentTemplate is included in the original post. You shouldn&#8217;t need to deal with it.</p>
<p>Let me know if you&#8217;re still having trouble.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sunny</title>
		<link>http://software.herbrandson.com/index.php/2009/06/fun-with-iview-and-iviewengine/comment-page-1/#comment-297</link>
		<dc:creator>Sunny</dc:creator>
		<pubDate>Wed, 12 Aug 2009 21:55:26 +0000</pubDate>
		<guid isPermaLink="false">http://software.herbrandson.com/?p=57#comment-297</guid>
		<description>well, I have the code exactly as shown here. 

The Render method of my view class does not get called, so even though I can see the master page &amp; layout applied to the rendered output, I am not able to see my view. 

I dont know what code needs to go into the AddContentTemplate method.

Thanks for your reply!</description>
		<content:encoded><![CDATA[<p>well, I have the code exactly as shown here. </p>
<p>The Render method of my view class does not get called, so even though I can see the master page &amp; layout applied to the rendered output, I am not able to see my view. </p>
<p>I dont know what code needs to go into the AddContentTemplate method.</p>
<p>Thanks for your reply!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: herbrandson</title>
		<link>http://software.herbrandson.com/index.php/2009/06/fun-with-iview-and-iviewengine/comment-page-1/#comment-295</link>
		<dc:creator>herbrandson</dc:creator>
		<pubDate>Wed, 12 Aug 2009 20:56:10 +0000</pubDate>
		<guid isPermaLink="false">http://software.herbrandson.com/?p=57#comment-295</guid>
		<description>@Sunny - AddContentTemplate is a function on the private class "DynamicViewPage". Are you using DynamicViewPage (instead of ViewPage) in DynamicView.Render?</description>
		<content:encoded><![CDATA[<p>@Sunny - AddContentTemplate is a function on the private class &#8220;DynamicViewPage&#8221;. Are you using DynamicViewPage (instead of ViewPage) in DynamicView.Render?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sunny</title>
		<link>http://software.herbrandson.com/index.php/2009/06/fun-with-iview-and-iviewengine/comment-page-1/#comment-294</link>
		<dc:creator>Sunny</dc:creator>
		<pubDate>Wed, 12 Aug 2009 20:39:56 +0000</pubDate>
		<guid isPermaLink="false">http://software.herbrandson.com/?p=57#comment-294</guid>
		<description>In continuation - I am missing the method: 

AddContentTemplate(contentPlaceHolderId,
                compiledTemplateBuilder);

seems like some thing is missing

thanks</description>
		<content:encoded><![CDATA[<p>In continuation - I am missing the method: </p>
<p>AddContentTemplate(contentPlaceHolderId,<br />
                compiledTemplateBuilder);</p>
<p>seems like some thing is missing</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sunny</title>
		<link>http://software.herbrandson.com/index.php/2009/06/fun-with-iview-and-iviewengine/comment-page-1/#comment-293</link>
		<dc:creator>Sunny</dc:creator>
		<pubDate>Wed, 12 Aug 2009 20:32:05 +0000</pubDate>
		<guid isPermaLink="false">http://software.herbrandson.com/?p=57#comment-293</guid>
		<description>hey,

I love this concept &amp; I was hoping to use it in one of my projects. But seems like the Render method of the ViewUserControl is not getting called, is something missing in your code sample?

thanks</description>
		<content:encoded><![CDATA[<p>hey,</p>
<p>I love this concept &amp; I was hoping to use it in one of my projects. But seems like the Render method of the ViewUserControl is not getting called, is something missing in your code sample?</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: herbrandson</title>
		<link>http://software.herbrandson.com/index.php/2009/06/fun-with-iview-and-iviewengine/comment-page-1/#comment-283</link>
		<dc:creator>herbrandson</dc:creator>
		<pubDate>Tue, 11 Aug 2009 19:12:20 +0000</pubDate>
		<guid isPermaLink="false">http://software.herbrandson.com/?p=57#comment-283</guid>
		<description>@Andrej - I don't think it would be too hard to make something like that work. Try adding another ViewUserControl property to DynamicView (named something like "LeftBar") and use viewPage.AddContentControl to render it in the desired content area.</description>
		<content:encoded><![CDATA[<p>@Andrej - I don&#8217;t think it would be too hard to make something like that work. Try adding another ViewUserControl property to DynamicView (named something like &#8220;LeftBar&#8221;) and use viewPage.AddContentControl to render it in the desired content area.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrej Kaurin</title>
		<link>http://software.herbrandson.com/index.php/2009/06/fun-with-iview-and-iviewengine/comment-page-1/#comment-282</link>
		<dc:creator>Andrej Kaurin</dc:creator>
		<pubDate>Tue, 11 Aug 2009 17:43:48 +0000</pubDate>
		<guid isPermaLink="false">http://software.herbrandson.com/?p=57#comment-282</guid>
		<description>Hello, nice work. What I am trying to do is the following:
- Pages are dynamic and created programmatically

PageID     MasterPageLocation
-----------------------------
1           "~/app_master/default.master"

next I have list of partial views like this

ViewID   ContentPlaceHolderID   PageID   Path
---------------------------------------------
1        "LeftBar"               1       "~/some.ascx"
2        "MainContent            1       "~/other.ascx"

Maybe good thing to think about since most of CMS systems requires such approach.</description>
		<content:encoded><![CDATA[<p>Hello, nice work. What I am trying to do is the following:<br />
- Pages are dynamic and created programmatically</p>
<p>PageID     MasterPageLocation<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
1           &#8220;~/app_master/default.master&#8221;</p>
<p>next I have list of partial views like this</p>
<p>ViewID   ContentPlaceHolderID   PageID   Path<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
1        &#8220;LeftBar&#8221;               1       &#8220;~/some.ascx&#8221;<br />
2        &#8220;MainContent            1       &#8220;~/other.ascx&#8221;</p>
<p>Maybe good thing to think about since most of CMS systems requires such approach.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
