<?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>Darin Shaw&#039;s blog &#187; ASP.NET</title>
	<atom:link href="http://darinshaw.com/blog/index.php/category/asp-net/feed/" rel="self" type="application/rss+xml" />
	<link>http://darinshaw.com/blog</link>
	<description>Darin&#039;s dinner party on the internet</description>
	<lastBuildDate>Sun, 11 Sep 2011 01:44:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Authentication required with ASP.NET development server</title>
		<link>http://darinshaw.com/blog/index.php/2010/07/authentication-required-with-asp-net-development-server/</link>
		<comments>http://darinshaw.com/blog/index.php/2010/07/authentication-required-with-asp-net-development-server/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 20:30:06 +0000</pubDate>
		<dc:creator>Darin Shaw</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Web development]]></category>

		<guid isPermaLink="false">http://darinshaw.com/blog/?p=325</guid>
		<description><![CDATA[When you run the ASP.NET development server out of Visual Studio, you may be prompted by Firefox or IE for a username and password before you can continue.
The following solutions worked for me using Windows 7, Visual Studio 2008 &#038; 2010 with Firefox 3 and Internet Explorer 8.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had to track this down a couple times now so I&#8217;m going to write it down for myself and if it helps others then so much the better.</p>
<p><span style="color: #ffff00;"><strong>The problem</strong></span></p>
<p>When you run the ASP.NET development server out of Visual Studio, you&#8217;ll be prompted by Firefox or IE for a username and password before you can continue.</p>
<p>The following solutions worked for me using Windows 7, Visual Studio 2008 &#038; 2010 with Firefox 3 and Internet Explorer 8.</p>
<p><span style="color: #00ff00;"><strong>Firefox solution</strong></span></p>
<p>Type <code><strong>about:config</strong></code> into the address bar to open the Firefox configuration area.</p>
<p>Locate the following lines under the preference name column, double click the row and enter <code><strong>localhost </strong></code>into the value.</p>
<blockquote><p>network.automatic-ntlm-auth.trusted-uris<br />
network.negotiate-auth.delegation-uris<br />
network.negotiate-auth.trusted-uris</p></blockquote>
<p><span style="color: #00ff00;"><strong>Internet explorer solution</strong></span></p>
<p>Menu: Tools -> Internet Options</p>
<p>Tab: Security</p>
<p>Click on the Trusted Sites icon and then the Sites button below.  In the textbox type <code><strong>localhost</strong></code>. Click the add button and the URL should appear below. Click Close.</p>
<p>Now click on the Local Intranet icon and the Sites button below.  Uncheck automatically detect intranet network. Check Include all local (intranet) sites not listed in other zones. Click OK. Click OK.</p>
]]></content:encoded>
			<wfw:commentRss>http://darinshaw.com/blog/index.php/2010/07/authentication-required-with-asp-net-development-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET AJAX toolkit calendar control with a readonly textbox</title>
		<link>http://darinshaw.com/blog/index.php/2010/02/asp-net-ajax-toolkit-calendar-control-with-a-readonly-textbox/</link>
		<comments>http://darinshaw.com/blog/index.php/2010/02/asp-net-ajax-toolkit-calendar-control-with-a-readonly-textbox/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 02:42:30 +0000</pubDate>
		<dc:creator>Darin Shaw</dc:creator>
				<category><![CDATA[ASP.NET]]></category>

		<guid isPermaLink="false">http://darinshaw.com/blog/?p=19</guid>
		<description><![CDATA[The problem
I recently used the calendar control from the AJAX toolkit to set a  date in its associated textbox control. I wanted the user to only be  able to set the date through the calendar control so I made the textbox read only by setting the ReadOnly property ...]]></description>
			<content:encoded><![CDATA[<p><strong>The problem</strong></p>
<p>I recently used the calendar control from the AJAX toolkit to set a  date in its associated textbox control. I wanted the user to only be  able to set the date through the calendar control so I made the textbox read only by setting the ReadOnly property to true. The problem this  produces is that readonly controls don’t post back their values in the  viewstate thus you lose the value when the user submits the form.</p>
<p><strong><br />
</strong></p>
<p><strong>The solution</strong></p>
<p>After some research the easiest workaround I found was this.</p>
<p>Leave the textbox control property as ReadOnly = False</p>
<p>In the Page Load event set the client side attribute of the textbox with the following:</p>
<p>txtDate.Attributes.Add(“readonly”, True)</p>
<p>This way the control is included in the postback and the value is  preserved but client side the user won’t be able to manually edit it.</p>
]]></content:encoded>
			<wfw:commentRss>http://darinshaw.com/blog/index.php/2010/02/asp-net-ajax-toolkit-calendar-control-with-a-readonly-textbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic (Requested URI is rejected)
Database Caching 7/15 queries in 0.029 seconds using disk: basic

Served from: www.darinshaw.com @ 2012-02-08 18:35:27 -->
