<?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>Dan Appleyard &#187; Development</title>
	<atom:link href="http://www.danappleyard.com/category/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.danappleyard.com</link>
	<description>Developer&#039;s Thoughts on Tech, Life, &#38; Stuff</description>
	<lastBuildDate>Thu, 21 Jul 2011 21:43:23 +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>Enabling or disabling a validator control in javascript</title>
		<link>http://www.danappleyard.com/2011/07/21/enabling-or-disabling-a-validator-control-in-javascript/</link>
		<comments>http://www.danappleyard.com/2011/07/21/enabling-or-disabling-a-validator-control-in-javascript/#comments</comments>
		<pubDate>Thu, 21 Jul 2011 21:39:36 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[web forms]]></category>

		<guid isPermaLink="false">http://www.danappleyard.com/?p=709</guid>
		<description><![CDATA[Recently I had to have a form that had a requiredfieldvalidator that was supposed to validate only on certain conditions. I did not want the validator to validate its control (textbox B) unless textbox A had a value in it. I decided the best way to do this was to capture the keyup event of [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I had to have a form that had a requiredfieldvalidator that was supposed to validate only on certain conditions.  I did not want the validator to validate its control (textbox B) unless textbox A had a value in it.  I decided the best way to do this was to capture the keyup event of textbox A and if there was a value in the textbox, to turn the validator for textbox B on.  To do that via javascript, you have to utilize the asp.net built in javascript function ValidatorEnable.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
    <span style="color: #003366; font-weight: bold;">var</span> makeEnabled <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">;</span>
    <span style="color: #003366; font-weight: bold;">var</span> validatorControl <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;%= RequiredFieldValidator1.ClientID %&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    ValidatorEnable<span style="color: #009900;">&#40;</span>validatorControl<span style="color: #339933;">,</span> makeEnabled<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.danappleyard.com/2011/07/21/enabling-or-disabling-a-validator-control-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create an ical file in ASP.NET MVC</title>
		<link>http://www.danappleyard.com/2011/03/15/create-an-ical-file-in-asp-net-mvc/</link>
		<comments>http://www.danappleyard.com/2011/03/15/create-an-ical-file-in-asp-net-mvc/#comments</comments>
		<pubDate>Tue, 15 Mar 2011 12:55:48 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.danappleyard.com/?p=629</guid>
		<description><![CDATA[I recently had to write some code that generates an ical file and sends it to the browser. I decided to utilize the awesomeness that is asp.net mvc and try it like that. Following the information I got from reading Stephen Walther&#8217;s blog entry on using MVC to generate files to download, I started by [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had to write some code that generates an ical file and sends it to the browser.  I decided to utilize the awesomeness that is asp.net mvc and try it like that. Following the information I got from reading <a href="http://stephenwalther.com/blog/archive/2008/06/16/asp-net-mvc-tip-2-create-a-custom-action-result-that-returns-microsoft-excel-documents.aspx">Stephen Walther&#8217;s blog entry on using MVC to generate files to download</a>, I started by creating a MVC controller that processes the request.</p>

<div class="wp_syntax"><div class="code"><pre class="vbnet" style="font-family:monospace;"><span style="color: #FF8000;">Public</span> <span style="color: #0600FF;">Class</span> ICalController
        <span style="color: #0600FF;">Inherits</span> Controller
&nbsp;
        <span style="color: #FF8000;">Private</span> _sessionRepo <span style="color: #FF8000;">As</span> ISessionRepository
        <span style="color: #FF8000;">Private</span> _locationRepo <span style="color: #FF8000;">As</span> ILocationRepository
&nbsp;
        <span style="color: #FF8000;">Public</span> <span style="color: #0600FF;">Sub</span> <span style="color: #FF8000;">New</span><span style="color: #000000;">&#40;</span><span style="color: #FF8000;">ByVal</span> sessionRepo <span style="color: #FF8000;">As</span> ISessionRepository, _
                             <span style="color: #FF8000;">ByVal</span> locationRepo <span style="color: #FF8000;">As</span> ILocationRepository<span style="color: #000000;">&#41;</span>
            _sessionRepo <span style="color: #008000;">=</span> sessionRepo
            _locationRepo <span style="color: #008000;">=</span> locationRepo
        <span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Sub</span>
&nbsp;
        <span style="color: #FF8000;">Public</span> <span style="color: #0600FF;">Function</span> SessionEvent<span style="color: #000000;">&#40;</span><span style="color: #FF8000;">ByVal</span> sessionID <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">Long</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">As</span> ActionResult
            <span style="color: #0600FF;">Dim</span> s <span style="color: #FF8000;">As</span> SessionsEntity <span style="color: #008000;">=</span> _sessionRepo.<span style="color: #0000FF;">GetSession</span><span style="color: #000000;">&#40;</span>sessionID<span style="color: #000000;">&#41;</span>
            <span style="color: #0600FF;">Dim</span> <span style="color: #0600FF;">loc</span> <span style="color: #FF8000;">As</span> LocationsEntity <span style="color: #008000;">=</span> _locationRepo.<span style="color: #FF8000;">Get</span><span style="color: #000000;">&#40;</span>s.<span style="color: #0000FF;">LocationID</span><span style="color: #000000;">&#41;</span>
            <span style="color: #FF8000;">Return</span> ICalEvent<span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;session.ics&quot;</span>, <span style="color: #0600FF;">loc</span>.<span style="color: #0000FF;">CodeAndName</span>, _
                                   s.<span style="color: #0000FF;">SessionName</span>, s.<span style="color: #0000FF;">SessionName</span>, _
                                   s.<span style="color: #0000FF;">StartDateUTC</span>, s.<span style="color: #0000FF;">EndDateUTC</span><span style="color: #000000;">&#41;</span>
        <span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Function</span>
    <span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Class</span></pre></div></div>

<p>I then created a custom ActionResult that creates the actual ical file.  Not surprisingly I called it ICalEventResult.  I created an DateTime extension method to format the utc dates into the correct format for the ical file (I won&#8217;t include it here).</p>

<div class="wp_syntax"><div class="code"><pre class="vbnet" style="font-family:monospace;"><span style="color: #FF8000;">Public</span> <span style="color: #0600FF;">Class</span> ICalEventResult
        <span style="color: #0600FF;">Inherits</span> ActionResult
&nbsp;
        <span style="color: #FF8000;">Private</span> _startUtc <span style="color: #FF8000;">As</span> DateTime
        <span style="color: #FF8000;">Private</span> _endUtc <span style="color: #FF8000;">As</span> DateTime
        <span style="color: #FF8000;">Private</span> _summary <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span>
        <span style="color: #FF8000;">Private</span> _description <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span>
        <span style="color: #FF8000;">Private</span> _location <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span>
        <span style="color: #FF8000;">Private</span> _fileName <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span>
&nbsp;
        <span style="color: #FF8000;">Public</span> <span style="color: #0600FF;">Sub</span> <span style="color: #FF8000;">New</span><span style="color: #000000;">&#40;</span><span style="color: #FF8000;">ByVal</span> startUtc <span style="color: #FF8000;">As</span> DateTime, <span style="color: #FF8000;">ByVal</span> endUtc <span style="color: #FF8000;">As</span> DateTime, _
                       <span style="color: #FF8000;">ByVal</span> summary <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span>, <span style="color: #FF8000;">ByVal</span> description <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span>, _
                       <span style="color: #FF8000;">ByVal</span> location <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span>, <span style="color: #FF8000;">ByVal</span> fileName <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span><span style="color: #000000;">&#41;</span>
&nbsp;
            _startUtc <span style="color: #008000;">=</span> startUtc
            _endUtc <span style="color: #008000;">=</span> endUtc
            _summary <span style="color: #008000;">=</span> summary
            _description <span style="color: #008000;">=</span> description
            _location <span style="color: #008000;">=</span> location
            _fileName <span style="color: #008000;">=</span> fileName
&nbsp;
        <span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Sub</span>
&nbsp;
        <span style="color: #FF8000;">Public</span> <span style="color: #FF8000;">Overrides</span> <span style="color: #0600FF;">Sub</span> ExecuteResult<span style="color: #000000;">&#40;</span><span style="color: #FF8000;">ByVal</span> context <span style="color: #FF8000;">As</span> System.<span style="color: #0000FF;">Web</span>.<span style="color: #0000FF;">Mvc</span>.<span style="color: #0000FF;">ControllerContext</span><span style="color: #000000;">&#41;</span>
            <span style="color: #0600FF;">Dim</span> <span style="color: #0600FF;">str</span> <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> StringBuilder<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
            <span style="color: #0600FF;">With</span> <span style="color: #0600FF;">str</span>
                .<span style="color: #0000FF;">AppendLine</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;BEGIN:VCALENDAR&quot;</span><span style="color: #000000;">&#41;</span>
                .<span style="color: #0000FF;">AppendLine</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;VERSION:2.0&quot;</span><span style="color: #000000;">&#41;</span>
                .<span style="color: #0000FF;">AppendLine</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;BEGIN:VEVENT&quot;</span><span style="color: #000000;">&#41;</span>
                .<span style="color: #0000FF;">AppendLine</span><span style="color: #000000;">&#40;</span><span style="color: #FF8000;">String</span>.<span style="color: #0600FF;">Format</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;DTSTART:{0}&quot;</span>, _startUtc.<span style="color: #0000FF;">ToUniversalTimeString</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
                .<span style="color: #0000FF;">AppendLine</span><span style="color: #000000;">&#40;</span><span style="color: #FF8000;">String</span>.<span style="color: #0600FF;">Format</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;DTEND:{0}&quot;</span>, _endUtc.<span style="color: #0000FF;">ToUniversalTimeString</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
                .<span style="color: #0000FF;">AppendLine</span><span style="color: #000000;">&#40;</span><span style="color: #FF8000;">String</span>.<span style="color: #0600FF;">Format</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;SUMMARY:{0}&quot;</span>, _summary<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
                .<span style="color: #0000FF;">AppendLine</span><span style="color: #000000;">&#40;</span><span style="color: #FF8000;">String</span>.<span style="color: #0600FF;">Format</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;DESCRIPTION:{0}&quot;</span>, _description<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
                .<span style="color: #0000FF;">AppendLine</span><span style="color: #000000;">&#40;</span><span style="color: #FF8000;">String</span>.<span style="color: #0600FF;">Format</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;LOCATION:{0}&quot;</span>, _location<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
                .<span style="color: #0000FF;">AppendLine</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;END:VEVENT&quot;</span><span style="color: #000000;">&#41;</span>
                .<span style="color: #0000FF;">AppendLine</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;END:VCALENDAR&quot;</span><span style="color: #000000;">&#41;</span>
            <span style="color: #0600FF;">End</span> <span style="color: #0600FF;">With</span>
            context.<span style="color: #0000FF;">HttpContext</span>.<span style="color: #0000FF;">Response</span>.<span style="color: #0000FF;">ContentType</span> <span style="color: #008000;">=</span> <span style="color: #808080;">&quot;text/calendar&quot;</span>
            context.<span style="color: #0000FF;">HttpContext</span>.<span style="color: #0000FF;">Response</span>.<span style="color: #0000FF;">AddHeader</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;Content-disposition&quot;</span>, <span style="color: #FF8000;">String</span>.<span style="color: #0600FF;">Format</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;attachment; filename={0}&quot;</span>, _fileName<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
            context.<span style="color: #0000FF;">HttpContext</span>.<span style="color: #0000FF;">Response</span>.<span style="color: #0600FF;">Write</span><span style="color: #000000;">&#40;</span><span style="color: #0600FF;">str</span>.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#41;</span>
            context.<span style="color: #0000FF;">HttpContext</span>.<span style="color: #0000FF;">Response</span>.<span style="color: #0600FF;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
        <span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Sub</span>
    <span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Class</span></pre></div></div>

<p>Finally I created a controller extension method called ICalEvent that simply returns an instance of the ICalEventResult.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danappleyard.com/2011/03/15/create-an-ical-file-in-asp-net-mvc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Index option disabled</title>
		<link>http://www.danappleyard.com/2011/03/04/new-index-option-disabled/</link>
		<comments>http://www.danappleyard.com/2011/03/04/new-index-option-disabled/#comments</comments>
		<pubDate>Fri, 04 Mar 2011 10:59:05 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.danappleyard.com/?p=627</guid>
		<description><![CDATA[I&#8217;ll make this short and sweet. I was trying to create an index on a new table I had created through SQL Management Studio 2005. I right clicked the Index folder under the table and noticed that the option of New Index was grayed out (disabled). I figured out that Management Studio will disable that [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ll make this short and sweet.  I was trying to create an index on a new table I had created through SQL Management Studio 2005.  I right clicked the Index folder under the table and noticed that the option of New Index was grayed out (disabled).  I figured out that Management Studio will disable that option if you have the table schema-locked in another window.  Close any of those windows, and try again &#8211; it should be enabled again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danappleyard.com/2011/03/04/new-index-option-disabled/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Numeric padding in T-SQL</title>
		<link>http://www.danappleyard.com/2010/12/29/numeric-padding-in-t-sql/</link>
		<comments>http://www.danappleyard.com/2010/12/29/numeric-padding-in-t-sql/#comments</comments>
		<pubDate>Wed, 29 Dec 2010 10:52:07 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://www.danappleyard.com/?p=594</guid>
		<description><![CDATA[I was recently trying to find a way to padding a number in T-SQL and decided to share what I found. Let us say I wanted to pad the number 123 into the string &#8217;00123&#8242;, here is how to do it. SELECT REPLACE(STR(123, 5), ' ', '0') FROM SomeTable I found this little bit of [...]]]></description>
			<content:encoded><![CDATA[<p>I was recently trying to find a way to padding a number in T-SQL and decided to share what I found.  Let us say I wanted to pad the number 123 into the string &#8217;00123&#8242;, here is how to do it.</p>
<pre class="brush:sql">SELECT REPLACE(STR(123, 5), ' ', '0') FROM SomeTable</pre>
<p>I found this little bit of useful information <a href="http://foxtricks.blogspot.com/2007/07/zero-padding-numeric-value-in-transact.html">here at FoxTricks</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danappleyard.com/2010/12/29/numeric-padding-in-t-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rename objects in SQL Server</title>
		<link>http://www.danappleyard.com/2010/11/23/rename-objects-in-sql-server/</link>
		<comments>http://www.danappleyard.com/2010/11/23/rename-objects-in-sql-server/#comments</comments>
		<pubDate>Tue, 23 Nov 2010 13:46:46 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.danappleyard.com/?p=556</guid>
		<description><![CDATA[Recently I had to rename some columns and a couple of tables in a database that I work on. Clearly I could go through SQL Server Management Studio and rename them, but I wanted something I could save to a script and run. Ladies and gentlemen, boys and girls, let me introduce a little stored [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I had to rename some columns and a couple of tables in a database that I work on.  Clearly I could go through SQL Server Management Studio and rename them, but I wanted something I could save to a script and run.  Ladies and gentlemen, boys and girls, let me introduce a little stored procedure called <a href="http://msdn.microsoft.com/en-us/library/ms188351.aspx">sp_rename</a>.</p>
<h3>Rename database columns</h3>
<p>To rename a column in a database table, simply execute the following code:</p>

<div class="wp_syntax"><div class="code"><pre class="tsql" style="font-family:monospace;"><span style="color: #AF0000;">sp_RENAME</span> <span style="color: #FF0000;">'TABLENAME.COLUMNNAME'</span>, <span style="color: #FF0000;">'NEWCOLUMNNAME'</span>, <span style="color: #FF0000;">'COLUMN'</span>
GO</pre></div></div>

<p><em>While the first and second parameter are to be replaced with your specific objects, the third parameter is the string literal &#8220;COLUMN&#8221;.</em></p>
<h3>Rename database tables</h3>
<p>To rename a table, simply execute the following code:</p>

<div class="wp_syntax"><div class="code"><pre class="tsql" style="font-family:monospace;"><span style="color: #AF0000;">sp_RENAME</span> <span style="color: #FF0000;">'TABLENAME'</span>, <span style="color: #FF0000;">'NEWTABLENAME'</span>
GO</pre></div></div>

<p><em>Notice the lack of a third parameter.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.danappleyard.com/2010/11/23/rename-objects-in-sql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple Mockup Generator &#8211; Balsamiq</title>
		<link>http://www.danappleyard.com/2010/10/06/simple-mockup-generator-balsamiq/</link>
		<comments>http://www.danappleyard.com/2010/10/06/simple-mockup-generator-balsamiq/#comments</comments>
		<pubDate>Wed, 06 Oct 2010 16:14:25 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[utility]]></category>

		<guid isPermaLink="false">http://www.danappleyard.com/?p=469</guid>
		<description><![CDATA[Lately I have been using Balsamiq Mockups for all of my general mockup needs.  They offer both a desktop version and a web version.  I have focused mainly on the web version, and I am liking it.  While it is simply a demo, it has all of my needs.  While you cannot save in the [...]]]></description>
			<content:encoded><![CDATA[<p>Lately I have been using <a href="http://www.balsamiq.com/products/mockups" target="_blank">Balsamiq Mockups</a> for all of my general mockup needs.  They offer both a <a href="http://www.balsamiq.com/products/mockups/desktop" target="_blank">desktop version</a> and a <a href="http://www.balsamiq.com/builds/mockups-web-demo/" target="_blank">web version</a>.  I have focused mainly on the web version, and I am liking it.  While it is simply a demo, it has all of my needs.  While you cannot save in the direct sense, you can import and export your mockups via XML.  You can also download the picture via a PNG or as a PDF file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danappleyard.com/2010/10/06/simple-mockup-generator-balsamiq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>No AJAX request in IE7</title>
		<link>http://www.danappleyard.com/2010/09/13/no-ajax-request-in-ie7/</link>
		<comments>http://www.danappleyard.com/2010/09/13/no-ajax-request-in-ie7/#comments</comments>
		<pubDate>Mon, 13 Sep 2010 17:14:59 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.danappleyard.com/?p=423</guid>
		<description><![CDATA[I was recently trying to solve an issue regarding jquery and a ASP.NET Webforms application.  I would sometimes get an AJAX call to execute and other times it would not fire.  I was beating my brain into a bloody mush, when I discovered that it was skipping the AJAX request only in IE7 browsers.  IIIIIEEEEEEEEEEEEEEEEEEEEEE! [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://danappleyard.files.wordpress.com/2010/09/kahn1.png"><img class="aligncenter size-full wp-image-426" title="KAAAAAAAHHHHHNNNNN!" src="http://danappleyard.files.wordpress.com/2010/09/kahn1.png" alt="" width="536" height="303" /></a>I was recently trying to solve an issue regarding jquery and a ASP.NET Webforms application.  I would sometimes get an AJAX call to execute and other times it would not fire.  I was beating my brain into a bloody mush, when I discovered that it was skipping the AJAX request only in IE7 browsers.  <a href="http://www.youtube.com/watch?v=wRnSnfiUI54" target="_blank">IIIIIEEEEEEEEEEEEEEEEEEEEEE!</a></p>
<p>Thankfully, after regaining my composure, I was able to find a the solution right <a href="http://www.thushanfernando.com/index.php/2009/10/27/quickfix-jquery-getjson-fails-in-ie6-ie7/" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danappleyard.com/2010/09/13/no-ajax-request-in-ie7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Djangy &#8211; He&#8217;s our you</title>
		<link>http://www.danappleyard.com/2010/09/04/djangy-hes-our-you/</link>
		<comments>http://www.danappleyard.com/2010/09/04/djangy-hes-our-you/#comments</comments>
		<pubDate>Sat, 04 Sep 2010 16:55:38 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://www.danappleyard.com/?p=409</guid>
		<description><![CDATA[In the fifth season of LOST, Sayid Jarrah, a former Iraqi torturer, meets the DHARMA Initiative&#8217;s resident torturer. He is told &#8220;He&#8217;s our you&#8221;. Getting past the silly name, Djangy is a new service that I discovered on the &#8220;interwebs&#8221; the other day.  It is currently in private beta, but it appears it will do [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://danappleyard.files.wordpress.com/2010/09/hesouryoulost.jpg"><img class="aligncenter size-full wp-image-415" title="He's Our You" src="http://danappleyard.files.wordpress.com/2010/09/hesouryoulost.jpg" alt="" width="300" height="170" /></a><br />
In the fifth season of LOST, Sayid Jarrah, a former Iraqi torturer, meets the DHARMA Initiative&#8217;s resident torturer.  He is told &#8220;He&#8217;s our you&#8221;.  Getting past the silly name, <a href="http://djangy.com/">Djangy</a> is a new service that I discovered on the &#8220;interwebs&#8221; the other day.  It is currently in private beta, but it appears it will do for <a href="http://www.djangoproject.com/">Django</a> what <a href="http://heroku.com/">Heroku</a> does for <a href="http://rubyonrails.org/">Rails</a>.  I just signed up for the beta.  As soon as I get an invitation, I am sure as heck going to check it out!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danappleyard.com/2010/09/04/djangy-hes-our-you/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reserved.ReportViewerWebControl.Axd not found</title>
		<link>http://www.danappleyard.com/2010/07/01/reserved-reportviewerwebcontrol-axd-not-found/</link>
		<comments>http://www.danappleyard.com/2010/07/01/reserved-reportviewerwebcontrol-axd-not-found/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 16:45:33 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[ssrs]]></category>

		<guid isPermaLink="false">http://www.danappleyard.com/?p=353</guid>
		<description><![CDATA[The web application I develop at work uses SSRS.  Lately I have not really had to deal with the reports for quite a while now due to other higher priority tasks. That all changed today&#8230;DUN DUN DUN!!!!! This last February my hard drive took a total nose dive for me, so I had to replace [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://danappleyard.files.wordpress.com/2010/07/confused.jpg"><img src="http://danappleyard.files.wordpress.com/2010/07/confused.jpg?w=300" alt="" title="confused" width="300" height="240" class="aligncenter size-medium wp-image-366" /></a><br />
The web application I develop at work uses <a href="http://technet.microsoft.com/en-us/library/ms159106.aspx">SSRS</a>.  Lately I have not really had to deal with the reports for quite a while now due to other higher priority tasks.  That all changed today&#8230;DUN DUN DUN!!!!!</p>
<p>This last February my hard drive took a total nose dive for me, so I had to replace it (fun).  Come back to today, and I am trying to debug an issue with a report.  I try to go the report through my application&#8217;s interface, and I get a big old 404 error.  What the frak?!  It was telling me that the reserved.reportviewerwebcontrol.axd could not be found.  I was thinking, what did I forget to setup back in February?  What am I missing?  After searching around for ideas, I came across this lovely blog entry that completely solved my issue.</p>
<p><a href="http://ericphan.info/blog/2008/12/8/reservedreportviewerwebcontrolaxd-not-found.html">Take a read, you just may learn something</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.danappleyard.com/2010/07/01/reserved-reportviewerwebcontrol-axd-not-found/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dazed and confused with cucumbers</title>
		<link>http://www.danappleyard.com/2010/06/06/dazed-and-confused-with-cucumbers/</link>
		<comments>http://www.danappleyard.com/2010/06/06/dazed-and-confused-with-cucumbers/#comments</comments>
		<pubDate>Sun, 06 Jun 2010 06:53:34 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[cucumber]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.danappleyard.com/?p=210</guid>
		<description><![CDATA[This week, I have decided to learn Ruby as a new programming language.  I decided that since I am mainly a web developer, I should set up Ruby on Rails and go that route.  For those that do not know, Ruby is the general language, and Rails is the web framework for Ruby.  I found [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://danappleyard.files.wordpress.com/2010/06/dazed-and-confused.jpg"><img class="aligncenter size-medium wp-image-214" title="dazed-and-confused" src="http://danappleyard.files.wordpress.com/2010/06/dazed-and-confused.jpg?w=300" alt="" width="300" height="168" /></a><br />
This week, I have decided to learn Ruby as a new programming language.  I decided that since I am mainly a web developer, I should set up Ruby on Rails and go that route.  For those that do not know, Ruby is the general language, and Rails is the web framework for Ruby.  I found the install of both Ruby and Rails very straightforward and simple.  Once I had both installed on my machine, I decided to checkout what <a href="http://www.tekpub.com">Tekpub</a> had in terms of learning Ruby on Rails. Tekpub is a website aimed at developers with video tutorials on various technologies (Ruby on Rails, ASP.NET MVC, jQuery, etc.).  I started watching the first of a series showing Ruby on Rails.  I was following the instructor (Rob Conery), and when he got to the section of installing a testing gem (kind of like a package in Java, or assembly in .Net) called <a href="http://cukes.info/">Cucumber</a>, I got messed up.  It was working for him, but not me!  I was like &#8220;What the frak!&#8221;  Well it turns out all the way in the last video in the series, he goes and says that people have mentioned that the steps in the first video (the one I was at) did not work for them.  He then goes and shows what he should have done, and yada yada yada.  Well, in the end I got Cucumber to install correctly on my machine.</p>
<p>Once I got it installed correctly, I started playing a bit with Cucumber.  It seems very interesting.  Cucumber follows the concept of Behavior Driven Development.  As it says in its website: &#8220;Cucumber lets software development teams describe how software should behave in plain text.  The text is written in a business-readable domain-specific language and serves as documentation, automated tests, and development-aid &#8211; all rolled into one format&#8221;.  I haven&#8217;t gotten too far into it, but once I do, I am sure I will share more about it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danappleyard.com/2010/06/06/dazed-and-confused-with-cucumbers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

