<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jigsaw Boys &#187; C#</title>
	<atom:link href="http://www.jigsawboys.com/tag/c/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jigsawboys.com</link>
	<description>Security, Network and Computer Tech Tip Database!</description>
	<lastBuildDate>Wed, 17 Aug 2011 22:59:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>SubSonic 3.0 ActiveRecord Tutorial</title>
		<link>http://www.jigsawboys.com/2009/11/25/subsonic-3-0-activerecord-examples/</link>
		<comments>http://www.jigsawboys.com/2009/11/25/subsonic-3-0-activerecord-examples/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 07:42:58 +0000</pubDate>
		<dc:creator>Jamsi</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[subsonic]]></category>

		<guid isPermaLink="false">http://www.jigsawboys.com/?p=275</guid>
		<description><![CDATA[I wanted to demonstrate the complete and utter power of SubSonic Activerecord&#8217;s toolset. Pretty much, its an easy to use querying engine which automatically creates objects that you can use within your ASP.NET project. You can use LINQ querying if you like, or you can use the SubSonic preferred way as demonstrated below; Want to [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>I wanted to demonstrate the complete and utter power of SubSonic Activerecord&#8217;s toolset. Pretty much, its an easy to use querying engine which automatically creates objects that you can use within your ASP.NET project. You can use LINQ querying if you like, or you can use the SubSonic preferred way as demonstrated below;</p>
<p><strong>Want to bind a gridview?</strong></p>
<pre class="brush: csharp; title: ; notranslate">
var categories = category.All();
gvList.DataSource = categories;
gvList.DataBind();
</pre>
<p>Boom. Done.</p>
<pre class="brush: csharp; title: ; notranslate">
&lt;pre lang=&quot;csharp&quot; line=&quot;1&quot;&gt;
int iLineID = 1;
category delCat = category.SingleOrDefault(x =&gt; x.id == iLineID);
delCat.Delete();
</pre>
<p>Too easy right?</p>
<p><strong>What about adding a new record?</strong></p>
<pre class="brush: csharp; title: ; notranslate">
category newCat = new category();
newCat.name = &quot;Dummy category name&quot;;
newCat.Add();
</pre>
<p>How easy is that? Go <a href="http://subsonicproject.com/download">grab SubSonic now</a>!</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jigsawboys.com/2009/11/25/subsonic-3-0-activerecord-examples/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ASP.NET &amp; AlternatingRowStyle &amp; IE8</title>
		<link>http://www.jigsawboys.com/2009/09/17/asp-net-alternatingrowstyle-ie8/</link>
		<comments>http://www.jigsawboys.com/2009/09/17/asp-net-alternatingrowstyle-ie8/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 04:17:36 +0000</pubDate>
		<dc:creator>Jamsi</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[IE8]]></category>

		<guid isPermaLink="false">http://www.jigsawboys.com/?p=252</guid>
		<description><![CDATA[If you&#8217;re a ASP.NET developer like myself, you may or may not have noticed a few changes to your sites when viewed in Internet Explorer 8. As an example I had a gridview which had a different background for alternating rows. And my CSS was something like The Solution The easy (and maybe a little [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re a ASP.NET developer like myself, you may or may not have noticed a few changes to your sites when viewed in Internet Explorer 8.</p>
<p>As an example I had a gridview which had a different background for alternating rows.</p>
<pre class="brush: csharp; title: ; notranslate">
&lt;AlternatingRowStyle CssClass=&quot;odd&quot; /&gt;&lt;/code&gt;
</pre>
<p>And my CSS was something like</p>
<pre class="brush: csharp; title: ; notranslate">
.odd { background-image: url(../graphics/tealbg.gif); }
</pre>
<h2>The Solution</h2>
<p>The easy (and maybe a little messy) way to solve this is to force the page to use IE7 compatibility. You can do this by adding the following to your <head> tag.</p>
<pre class="brush: plain; title: ; notranslate">
&lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=7&quot; /&gt;
</pre>
<p><b>Note:</b> The above meta tag MUST appear before any link tags (stylesheet includes for example)</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jigsawboys.com/2009/09/17/asp-net-alternatingrowstyle-ie8/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The GridView fired event PageIndexChanging which wasn&#8217;t handled</title>
		<link>http://www.jigsawboys.com/2008/10/22/the-gridview-fired-event-pageindexchanging-which-wasnt-handled/</link>
		<comments>http://www.jigsawboys.com/2008/10/22/the-gridview-fired-event-pageindexchanging-which-wasnt-handled/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 23:49:41 +0000</pubDate>
		<dc:creator>Jamsi</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[gridview]]></category>

		<guid isPermaLink="false">http://www.jigsawboys.com/?p=179</guid>
		<description><![CDATA[If you've set a gridviews AllowPaging attribute to "true", you'll notice the following error;
The GridView fired event PageIndexChanging which wasn't handled


No related posts.]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve set a gridviews AllowPaging attribute to &#8220;true&#8221;, you&#8217;ll notice the following error;</p>
<blockquote><p>The GridView fired event PageIndexChanging which wasn&#8217;t handled</p></blockquote>
<p>To setup paging with Gridviews, you also need to set the page index property to the new page that you wish to view. Funny enough, this is extremely easy to do. See below for a code example written in C#.</p>
<p>The ASPX page</p>
<pre class="brush: plain; title: ; notranslate">
&lt;asp:GridView ID=&quot;gvList&quot; runat=&quot;server&quot; AutoGenerateColumns=&quot;true&quot; AllowPaging=&quot;true&quot; PageSize=&quot;10&quot; OnPageIndexChanging=&quot;gvList_PageIndexChanging&quot;&gt;
</pre>
<p>and the C# code</p>
<pre class="brush: csharp; title: ; notranslate">
    protected void gvList_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        bindGrid();

        gvList.PageIndex = e.NewPageIndex;
        gvList.DataBind();
    }
</pre>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jigsawboys.com/2008/10/22/the-gridview-fired-event-pageindexchanging-which-wasnt-handled/feed/</wfw:commentRss>
		<slash:comments>31</slash:comments>
		</item>
	</channel>
</rss>

