<?xml version="1.0" encoding="utf-8"?>
<feed xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en-us" xmlns="http://www.w3.org/2005/Atom">
  <title>Todd Taylor's Blog</title>
  <link rel="alternate" type="text/html" href="http://blog.toddtaylor.com/" />
  <link rel="self" href="http://blog.toddtaylor.com/SyndicationService.asmx/GetAtom" />
  <icon>favicon.ico</icon>
  <updated>2008-03-09T18:33:27.625-04:00</updated>
  <author>
    <name>Todd M. Taylor</name>
  </author>
  <subtitle />
  <id>http://blog.toddtaylor.com/</id>
  <generator uri="http://www.dasblog.net" version="2.0.7180.0">DasBlog</generator>
  <entry>
    <title>Speechless: Silencing the Christians</title>
    <link rel="alternate" type="text/html" href="http://blog.toddtaylor.com/2008/03/09/SpeechlessSilencingTheChristians.aspx" />
    <id>http://blog.toddtaylor.com/PermaLink,guid,54bb6505-b627-46cc-a2d3-56d37ccb5fbe.aspx</id>
    <published>2008-03-09T18:32:35.437-04:00</published>
    <updated>2008-03-09T18:33:27.625-04:00</updated>
    <category term="Christianity" label="Christianity" scheme="http://blog.toddtaylor.com/CategoryView,category,Christianity.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
The <a href="http://www.afa.net/" target="_blank">American Family Association</a> is
presenting a 13 part series television series entitled, "<a href="http://www.silencingchristians.com/" target="_blank">Speechless:
Silencing the Christians</a>".   After each show is aired, it will become
available online as a web cast.
</p>
        <p>
If you've been wondering why it seems like "right is wrong and wrong is right" in
today's society, I highly recommend taking the time to view the episodes (They're
really short because there are no commercials in the online versions.)  
</p>
        <ul>
          <li>
            <a href="http://www.silencingchristians.com/video4.aspx" target="_blank">Episode 1:
Series Premiere</a> (Now Online) 
</li>
          <li>
Episode 2: Is This Thing On? 
</li>
          <li>
Episode 3: Grandmas Behind Bars 
</li>
          <li>
Episode 4: 
</li>
          <li>
Episode 5: 
</li>
          <li>
Episode 6: 
</li>
          <li>
Episode 7: 
</li>
          <li>
Episode 8: 
</li>
          <li>
Episode 9: 
</li>
          <li>
Episode 10: 
</li>
          <li>
Episode 11: 
</li>
          <li>
Episode 12: 
</li>
          <li>
Episode 13:</li>
        </ul>
      </div>
    </content>
  </entry>
  <entry>
    <title>New Year's Resolution 2008</title>
    <link rel="alternate" type="text/html" href="http://blog.toddtaylor.com/2008/01/10/NewYearsResolution2008.aspx" />
    <id>http://blog.toddtaylor.com/PermaLink,guid,3ee55e01-e6af-4952-8661-7ec9187bd1ae.aspx</id>
    <published>2008-01-09T23:47:52.683-05:00</published>
    <updated>2008-01-09T23:48:24.6027816-05:00</updated>
    <category term="Christianity" label="Christianity" scheme="http://blog.toddtaylor.com/CategoryView,category,Christianity.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
My typical New Year's resolution is to never make another New Year's resolution.  
This year, I'm breaking that trend a little by making a personal commitment to myself
that I don't intend to break.   
</p>
        <p>
For 2008 and beyond, I'd like to make the commitment to become involved in the <a title="Westbrook Men's Ministry Homepage" href="http://www.westbrookchurch.com/men/" target="_blank">men's
ministry</a> at my church.   My wife and I have been involved in the <a title="Westbrook Children's Ministry" href="http://www.westbrookchurch.com/children/" target="_blank">children's
ministry</a> for a couple of years now, and will continue to do so, but I feel it's
important that I establish relations with other men who know who #1 is (that would
be Jesus, not me.)
</p>
        <p>
Like many guys, I seem to be Ok with being somewhat of a loner most of the time and
find that having friends that are only an email, instant message, or forum post away
is good enough.   However, 'connecting' through the Internet to 'virtual
friends' (even if I do know the people I'm communicating with) is no replacement for
real male bonding.
</p>
        <p>
To start in my quest to fulfill my resolution, I'll be attending the <a title="Westbrook Hungry Man's Breakfast Info" href="http://www.westbrookchurch.com/men/events.html" target="_blank">10th
Annual Hungry Man's Breakfast</a> on January 19th followed by the <a title="Link to No Regrets Web Site" href="http://www.noregretsconference.org/" target="_blank">No
Regrets Conference</a> on February 2nd.   It's going to be awfully hard
to give-up my Saturday mornings, the only morning I get to sleep-in, to attend these
events, but I feel the 'sacrifice' will be worth it.
</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>The NEW Pledge of Allegiance</title>
    <link rel="alternate" type="text/html" href="http://blog.toddtaylor.com/2008/01/10/TheNEWPledgeOfAllegiance.aspx" />
    <id>http://blog.toddtaylor.com/PermaLink,guid,6fc8194a-6812-45be-98e0-bd10fac8e9a1.aspx</id>
    <published>2008-01-09T23:18:52.274-05:00</published>
    <updated>2008-01-09T23:19:38.2243272-05:00</updated>
    <category term="Christianity" label="Christianity" scheme="http://blog.toddtaylor.com/CategoryView,category,Christianity.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Since the Pledge of Allegiance and The Lord's Prayer are not allowed in most public
schools anymore because the word "God" is mentioned, a student in Arizona wrote the
following: 
</p>
        <p>
          <strong>NEW School Prayer</strong>
        </p>
        <p>
          <em>Now I sit me down in school 
<br />
Where praying is against the rule 
<br />
For this great nation under God 
<br />
Finds mention of Him very odd. </em>
        </p>
        <p>
          <em>If Scripture now the class recites, 
<br />
It violates the Bill of Rights. 
<br />
And anytime my head I bow 
<br />
Becomes a Federal matter now. </em>
        </p>
        <p>
          <em>Our hair can be purple, orange or green, 
<br />
That's no offense; it's a freedom scene. 
<br />
The law is specific, the law is precise. 
<br />
Prayers spoken aloud are a serious vice. </em>
        </p>
        <p>
          <em>For praying in a public hall 
<br />
Might offend someone with no faith at all. 
<br />
In silence alone we must meditate, 
<br />
God's name is prohibited by the state. </em>
        </p>
        <p>
          <em>We're allowed to cuss and dress like freaks, 
<br />
And pierce our noses, tongues and cheeks. 
<br />
They've outlawed guns, but FIRST the Bible. 
<br />
To quote the Good Book makes me liable. </em>
        </p>
        <p>
          <em>We can elect a pregnant Senior Queen, 
<br />
And the 'unwed daddy,' our Senior King. 
<br />
It's "inappropriate" to teach right from wrong, 
<br />
We're taught that such "judgments" do not belong. </em>
        </p>
        <p>
          <em>We can get our condoms and birth controls, 
<br />
Study witchcraft, vampires and totem poles. 
<br />
But the Ten Commandments are not allowed, 
<br />
No word of God must reach this crowd. </em>
        </p>
        <p>
          <em>It's scary here I must confess, 
<br />
When chaos reigns the school's a mess. 
<br />
So, Lord, this silent plea I make: 
<br />
Should I be shot; My soul please take! </em>
        </p>
        <p>
          <em>Amen</em>
        </p>
      </div>
    </content>
  </entry>
  <entry>
    <title>My New Motorola Q</title>
    <link rel="alternate" type="text/html" href="http://blog.toddtaylor.com/2008/01/06/MyNewMotorolaQ.aspx" />
    <id>http://blog.toddtaylor.com/PermaLink,guid,ef23b90d-9d69-47e4-9ddb-73bb505cf13f.aspx</id>
    <published>2008-01-05T19:07:34.26-05:00</published>
    <updated>2008-01-10T22:03:58.921875-05:00</updated>
    <category term="Mobile" label="Mobile" scheme="http://blog.toddtaylor.com/CategoryView,category,Mobile.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
After having a "normal" phone for the past 2 years, I decided to give a SmartPhone
a try again (My previous SmartPhone was a Motorola MPx220).  This time, I went
with more of a PDA-type phone, the Motorola Q 9c (Sprint).   I think Verizon's
black and red version of the phone looks much better, but I wasn't willing to switch
providers just to get a different color phone.<br /></p>
        <p>
          <br />
Believe it or not, my main reason for getting a SmartPhone was that I wanted to be
able to load the Bible onto the phone so I could have the Bible with me at all times. 
With this in mind, I also wanted a slightly larger screen so I could actually read
the Bible.   Due to the high prices of most PDA phones, I almost abandon
the idea of getting a SmartPhone until I found that the Q was just over $100 after
rebates.<br /></p>
        <div align="center">
          <img src="http://blog.toddtaylor.com/content/binary/motorola-q9c.gif" border="0" />
          <br />
          <div align="left">As with most new PCs these days, I was rather annoyed with the Start
menu icons that are for trial applications; most of them being online applications.  
So, I was able to delete most of the annoying icons using the File Explorer (which
requires making all 'hidden' files visible.)   I couldn't, however, delete
many of the annoying apps themselves due to security rights.<br /><br />
I find it interesting that most of the mobile applications don't have any exit buttons.  
Because of this, once an application is started on the device, it just stays running
in the background which can be seen by opening the Task Manager.  Apparently
this is by design.  I'm assuming that the OS is smart enough to shut down some
of the running applications if it runs out of memory?<br /><br />
Much to my disappointment, there doesn't seem to be a lot of people doing development
or at least tweaking their Windows Mobile 6 devices yet.   (Perhaps the
OS is too new?)   At the moment, I don't have any ideas for any new mobile
apps, but I'm kind of itching to create at least one... simply because I can!
</div>
          <div align="left"> 
</div>
          <div align="left">My first impression with the phone, after having it for a week,
are pretty good.  The battery is staying charged much longer than I expected. 
Perhaps that is due to not having the phone setup to automatically sync with any email
accounts like my last SmartPhone did.   I also find it actually works pretty
well as a phone in that the sound quality is decent.   I put my wife on
speaker phone and she said she couldn't tell that I did.<br /></div>
        </div>
      </div>
    </content>
  </entry>
  <entry>
    <title>Impressions of Olympus FL-50 Flash</title>
    <link rel="alternate" type="text/html" href="http://blog.toddtaylor.com/2007/12/27/ImpressionsOfOlympusFL50Flash.aspx" />
    <id>http://blog.toddtaylor.com/PermaLink,guid,198606d0-ee81-496b-808d-350f8de6f831.aspx</id>
    <published>2007-12-26T19:49:05.014106-05:00</published>
    <updated>2007-12-26T19:49:05.014106-05:00</updated>
    <category term="Photography" label="Photography" scheme="http://blog.toddtaylor.com/CategoryView,category,Photography.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Although I like my Olympus E-500 for taking photos in daylight, I've been very
frustrated with it when taking photos in low light situations.   Since it's
winter here in Wisconsin, I find myself almost always in low light situations these
days and I started leaving my camera at home because I knew that I wouldn't be able
to get good shots with the built-in flash.
</p>
        <p>
As with most cameras, the built-in flash usually resulted in a lot of "red eye", unnatural
shadows, and over-exposed subjects with dark backgrounds.   If I turned
the flash off, I just ended-up with a blurry mess (even at high ISO
settings) since I rarely wanted to shoot subjects that were not moving.   
</p>
        <p>
One thing I really don't like about the E-500 is that is strobes the built-in flash
in order to get a focus lock.   Not only is this very distracting, especially
if the subject of your photo is a person or an animal, but it doesn't seem to work
very well since the camera doesn't get a focus lock very quickly.
</p>
        <p>
After attending a wedding a few weeks back where the photographer was taking one great
shot after another in low light, I asked the photographer what his 'secret' was. 
He said that he was just using a 'fast' lens along with the external flash and had
his camera set on auto focus.  Obviously, there there wasn't anything magic about
what this photographer was doing to get good shots, but he did have a good external
flash that I did not have.   So, thanks to a decent sale on Amazon.com,
I purchased the Olympus FL-50 external flash.
</p>
        <p align="center">
          <img title="OLYMPUS-FL50" height="225" alt="OLYMPUS-FL50" src="http://blog.toddtaylor.com/content/binary/OLYMPUS-FL50.jpg" width="300" align="center" border="0" />
        </p>
        <p>
Although Olympus offered cheaper models than the FL-50, I decided to get their flagship
model because it is the brightest flash offered.  As someone stated on the
DPReview.com forums, "You can always tone-down a bright flash to make it dimmer, but
you can't make a dim flash brighter."
</p>
        <p>
This is the first external flash I've ever owned, so I wasn't expecting to be able
to take decent photos for quite a while until I learned how to use it.  
However, I was pretty pleasantly surprised with how quickly I was able to start taking
very nice indoor shots while just leaving the flash in it's auto mode.
</p>
        <p>
Because the FL-50 blocks the built-in flash on the E-500 from popping-up, the flash
uses it's own red light to assist the camera with focusing in low light situations
rather than strobing the built-in flash.  To me, this is a HUGE reason for buying
this flash.   No more annoying disco-tech strobing and the camera does get
a focus lock much more quickly with the IR light.
</p>
        <p>
The other feature I really like about the FL-50 is it's pivoting head.  
It can be pivoted vertically and horizontally so you can make that the light is bouncing
off the correct object regardless of if the camera is vertical or horizontal.
</p>
        <p>
The only thing I don't like about have a flash on the camera is that the camera feels
very awkward now because it's so top-heavy.  If I'm not holding onto the camera
and just have it hanging around my neck by the strap, the heavy and tall flash
has a tendency to cause the whole camera to fall over.   I suspect this
would be an issue with any flash, but is still a bit annoying.
</p>
        <p>
So far, I'm very happy with my purchase.  I've got a lot to learn about how to
use an external flash, but even in the few times I've used it so far, I've greatly
increased the number of successful photos taken as compared to when I was just
using the built-in flash.
</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>U.S. House Passes Resolution Supporting Christmas and Christianity</title>
    <link rel="alternate" type="text/html" href="http://blog.toddtaylor.com/2007/12/15/USHousePassesResolutionSupportingChristmasAndChristianity.aspx" />
    <id>http://blog.toddtaylor.com/PermaLink,guid,7ba90643-9e24-4b67-a707-f3d158885bc3.aspx</id>
    <published>2007-12-14T19:32:46.625-05:00</published>
    <updated>2007-12-27T23:27:00.990648-05:00</updated>
    <category term="Christianity" label="Christianity" scheme="http://blog.toddtaylor.com/CategoryView,category,Christianity.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
I just got a little bit of good news emailed to me today by the <a href="http://www.lc.org/index.cfm?PID=14102&amp;AlertID=779">Liberty
Counsel</a>, stating that the U.S. House of Representatives passed a resolution recognizing
the importance of Christmas and the Christian faith by a vote of 372 to 9.  (Although
I find it a bit troubling that the two Wisconsin Representatives didn't vote at all.)
</p>
        <p>
A portion of the resolution:
</p>
        <blockquote dir="ltr" style="MARGIN-RIGHT: 0px">
          <p>
            <strong>
              <em>Resolved</em>
            </strong>, That the House of Representatives--
</p>
          <ol>
            <li>
recognizes the Christian faith as one of the great religions of the world; 
</li>
            <li>
expresses continued support for Christians in the United States and worldwide; 
</li>
            <li>
acknowledges the international religious and historical importance of Christmas and
the Christian faith; 
</li>
            <li>
acknowledges and supports the role played by Christians and Christianity in the founding
of the United States and in the formation of the western civilization; 
</li>
            <li>
rejects bigotry and persecution directed against Christians, both in the United States
and worldwide; and 
</li>
            <li>
expresses its deepest respect to American Christians and Christians throughout the
world.</li>
          </ol>
        </blockquote>
        <p dir="ltr">
Be sure to read the <a href="https://www.liberty.edu/media/9980/attachments/hres_847_christmas.pdf">PDF document</a> that
contains the entire resolution, as mentioned on the <a href="http://www.lc.org/index.cfm?PID=14102&amp;AlertID=779">Liberty
Counsel's web site</a>.
</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>Are You "a Gamblin' Man"?</title>
    <link rel="alternate" type="text/html" href="http://blog.toddtaylor.com/2007/09/05/AreYouAGamblinMan.aspx" />
    <id>http://blog.toddtaylor.com/PermaLink,guid,fa342650-0d31-4cf6-9efc-4ee09c4c76b3.aspx</id>
    <published>2007-09-04T23:11:35.693-04:00</published>
    <updated>2007-09-04T23:15:27.5973504-04:00</updated>
    <category term="Christianity" label="Christianity" scheme="http://blog.toddtaylor.com/CategoryView,category,Christianity.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
I was listening to a talk on <a href="http://www.relevantradio.com/">Relevant Radio</a> from
their show “<a href="http://www.relevantradio.com/NETCOMMUNITY/Page.aspx?&amp;pid=786&amp;srcid=217">Changed
Forever</a>” by <a href="http://www.thereasonforourhope.org/online_order/index.php">Father
Larry Richards</a> and he described  atheism in a light that I think really illustrates
the scary reality of what it means to say that one is an "atheist."   What
he said might be something you've already thought about, as I have, but it's definitely
worth remembering in case you ever get into a conversation about your faith with a
professed ‘atheist.’
</p>
        <p>
In a nutshell:  <em>An atheist will <u>never</u> know if he is right, a believer
will <u>never</u> know if he is wrong.</em></p>
        <p>
We all know that no one can prove that God exists, nor can we prove he doesn't. 
So, you've got a 50% chance of being right no matter what you think.  Those odds
might sound really great if the were the odds of winning the lottery, but they might
sound really horrible if you're about to play an involuntary game of Russian Roulette!
</p>
        <p>
As an atheist, if you are right, you'll never ever, ever, ever, ever, ever (on to
infinity) know if you are right because you'll be dead and death is forever. 
There is no way for a dead person to tell the living about life after death unless
there actually is life after death, in which case the atheist would be wrong.
</p>
        <p>
As a person of faith, you'll never ever, ever, ever (etc) know that you're wrong because
you'll be dead.
</p>
        <p>
As an atheist, if you are wrong, you will spend eternity knowing that you were wrong. 
An eternity, mind you, knowing that you denied God's existence when you were alive,
so I wouldn't expect that He would be willing to give you the ‘royal treatment’!
</p>
        <p>
As a believer, if you are right, you'll spend eternity knowing that every moment of
your life that you invested in following in Jesus’ footsteps was infinitely worth
it.
</p>
        <p>
So, do you know anyone who is “a gamblin' man”?
</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>Getting SQL Named Instance with SQL DMO</title>
    <link rel="alternate" type="text/html" href="http://blog.toddtaylor.com/2006/11/04/GettingSQLNamedInstanceWithSQLDMO.aspx" />
    <id>http://blog.toddtaylor.com/PermaLink,guid,c467e98a-4101-4b06-b90f-57a9f3625c67.aspx</id>
    <published>2006-11-04T19:02:20-04:00</published>
    <updated>2006-11-04T19:04:53.2481121-04:00</updated>
    <category term="C#" label="C#" scheme="http://blog.toddtaylor.com/CategoryView,category,C%23.aspx" />
    <category term="SQL" label="SQL" scheme="http://blog.toddtaylor.com/CategoryView,category,SQL.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
While attempting to retrieve a list of installed databases on my PC using <a href="http://www.csharphelp.com/archives2/archive342.html">SQLDMO
in C#</a>, I found that the named instances of SQL never showed-up no matter what
I did.  Since my PC only has two named instances of SQL server installed and
no default instances, this created a problem!
</p>
        <p>
As it turns-out, the <a href="http://blogs.msdn.com/sql%20protocols/archive/2005/09/24/473502.aspx" target=" blank">Windows
Firewall was blocking calls to the SQL Browser’s UDP port 1434</a>.  If you turn-off
your Windows Firewall, you should be able to retrieve all named instances of SQL Server
that are installed on your PC.  I opted to un-block this port so my app would
work.
</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>Using Conditional Compilation for UI Testing</title>
    <link rel="alternate" type="text/html" href="http://blog.toddtaylor.com/2006/09/02/UsingConditionalCompilationForUITesting.aspx" />
    <id>http://blog.toddtaylor.com/PermaLink,guid,ae1c9e78-7e0b-4c83-b949-2ecaaf324694.aspx</id>
    <published>2006-09-02T15:33:50.755-04:00</published>
    <updated>2006-09-02T15:55:19.9888095-04:00</updated>
    <category term="ASP.NET" label="ASP.NET" scheme="http://blog.toddtaylor.com/CategoryView,category,ASP.NET.aspx" />
    <category term="C#" label="C#" scheme="http://blog.toddtaylor.com/CategoryView,category,C%23.aspx" />
    <category term="Web Design" label="Web Design" scheme="http://blog.toddtaylor.com/CategoryView,category,Web%2BDesign.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
When trying to test a long web form, it gets really annoying having to manually populate
the form with information only to submit the form to see your error and then have
to do the whole thing over again once you <em>think</em> you’ve fixed the problem.
</p>
        <p>
Since I don’t own a copy of Visual Studio .NET 2005 Testing Edition, I haven’t had
much luck with finding good ways to test the UI (i.e., good ways to pre-populate forms
for testing.) Of course, one way to test a form is to actually set all the values
in a form on the ASPX page and then hope you remember to delete all those values once
you publish the site. However, this becomes very annoying if you don’t get things
right the first time.
</p>
        <p>
To make my life easier and make UI testing less painful, I came-up with a nifty way
to "cheat"... I’ve started using conditional compilation to populate my forms when
Visual Studio is in DEBUG mode, but leave the forms blank when in RELEASE mode. So
far, it works pretty slick, provided that I remember to compile my code in release
mode before publishing it!
</p>
        <p>
I wish I would’ve know about conditional compilation a while ago… it’s a really neat
feature. It took me a while to get it working properly, and here is how.
</p>
        <ol>
          <li>
Start with a Visual <a title="http://webproject.scottgu.com/CSharp/Migration2/Migration2.aspx" href="http://webproject.scottgu.com/CSharp/Migration2/Migration2.aspx"><font color="#800080">Studio
2005 Web Application Project</font></a> instead of the Visual Studio 2005 Web Site
Project.  Note that you’ll have to <a title="http://msdn.microsoft.com/asp.net/reference/infrastructure/wap/default.aspx" href="http://msdn.microsoft.com/asp.net/reference/infrastructure/wap/default.aspx"><font color="#800080">download</font></a> the
Web Application Project because created after Visual Studio was released.  The
application project behaves more like the Visual Studio 2003 web project and gives
you “Build” options in the project’s Properties menu.<br /></li>
          <li>
Once you have the web project created, right-click on the project title and select <strong><font face="Courier New">Properties</font></strong> and
then the <strong><font face="Courier New">Build</font></strong> tab.  <a href="http://blog.toddtaylor.com/content/binary/WebProperties.png" target="_blank">You
should see a screen like this</a>.<br /><br /></li>
          <li>
While <strong><font face="Courier New">Configuration</font></strong> is set to <strong><font face="Courier New">Debug</font></strong>,
leave <strong><font face="Courier New">Define DEBUG constant</font></strong> and <strong><font face="Courier New">Define
TRACE constant</font></strong> checked.  Then switch <strong><font face="Courier New">Configuration</font></strong> is
set to <strong><font face="Courier New">Release</font></strong> and uncheck <strong><font face="Courier New">Define
DEBUG constant</font></strong> and <strong><font face="Courier New">Define TRACE constant</font></strong>.<br /><br /></li>
          <li>
The rest is easy.  In your code, you can use the conditional compilation directive <strong><font face="Courier New">#if</font></strong> to
make sure the code you use to pre-populate your forms only exists in your code when
Visual Studio .NET is in <strong><font face="Courier New">Debug</font></strong> mode:<br /><br /><span style="COLOR: blue; FONT-FAMILY: 'Courier New'">protected</span><span style="FONT-FAMILY: 'Courier New'"><span style="COLOR: blue">void</span> Page_Load(<span style="COLOR: blue">object</span> sender, <span style="COLOR: teal">EventArgs</span> e)
{</span><br /><p><span style="FONT-FAMILY: 'Courier New'">        <span style="COLOR: blue">if</span> (!Page.IsPostBack)
{</span></p><p style="TEXT-INDENT: 0.5in"><span style="COLOR: blue; FONT-FAMILY: 'Courier New'">#if</span><span style="FONT-FAMILY: 'Courier New'"> DEBUG</span></p><p><span style="FONT-FAMILY: 'Courier New'">            <span style="COLOR: blue">this</span>.txtFirstName.Text
= <span style="COLOR: maroon">"John Doe"</span>;</span></p><p style="TEXT-INDENT: 0.5in"><span style="COLOR: blue; FONT-FAMILY: 'Courier New'">#endif</span></p><p style="MARGIN-LEFT: 0.5in; TEXT-INDENT: 12pt"><span style="FONT-FAMILY: 'Courier New'">}<br />
}</span></p></li>
          <li>
Run your site in <font face="Courier New"><strong>Debug</strong></font><span style="FONT-WEIGHT: normal; FONT-FAMILY: 'Arial (W1)'"> mode
and you should see your textbox named </span><font face="Courier New"><strong>txtFirstName</strong></font><span style="FONT-WEIGHT: normal; FONT-FAMILY: 'Arial (W1)'"> populated
with “John Doe”.  Run it in </span><font face="Courier New"><strong>Release</strong></font> mode
and your form should be blank.  Sweet!</li>
        </ol>
        <p>
Obviously, to keep your code a bit cleaner, you should probably create a method that
contains all your form population code and you can mark that method with a conditional
attribute by marking it with <font face="Courier New"><strong>[Conditional(“DEBUG”)]</strong></font>. 
Note that you will have to add the <span style="FONT-FAMILY: 'Courier New'"><strong>System.Diagnostics</strong></span> namespace
to your file in order for this attribute to work.
</p>
        <p>
So there you have it!  Make your UI testing a bit easier and still keep your
production code clean.
</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>How to Ruin a Web Design</title>
    <link rel="alternate" type="text/html" href="http://blog.toddtaylor.com/2006/07/25/HowToRuinAWebDesign.aspx" />
    <id>http://blog.toddtaylor.com/PermaLink,guid,2fcab202-4905-44ab-a984-8e2c60c291bc.aspx</id>
    <published>2006-07-25T19:16:11-04:00</published>
    <updated>2006-07-25T19:16:15.5779844-04:00</updated>
    <category term="Web Design" label="Web Design" scheme="http://blog.toddtaylor.com/CategoryView,category,Web%2BDesign.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <div class="Section1">
          <p class="MsoNormal">
            <span style="font-family:&quot;Arial \(W1\)&quot;">If you are a graphic designer, web designer,
or any kind of artist or designer that gets paid for your designs, you must read Matthew
Inman’s blog post, “<a href="http://www.seomoz.org/blogdetail.php?ID=1230">How 
to Ruin a Web Design</a>.”  After you get done laughing, I would suggest
printing the article and hanging it somewhere that your boss and co-workers can see
it!</span>
          </p>
        </div>
      </div>
    </content>
  </entry>
  <entry>
    <title>Stealing Microsoft Icons</title>
    <link rel="alternate" type="text/html" href="http://blog.toddtaylor.com/2006/06/07/StealingMicrosoftIcons.aspx" />
    <id>http://blog.toddtaylor.com/PermaLink,guid,8701b2b9-1e9d-43a6-a04a-460d32871bf6.aspx</id>
    <published>2006-06-07T15:13:10-04:00</published>
    <updated>2006-06-07T15:35:35.1642092-04:00</updated>
    <category term="C#" label="C#" scheme="http://blog.toddtaylor.com/CategoryView,category,C%23.aspx" />
    <category term="Geek Tips" label="Geek Tips" scheme="http://blog.toddtaylor.com/CategoryView,category,Geek%2BTips.aspx" />
    <category term="VB.NET" label="VB.NET" scheme="http://blog.toddtaylor.com/CategoryView,category,VB.NET.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Ok, ok... it's not stealing because Microsoft said we can do it!   If you've
ever wondered if you could use the icons in Visual Studio for other applications,
apparently you can: <a href="http://blogs.msdn.com/brada/archive/2006/06/06/618797.aspx">Brad
Abrams Blog: Standard Microsoft Icons</a></p>
      </div>
    </content>
  </entry>
  <entry>
    <title>Working with XML in the .NET 2.0 Framework</title>
    <link rel="alternate" type="text/html" href="http://blog.toddtaylor.com/2006/06/07/WorkingWithXMLInTheNET20Framework.aspx" />
    <id>http://blog.toddtaylor.com/PermaLink,guid,c74a7acf-fd0f-439a-816c-a77ae6756e8b.aspx</id>
    <published>2006-06-07T14:44:04-04:00</published>
    <updated>2006-06-07T14:47:54.3408791-04:00</updated>
    <category term="ASP.NET" label="ASP.NET" scheme="http://blog.toddtaylor.com/CategoryView,category,ASP.NET.aspx" />
    <category term="C#" label="C#" scheme="http://blog.toddtaylor.com/CategoryView,category,C%23.aspx" />
    <category term="VB.NET" label="VB.NET" scheme="http://blog.toddtaylor.com/CategoryView,category,VB.NET.aspx" />
    <category term="XML" label="XML" scheme="http://blog.toddtaylor.com/CategoryView,category,XML.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
One thing that was painfully lacking in Visual Studio 2003 was the ability to work
with XML and XSLT.  Most people opted to purchase third party tools like XML
Spy to deal with VS.NET's inadequacies.  However, Visual Studio .NET 2005 has
a group of new tools that add things such as XSLT debugging and Intellisense that
make working with XML related files much more tolerable.
</p>
        <p>
In addition, the .NET Framework 2.0 has undergone some significant improvements in
the System.XML namespace.  If you work with XML on a frequent basis, you'll want
to be sure to read through these MSDN articles and see what's new in version 2:
</p>
        <ul>
          <li>
            <a href="http://msdn.microsoft.com/XML/BuildingXML/XMLinNETFramework/default.aspx?pull=/library/en-us/dnxmlnet/html/xmltools.asp">An
Introduction to the XML Tools in Visual Studio 2005</a>
          </li>
          <li>
            <a href="http://msdn.microsoft.com/XML/BuildingXML/XMLinNETFramework/default.aspx?pull=/library/en-us/dnexxml/html/xml05202002.asp">XML
Namespaces and How They Affect XPath and XSLT</a>
          </li>
          <li>
            <a href="http://msdn.microsoft.com/XML/BuildingXML/XMLinNETFramework/default.aspx?pull=/library/en-us/dnxml/html/sysxmlvs05.asp">What's
New in System.Xml for Visual Studio 2005 and the .NET Framework 2.0 Release</a>
          </li>
        </ul>
      </div>
    </content>
  </entry>
</feed>