<?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>Everything is Crap &#187; asp.net</title>
	<atom:link href="http://everythingiscrap.com/tag/asp-net/feed/" rel="self" type="application/rss+xml" />
	<link>http://everythingiscrap.com</link>
	<description>Notes on the crap we&#039;ve been subjected to</description>
	<lastBuildDate>Wed, 11 Jan 2012 21:10:15 +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>Order DOES matter when it comes to EmulateIE7!</title>
		<link>http://everythingiscrap.com/order-does-matter-when-it-comes-to-emulateie7/</link>
		<comments>http://everythingiscrap.com/order-does-matter-when-it-comes-to-emulateie7/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 19:14:00 +0000</pubDate>
		<dc:creator>paul</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[ie8]]></category>

		<guid isPermaLink="false">http://piotrouble.wordpress.com/2009/04/28/order-does-matter-when-it-comes-to-emulateie7</guid>
		<description><![CDATA[So, here's the story in a nutshell: IE8 breaks some pages that were made with Visual Studio. Specifically, GridView headers won't align themselves left or right, even though you set the option. Bringing IE8 into compatibility mode fixes the problem. Microsoft implemented a meta tag that allows you to bring down IE8 into compatibility mode [...]]]></description>
			<content:encoded><![CDATA[<p>So, here's the story in a nutshell:</p>
<p>IE8 breaks some pages that were made with Visual Studio. Specifically, GridView headers won't align themselves left or right, even though you set the option. Bringing IE8 into compatibility mode fixes the problem. Microsoft implemented a meta tag that allows you to bring down IE8 into compatibility mode from the page itself.</p>
<blockquote><p>&lt;meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"&gt;</p></blockquote>
<p>The only problem is that the tag doesn't work; or so I thought! In their document about the subject, <a href="http://msdn.microsoft.com/en-us/library/cc288325(VS.85).aspx">Defining Document Compatibility</a>, Microsoft explains, "[The meta tag] must appear in the Web page's header&#8230;before all other elements, except for the title element and other meta elements."</p>
<p>My bad. I put the tag at the bottom of the header because I assumed that the order didn't matter. Silly me.</p>
<p>After putting the tag in the right place, my document displays just fine in IE8, and even removes the compatibility-broken-page-button to boot!</p>
]]></content:encoded>
			<wfw:commentRss>http://everythingiscrap.com/order-does-matter-when-it-comes-to-emulateie7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sending E-mail from ASP.NET</title>
		<link>http://everythingiscrap.com/sending-e-mail-from-asp-net/</link>
		<comments>http://everythingiscrap.com/sending-e-mail-from-asp-net/#comments</comments>
		<pubDate>Wed, 25 Jul 2007 18:29:00 +0000</pubDate>
		<dc:creator>paul</dc:creator>
				<category><![CDATA[dev]]></category>
		<category><![CDATA[asp.net]]></category>

		<guid isPermaLink="false">http://piotrouble.wordpress.com/2007/07/25/sending-e-mail-from-asp-net</guid>
		<description><![CDATA[Sending e-mail from ASP.net is not as hard as it could be. You just need to know all the information that you'd normally need to know for setting up a SMTP client&#8230;like Outlook Express. I had read that you need to set up an SMTP server on the IIS server that you're running in order [...]]]></description>
			<content:encoded><![CDATA[<div>Sending e-mail from ASP.net is not as hard as it could be. You just need to know all the information that you'd normally need to know for setting up a SMTP client&#8230;like Outlook Express. I had read that you need to set up an SMTP server on the IIS server that you're running in order to be able to e-mail from that server. That's not true. I was able to set up, in a test ASP.NET file, code that logs into our exchange e-mail client and sends mail through it. The only drawback is that the username and password are stored in the code, but that doesn't post a huge security risk, as the user doesn't have meaningful privelages. So, here's the code (slightly edited to take out the juicy bits)&#8230;</div>
<div></div>
<div>
<div></div>
<blockquote><div>System.Net.Mail.MailMessage mail_message = new </div>
<div>   System.Net.Mail.MailMessage();</div>
<div>mail_message.From = new </div>
<div>   System.Net.Mail.MailAddress("my@email.com", </div>
<div>   "User's Real Name");</div>
<div>mail_message.To.Add("them@there.com");</div>
<div>mail_message.Subject = "Subject";</div>
<div>mail_message.Body = "Message";</div>
<div>System.Net.Mail.SmtpClient mail_client = new </div>
<div>   System.Net.Mail.SmtpClient("mail.myserver.com");</div>
<div>mail_client.Credentials = new </div>
<div>   System.Net.NetworkCredential("myuser@myserver.com", </div>
<div>   "mypassword");</div>
<div>mail_client.Send(mail_message);</div>
<div>mail_message.Dispose();</div>
<div></div>
</blockquote>
<div></div>
</div>
<div></div>
<div>
<div>Very nice. Very easy. Only nine lines of code (and I could probably make it less).</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://everythingiscrap.com/sending-e-mail-from-asp-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

