<?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>Dahlin Development - Blog &#187; Errors</title>
	<atom:link href="http://blog.dahlindevelopment.com/category/errors/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.dahlindevelopment.com</link>
	<description></description>
	<lastBuildDate>Thu, 26 Aug 2010 18:37:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Search Results &#8211; Webpage has expired on back button</title>
		<link>http://blog.dahlindevelopment.com/2009/12/search-results-webpage-has-expired-on-back-button/</link>
		<comments>http://blog.dahlindevelopment.com/2009/12/search-results-webpage-has-expired-on-back-button/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 18:34:05 +0000</pubDate>
		<dc:creator>Joel</dc:creator>
				<category><![CDATA[Errors]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://blog.dahlindevelopment.com/?p=143</guid>
		<description><![CDATA[I’ve been asked this a few times now so I thought I would blog my solution to point others to this next time I am asked. Often times people will create a simple search on their site. The most obvious way to do this is with a simple textbox and button.  You then handle the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.dahlindevelopment.com/wp-content/uploads/2009/12/search.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="search" src="http://blog.dahlindevelopment.com/wp-content/uploads/2009/12/search_thumb.png" border="0" alt="search" width="244" height="31" /></a></p>
<p>I’ve been asked this a few times now so I thought I would blog my solution to point others to this next time I am asked.</p>
<p>Often times people will create a simple search on their site. The most obvious way to do this is with a simple textbox and button.  You then handle the search when the button is clicked in the code-behind.</p>
<p>It may look something like this:</p>
<pre class="brush: csharp;">
    protected void btnSearch_Click(object sender, EventArgs e)
    {
        if (!String.IsNullOrEmpty(txtSearch.Text.Trim()))
        {
            BindSearch(txtSearch.Text.Trim());
        }
    }
</pre>
<p>Pretty straight forward.  The problem here is you’re doing a postback to the same page.  You won’t have a history of the previous searches in your browser. After doing a search and you want to see what you had for results from the previous search and simply hit back in your browser you’ll see this</p>
<p><a href="http://blog.dahlindevelopment.com/wp-content/uploads/2009/12/expired.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="expired" src="http://blog.dahlindevelopment.com/wp-content/uploads/2009/12/expired_thumb.png" border="0" alt="expired" width="473" height="182" /></a></p>
<p>So what I have always done to avoid this is to simply do a Response.Redirect to the page instead of just calling the BindSearch() method and put the search term in the query string.</p>
<pre class="brush: csharp;">
    protected void btnSearch_Click(object sender, EventArgs e)
    {
        if (!String.IsNullOrEmpty(txtSearch.Text.Trim()))
        {
            Response.Redirect(&quot;/Search.aspx?search=&quot; + txtSearch.Text.Trim());
        }
    }
</pre>
<p>This is a pretty simple solution, does anyone else have a different way to handle this?</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://blog.dahlindevelopment.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://blog.dahlindevelopment.com/2009/12/search-results-webpage-has-expired-on-back-button/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Sql Server 2008 Install &#8211; Restart Computer Failed</title>
		<link>http://blog.dahlindevelopment.com/2009/09/sql-server-2008-install-restart-computer-failed/</link>
		<comments>http://blog.dahlindevelopment.com/2009/09/sql-server-2008-install-restart-computer-failed/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 20:34:36 +0000</pubDate>
		<dc:creator>Joel</dc:creator>
				<category><![CDATA[Errors]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[MSSQL]]></category>

		<guid isPermaLink="false">http://blog.dahlindevelopment.com/?p=110</guid>
		<description><![CDATA[When installing SQL Server 2008 today I ran into an error right away.&#160; In testing the Setup Support Rules the “Restart computer” operation check failed. After a bit of Binging I found this thread: http://social.msdn.microsoft.com/forums/en-US/sqlsetupandupgrade/thread/ca182f5d-114a-4516-99d4-0854ad176fbf/ It talks about deleting any registry settings with a value of “PendingFileRenameOperations&#34; in the key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager&#34; Open your Windows [...]]]></description>
			<content:encoded><![CDATA[<p>When installing SQL Server 2008 today I ran into an error right away.&#160; In testing the Setup Support Rules the “Restart computer” operation check failed.</p>
<p><a href="http://blog.dahlindevelopment.com/wp-content/uploads/2009/09/sql2k8installerror.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="sql2k8installerror" border="0" alt="sql2k8installerror" src="http://blog.dahlindevelopment.com/wp-content/uploads/2009/09/sql2k8installerror_thumb.png" width="487" height="364" /></a> </p>
<p>After a bit of Binging I found this thread: <a href="http://social.msdn.microsoft.com/forums/en-US/sqlsetupandupgrade/thread/ca182f5d-114a-4516-99d4-0854ad176fbf/">http://social.msdn.microsoft.com/forums/en-US/sqlsetupandupgrade/thread/ca182f5d-114a-4516-99d4-0854ad176fbf/</a></p>
<p>It talks about deleting any registry settings with a value of “PendingFileRenameOperations&quot; in the key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager&quot; </p>
<p>Open your Windows programs type “regedit.exe” in the search then click enter. Now drill down to the Session Manager key.&#160; Look for any value with “Pending FileRenameOperations” and delete it.</p>
<p>Go back to the SQL Server 2008 setup and rerun it.&#160; Everything should pass now and you can proceed.</p>
<p><a href="http://blog.dahlindevelopment.com/wp-content/uploads/2009/09/regedit.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="regedit" border="0" alt="regedit" src="http://blog.dahlindevelopment.com/wp-content/uploads/2009/09/regedit_thumb.png" width="499" height="361" /></a></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://blog.dahlindevelopment.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://blog.dahlindevelopment.com/2009/09/sql-server-2008-install-restart-computer-failed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Studio Error: project type</title>
		<link>http://blog.dahlindevelopment.com/2009/09/visual-studio-error-project-type/</link>
		<comments>http://blog.dahlindevelopment.com/2009/09/visual-studio-error-project-type/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 14:50:21 +0000</pubDate>
		<dc:creator>Joel</dc:creator>
				<category><![CDATA[Errors]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://blog.dahlindevelopment.com/?p=103</guid>
		<description><![CDATA[The application for project ‘….’ is not installed. Make sure the application for the project type (.csproj) is installed. I generally open up solutions by just double clicking on the .sln file.&#160; In this case that is what I did.&#160; However what it did is, since it is a 2005 solution it tried to open [...]]]></description>
			<content:encoded><![CDATA[<p>The application for project ‘….’ is not installed.</p>
<p>Make sure the application for the project type (.csproj) is installed.</p>
<p><a href="http://blog.dahlindevelopment.com/wp-content/uploads/2009/09/projecterror.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="projecterror" border="0" alt="projecterror" src="http://blog.dahlindevelopment.com/wp-content/uploads/2009/09/projecterror_thumb.png" width="450" height="217" /></a> </p>
<p>I generally open up solutions by just double clicking on the .sln file.&#160; In this case that is what I did.&#160; However what it did is, since it is a 2005 solution it tried to open up in my Visual Studio 2005 install that came with Sql Server 2005.&#160; This version couldn’t handle it so it gave this error.</p>
<p>Easy fix, open Visual Studio 2008.&#160; Then file –&gt; open project and browse to the same .sln file.&#160; I now was able to open the project in Visual Studio 2008.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://blog.dahlindevelopment.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://blog.dahlindevelopment.com/2009/09/visual-studio-error-project-type/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
