<?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>ScarTech &#187; ASP.NET</title>
	<atom:link href="http://www.scartech.net/category/aspnet/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scartech.net</link>
	<description>The musings of a confessed code junkie and a game geek.</description>
	<lastBuildDate>Wed, 07 Jul 2010 01:34:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Auto Format Code in Visual Studio 2008</title>
		<link>http://www.scartech.net/2009/01/27/auto-format-code-in-visual-studio-2008/</link>
		<comments>http://www.scartech.net/2009/01/27/auto-format-code-in-visual-studio-2008/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 00:53:19 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[VB.NET]]></category>

		<guid isPermaLink="false">http://www.scartech.net/?p=389</guid>
		<description><![CDATA[My new favorite macro in Visual Studio 2008 is control-D then control-K. Hit that key sequence and voila: all code on the page has been formatted. It&#8217;s especially helpful when copy-pasting. Just a tip from Tim to make your life easier!]]></description>
			<content:encoded><![CDATA[<p>My new favorite macro in <a href="http://www.microsoft.com/visualstudio/en-us/default.mspx">Visual Studio 2008</a> is control-D then control-K. Hit that key sequence and voila: all code on the page has been formatted. It&#8217;s especially helpful when copy-pasting. Just a tip from Tim to make your life easier! <img src='http://www.scartech.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.scartech.net/2009/01/27/auto-format-code-in-visual-studio-2008/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Resize Your Browser Window</title>
		<link>http://www.scartech.net/2008/07/29/resize-browser-window/</link>
		<comments>http://www.scartech.net/2008/07/29/resize-browser-window/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 00:18:24 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[ASP.NET]]></category>

		<guid isPermaLink="false">http://www.scartech.net/?p=121</guid>
		<description><![CDATA[Here&#8217;s a cool method for resizing a browser window using a simple shortcut in your bookmarks. This has been especially helpful since I can&#8217;t use Firebug at work (we&#8217;re forced to use IE6 &#8211; I know, it sucks), and the IE Developer toolbar always breaks on my work machine.  How ghetto&#8230; Here&#8217;s the link.]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a cool <a href="http://www.crsw.com/mark/Lists/Posts/Post.aspx?List=c0001cfc-d84a-4be0-b437-6a625925a9d5&amp;ID=6">method</a> for resizing a browser window using a simple shortcut in your bookmarks. This has been especially helpful since I can&#8217;t use <a href="https://addons.mozilla.org/en-US/firefox/addon/1843">Firebug</a> at work (we&#8217;re forced to use IE6 &#8211; I know, it sucks), and the <a href="http://www.microsoft.com/downloadS/details.aspx?familyid=E59C3964-672D-4511-BB3E-2D5E1DB91038&amp;displaylang=en">IE Developer toolbar</a> always breaks on my work machine.  How ghetto&#8230;</p>
<p>Here&#8217;s the <a href="http://www.crsw.com/mark/Lists/Posts/Post.aspx?List=c0001cfc-d84a-4be0-b437-6a625925a9d5&amp;ID=6">link</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scartech.net/2008/07/29/resize-browser-window/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Serious About Security &#8211; Part 2 &#8211; XSS</title>
		<link>http://www.scartech.net/2008/04/14/getting-serious-about-security-part-2/</link>
		<comments>http://www.scartech.net/2008/04/14/getting-serious-about-security-part-2/#comments</comments>
		<pubDate>Tue, 15 Apr 2008 00:59:20 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.scartech.net/2008/04/14/getting-serious-about-security-part-2/</guid>
		<description><![CDATA[Cross site scripting can be a tough vulnerability to eliminate, but it doesn&#8217;t necessarily have to be. If you&#8217;re working on an ASP.NET project, the Microsoft Anti-XSS library is easy to use and freely available. Like a lot of developers, I&#8217;ve rolled my own anti-XSS by escaping specific characters, but it&#8217;s usually clunky and let&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/Cross-site_scripting">Cross site scripting</a> can be a tough vulnerability to eliminate, but it doesn&#8217;t necessarily have to be. If you&#8217;re working on an ASP.NET project, the <a href="http://msdn2.microsoft.com/en-us/library/aa973813.aspx">Microsoft Anti-XSS</a> library is easy to use and freely available. Like a lot of developers, I&#8217;ve rolled my own anti-XSS by escaping specific characters, but it&#8217;s usually clunky and let&#8217;s face it. There are still bound to be vulnerabilities. The MS library can be used to encode HTML, HTML attributes, JavaScript, VBScript, as well as encode for XML and XML attributes.<br />
Always encode data from untrusted inputs. Just a few examples include:</p>
<ul>
<li>Databases</li>
<li>Form fields</li>
<li>Session variables</li>
<li>Query string</li>
<li> Cookies</li>
</ul>
<p>Using the library is very simple. Just add a reference to the dll to your project, and you&#8217;re ready to go. Here&#8217;s a quick and dirty code example encoding a value from the query string:</p>
<blockquote>
<pre><span style="color: Blue">string</span> Name = AntiXss.HtmlEncode(Request.QueryString[<span style="color: Maroon">"Name"</span>]);</pre>
</blockquote>
<p>A good rule to live by is &#8220;When in doubt. Encode it.&#8221; Just don&#8217;t encode it twice. <img src='http://www.scartech.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>You can download the library from Microsoft <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=EFB9C819-53FF-4F82-BFAF-E11625130C25&amp;displaylang=en">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scartech.net/2008/04/14/getting-serious-about-security-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
