<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments for Flixon.com</title>
	<link>http://www.flixon.com</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Fri, 04 Jul 2008 19:08:19 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>Comment on Custom ASP.NET Data Pager Control by admin</title>
		<link>http://www.flixon.com/2008/04/28/custom-aspnet-data-pager-control/#comment-195</link>
		<author>admin</author>
		<pubDate>Mon, 28 Apr 2008 17:43:16 +0000</pubDate>
		<guid>http://www.flixon.com/2008/04/28/custom-aspnet-data-pager-control/#comment-195</guid>
		<description>Here's a slight modification which allows you to place the Pager within the TemplatePagerField of the DataPager (if you are using a data source control).  This allows you to keep your ui consistent and easier to update.

Add the following to the bottom of the HandleEvent method:

if (string.IsNullOrEmpty(this.QueryStringField))
{
    DataPager dataPager = this.Parent.Parent as DataPager;

    if (dataPager != null)
        dataPager.SetPageProperties(this.StartRowIndex, this.PageSize, true);
}

You could optionally call the SetPageProperties method within your own event handler you can wire up against the Pager but this seemed like too much hard work for me.

If you are using the query string approach you will notice the same problem without the above fix.  After abit of fiddling around i finally come up with abit of a hack.  Simply add the following inside the fields part of the DataPager:

&lt;asp:NextPreviousPagerField ShowFirstPageButton="false" ShowLastPageButton="false" ShowNextPageButton="false" ShowPreviousPageButton="false" /&gt;</description>
		<content:encoded><![CDATA[<p>Here&#8217;s a slight modification which allows you to place the Pager within the TemplatePagerField of the DataPager (if you are using a data source control).  This allows you to keep your ui consistent and easier to update.</p>
<p>Add the following to the bottom of the HandleEvent method:</p>
<p>if (string.IsNullOrEmpty(this.QueryStringField))<br />
{<br />
    DataPager dataPager = this.Parent.Parent as DataPager;</p>
<p>    if (dataPager != null)<br />
        dataPager.SetPageProperties(this.StartRowIndex, this.PageSize, true);<br />
}</p>
<p>You could optionally call the SetPageProperties method within your own event handler you can wire up against the Pager but this seemed like too much hard work for me.</p>
<p>If you are using the query string approach you will notice the same problem without the above fix.  After abit of fiddling around i finally come up with abit of a hack.  Simply add the following inside the fields part of the DataPager:</p>
<p><asp :NextPreviousPagerField ShowFirstPageButton="false" ShowLastPageButton="false" ShowNextPageButton="false" ShowPreviousPageButton="false" /></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Flixon Site Generator v1.0 by admin</title>
		<link>http://www.flixon.com/2007/07/26/flixon-site-generator-v1/#comment-162</link>
		<author>admin</author>
		<pubDate>Thu, 10 Apr 2008 08:16:45 +0000</pubDate>
		<guid>http://www.flixon.com/2007/07/26/flixon-site-generator-v1/#comment-162</guid>
		<description>Hi, i haven't looked at rails much.  I came from php/asp to asp.net but I believe they have something similar called scaffolding.  I just find it a real big time saver because I can create the table structure run the script and i instantly have my ui, bll and dal auto generated.

The beerhouse really got me started with using 3 tier architecture (i had done something similar in php but not near as sophisticated).  Now i have my own cms which uses aspects of the beerhouse (mainly the bll - with caching and dal).  Sometime in the future i plan on using linq to sql and will probably update the templates once i have done so.</description>
		<content:encoded><![CDATA[<p>Hi, i haven&#8217;t looked at rails much.  I came from php/asp to asp.net but I believe they have something similar called scaffolding.  I just find it a real big time saver because I can create the table structure run the script and i instantly have my ui, bll and dal auto generated.</p>
<p>The beerhouse really got me started with using 3 tier architecture (i had done something similar in php but not near as sophisticated).  Now i have my own cms which uses aspects of the beerhouse (mainly the bll - with caching and dal).  Sometime in the future i plan on using linq to sql and will probably update the templates once i have done so.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Flixon Site Generator v1.0 by Will S.</title>
		<link>http://www.flixon.com/2007/07/26/flixon-site-generator-v1/#comment-134</link>
		<author>Will S.</author>
		<pubDate>Sun, 30 Mar 2008 01:02:37 +0000</pubDate>
		<guid>http://www.flixon.com/2007/07/26/flixon-site-generator-v1/#comment-134</guid>
		<description>Am I the only one who thinks this is a good idea?  Sounds like Rails, my friend, as I'm sure this was your inspiration.  I'll check this out soon enough as this process sounds like a time saver if you are intimate with the BeerHouse starter kit.  Are you using this for customer projects?  Are you still working on this?</description>
		<content:encoded><![CDATA[<p>Am I the only one who thinks this is a good idea?  Sounds like Rails, my friend, as I&#8217;m sure this was your inspiration.  I&#8217;ll check this out soon enough as this process sounds like a time saver if you are intimate with the BeerHouse starter kit.  Are you using this for customer projects?  Are you still working on this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Adding an empty data template to the repeater control by admin</title>
		<link>http://www.flixon.com/2007/09/26/8/#comment-22</link>
		<author>admin</author>
		<pubDate>Tue, 30 Oct 2007 09:31:48 +0000</pubDate>
		<guid>http://www.flixon.com/2007/09/26/8/#comment-22</guid>
		<description>Hi, I found my solution above does not allow me to place controls within the empty data template, therefore i eventually went for:

public class Repeater : System.Web.UI.WebControls.Repeater
{
private ITemplate _emptyDataTemplate;

[Browsable(false)]
[PersistenceMode(PersistenceMode.InnerProperty)]
public ITemplate EmptyDataTemplate
{
    get { return _emptyDataTemplate; }
    set { _emptyDataTemplate = value; }
}

protected override void OnItemCreated(RepeaterItemEventArgs e)
{
    if (e.Item.ItemType == ListItemType.Footer &#038;&#038; this.Items.Count == 0)
    {
	// If an empty data template has been provided then display it
	if (this.EmptyDataTemplate != null)
	{
	    // Hide the header
	    this.Controls.Clear();

	    // Display the empty data template
	    Control templateContainer = new Control();
	    this.EmptyDataTemplate.InstantiateIn(templateContainer);
	    this.Controls.Add(templateContainer);

	    // Now hide the footer
	    e.Item.Visible = false;
	}
    }
    else
	base.OnItemCreated(e);
}
}

It does mean that your repeater has to have a footertemplate.</description>
		<content:encoded><![CDATA[<p>Hi, I found my solution above does not allow me to place controls within the empty data template, therefore i eventually went for:</p>
<p>public class Repeater : System.Web.UI.WebControls.Repeater<br />
{<br />
private ITemplate _emptyDataTemplate;</p>
<p>[Browsable(false)]<br />
[PersistenceMode(PersistenceMode.InnerProperty)]<br />
public ITemplate EmptyDataTemplate<br />
{<br />
    get { return _emptyDataTemplate; }<br />
    set { _emptyDataTemplate = value; }<br />
}</p>
<p>protected override void OnItemCreated(RepeaterItemEventArgs e)<br />
{<br />
    if (e.Item.ItemType == ListItemType.Footer &#038;&#038; this.Items.Count == 0)<br />
    {<br />
	// If an empty data template has been provided then display it<br />
	if (this.EmptyDataTemplate != null)<br />
	{<br />
	    // Hide the header<br />
	    this.Controls.Clear();</p>
<p>	    // Display the empty data template<br />
	    Control templateContainer = new Control();<br />
	    this.EmptyDataTemplate.InstantiateIn(templateContainer);<br />
	    this.Controls.Add(templateContainer);</p>
<p>	    // Now hide the footer<br />
	    e.Item.Visible = false;<br />
	}<br />
    }<br />
    else<br />
	base.OnItemCreated(e);<br />
}<br />
}</p>
<p>It does mean that your repeater has to have a footertemplate.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Adding an empty data template to the repeater control by Gnilly ASP.NET Developer Notes</title>
		<link>http://www.flixon.com/2007/09/26/8/#comment-21</link>
		<author>Gnilly ASP.NET Developer Notes</author>
		<pubDate>Fri, 26 Oct 2007 21:08:53 +0000</pubDate>
		<guid>http://www.flixon.com/2007/09/26/8/#comment-21</guid>
		<description>&lt;strong&gt;EmptyRepeater - Repeater with Empty Template...&lt;/strong&gt;

...</description>
		<content:encoded><![CDATA[<p><strong>EmptyRepeater - Repeater with Empty Template&#8230;</strong></p>
<p>&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Flixon Site Generator v1.0 by jimi</title>
		<link>http://www.flixon.com/2007/07/26/flixon-site-generator-v1/#comment-3</link>
		<author>jimi</author>
		<pubDate>Thu, 26 Jul 2007 20:39:23 +0000</pubDate>
		<guid>http://www.flixon.com/2007/07/26/flixon-site-generator-v1/#comment-3</guid>
		<description>lee - looking good. i'm sure many (like myself) will find this the biggest timesaver that they could imagine (or hope for).

hopefully, a little 'community' will spring up which will further enhance the templates (especially with the likes of LINQ hoverring not too far away) and ensure that your efforts attain a kind of 'immortality' :)

cheers again - jimi</description>
		<content:encoded><![CDATA[<p>lee - looking good. i&#8217;m sure many (like myself) will find this the biggest timesaver that they could imagine (or hope for).</p>
<p>hopefully, a little &#8216;community&#8217; will spring up which will further enhance the templates (especially with the likes of LINQ hoverring not too far away) and ensure that your efforts attain a kind of &#8216;immortality&#8217; <img src='http://www.flixon.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>cheers again - jimi</p>
]]></content:encoded>
	</item>
</channel>
</rss>
