<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" version="2.0">
  <channel>
    <title>Zenmonkeys</title>
    <link>http://zenmonkeys.com/</link>
    <description />
    <language>en-us</language>
    <copyright>Zenmonkeys</copyright>
    <lastBuildDate>Fri, 09 Mar 2007 18:25:55 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 1.8.5223.2</generator>
    <managingEditor>bc@zenmonkeys.com</managingEditor>
    <webMaster>bc@zenmonkeys.com</webMaster>
    <item>
      <trackback:ping>http://zenmonkeys.com/Trackback.aspx?guid=13a6040e-73b7-4727-a710-fb078b57e9d0</trackback:ping>
      <pingback:server>http://zenmonkeys.com/pingback.aspx</pingback:server>
      <pingback:target>http://zenmonkeys.com/PermaLink,guid,13a6040e-73b7-4727-a710-fb078b57e9d0.aspx</pingback:target>
      <dc:creator>bc@zenmonkeys.com (Brendon)</dc:creator>
      <wfw:comment>http://zenmonkeys.com/CommentView,guid,13a6040e-73b7-4727-a710-fb078b57e9d0.aspx</wfw:comment>
      <wfw:commentRss>http://zenmonkeys.com/SyndicationService.asmx/GetEntryCommentsRss?guid=13a6040e-73b7-4727-a710-fb078b57e9d0</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
      If you are using a cancel button on a .NET Web Form and it's causing your page to
      trigger the validation you can set the CausesValidation property to false. It's set
      to true by default. Often you don't want to user to have to pass your validation before
      canceling a form - they might have decided not to enter the new record or not know
      the required data.
   </p>
        <span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">
          <p>
            <span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">&lt;asp:Button
      ID=<span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">"CancelButton"</span> CommandName=<span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">"Cancel"</span> Text=<span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">"Cancel"</span> Width=<span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">"50"</span> CausesValidation=<span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">"False"</span> runat=<span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">"Server"</span><span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">/</span>&gt;</span>
          </p>
        </span>
        <img width="0" height="0" src="http://zenmonkeys.com/aggbug.ashx?id=13a6040e-73b7-4727-a710-fb078b57e9d0" />
      </body>
      <title>Cancel Button Triggers Validation</title>
      <guid>http://zenmonkeys.com/PermaLink,guid,13a6040e-73b7-4727-a710-fb078b57e9d0.aspx</guid>
      <link>http://zenmonkeys.com/PermaLink,guid,13a6040e-73b7-4727-a710-fb078b57e9d0.aspx</link>
      <pubDate>Fri, 09 Mar 2007 18:25:55 GMT</pubDate>
      <description>&lt;p&gt;
   If you are using a cancel button on a .NET Web Form and it's causing your page to
   trigger the validation you can set the CausesValidation property to false. It's set
   to true by default. Often you don't want to user to have to pass your validation before
   canceling a form - they might have decided not to enter the new record or not know
   the required data.
&lt;/p&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt; 
&lt;p&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&amp;lt;asp:Button
   ID=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"CancelButton"&lt;/span&gt; CommandName=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Cancel"&lt;/span&gt; Text=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Cancel"&lt;/span&gt; Width=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"50"&lt;/span&gt; CausesValidation=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"False"&lt;/span&gt; runat=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Server"&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;/&lt;/span&gt;&amp;gt;&lt;/span&gt;
&lt;/p&gt;
&lt;/span&gt;&lt;img width="0" height="0" src="http://zenmonkeys.com/aggbug.ashx?id=13a6040e-73b7-4727-a710-fb078b57e9d0" /&gt;</description>
      <comments>http://zenmonkeys.com/CommentView,guid,13a6040e-73b7-4727-a710-fb078b57e9d0.aspx</comments>
      <category>ASP.NET</category>
    </item>
    <item>
      <trackback:ping>http://zenmonkeys.com/Trackback.aspx?guid=a3e437f7-8281-43a6-b8c4-9bdf007c05df</trackback:ping>
      <pingback:server>http://zenmonkeys.com/pingback.aspx</pingback:server>
      <pingback:target>http://zenmonkeys.com/PermaLink,guid,a3e437f7-8281-43a6-b8c4-9bdf007c05df.aspx</pingback:target>
      <dc:creator>bc@zenmonkeys.com (Brendon)</dc:creator>
      <wfw:comment>http://zenmonkeys.com/CommentView,guid,a3e437f7-8281-43a6-b8c4-9bdf007c05df.aspx</wfw:comment>
      <wfw:commentRss>http://zenmonkeys.com/SyndicationService.asmx/GetEntryCommentsRss?guid=a3e437f7-8281-43a6-b8c4-9bdf007c05df</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <!-- Begin OwnYourC.com cPet Code -->
        <script language="javascript" src="http://www.ownyourc.com/cpet/embed.asp?t=script&amp;a=4&amp;c=0x4a489c&amp;n=TREE SHOE" type="text/javascript">
        </script>
        <img width="0" height="0" src="http://zenmonkeys.com/aggbug.ashx?id=a3e437f7-8281-43a6-b8c4-9bdf007c05df" />
      </body>
      <title>C-Ville Pet</title>
      <guid>http://zenmonkeys.com/PermaLink,guid,a3e437f7-8281-43a6-b8c4-9bdf007c05df.aspx</guid>
      <link>http://zenmonkeys.com/PermaLink,guid,a3e437f7-8281-43a6-b8c4-9bdf007c05df.aspx</link>
      <pubDate>Wed, 25 Oct 2006 17:46:24 GMT</pubDate>
      <description>&lt;!-- Begin OwnYourC.com cPet Code --&gt;
&lt;script language=javascript src="http://www.ownyourc.com/cpet/embed.asp?t=script&amp;amp;a=4&amp;amp;c=0x4a489c&amp;amp;n=TREE SHOE" type=text/javascript&gt;&lt;/script&gt;
&lt;img width="0" height="0" src="http://zenmonkeys.com/aggbug.ashx?id=a3e437f7-8281-43a6-b8c4-9bdf007c05df" /&gt;</description>
      <comments>http://zenmonkeys.com/CommentView,guid,a3e437f7-8281-43a6-b8c4-9bdf007c05df.aspx</comments>
      <category>General</category>
    </item>
    <item>
      <trackback:ping>http://zenmonkeys.com/Trackback.aspx?guid=20d0f751-9541-4886-9532-0312d7525e8e</trackback:ping>
      <pingback:server>http://zenmonkeys.com/pingback.aspx</pingback:server>
      <pingback:target>http://zenmonkeys.com/PermaLink,guid,20d0f751-9541-4886-9532-0312d7525e8e.aspx</pingback:target>
      <dc:creator>bc@zenmonkeys.com (Brendon)</dc:creator>
      <wfw:comment>http://zenmonkeys.com/CommentView,guid,20d0f751-9541-4886-9532-0312d7525e8e.aspx</wfw:comment>
      <wfw:commentRss>http://zenmonkeys.com/SyndicationService.asmx/GetEntryCommentsRss?guid=20d0f751-9541-4886-9532-0312d7525e8e</wfw:commentRss>
      <title>Coldfusion Inserting SQL Server Database Null Values</title>
      <guid>http://zenmonkeys.com/PermaLink,guid,20d0f751-9541-4886-9532-0312d7525e8e.aspx</guid>
      <link>http://zenmonkeys.com/PermaLink,guid,20d0f751-9541-4886-9532-0312d7525e8e.aspx</link>
      <pubDate>Tue, 15 Aug 2006 18:16:36 GMT</pubDate>
      <description>&lt;p&gt;
   &lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;This
   is just a quick tip, but if you ever have problems converting your Coldfusion form
   values to a SQL Server database NULL before using an Insert or Update statement, the
   following info might help.&lt;o:p&gt;&lt;/o:p&gt;
   &lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"&gt;When you request
   form values from the submitting page make sure to use CFPARAM and give each form value
   submitted a default value, or just set to "" if the value doesn't matter. 
   &lt;o:p&gt;&lt;/o:p&gt;
   &lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;span style="FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: 'Courier New'"&gt;&amp;lt;CFPARAM
   name=&lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; BACKGROUND: #e4e4e4; COLOR: #666666; FONT-FAMILY: 'Courier New'"&gt;"form.yourValue"&lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: 'Courier New'"&gt; &lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; COLOR: blue; FONT-FAMILY: 'Courier New'"&gt;default&lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: 'Courier New'"&gt;=&lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; BACKGROUND: #e4e4e4; COLOR: #666666; FONT-FAMILY: 'Courier New'"&gt;""&lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: 'Courier New'"&gt;&amp;gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"&gt;
   &lt;o:p&gt;&lt;/o:p&gt;
   &lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"&gt;Then when you
   execute your SQL command use CFQUERYPARAM to pass the value to SQL Server. Set the
   cfsqltype to your required data type. The trick to inserting the database null is
   to use the "null" attribute of CFQUERYPARAM. If you know that the form value will
   be null you can just pass the value directly to the "null" attribute, but if you don't
   know if a user has passed any data then check to see if you are passing an empty string
   and use the Coldfusion function YesNoFormat to create a Yes or No value for the "null"
   attribute.&lt;o:p&gt;&lt;/o:p&gt;
   &lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"&gt;It's not really
   as confusing as I made it sound - just use the the code snippet below and Coldfusion
   will create your database null values for you. 
   &lt;o:p&gt;&lt;/o:p&gt;
   &lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;span style="FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: 'Courier New'"&gt;&amp;lt;CFQUERYPARAM
   value=&lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; BACKGROUND: #e4e4e4; COLOR: #666666; FONT-FAMILY: 'Courier New'"&gt;"#form.yourValue#"&lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: 'Courier New'"&gt; null=&lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; BACKGROUND: #e4e4e4; COLOR: #666666; FONT-FAMILY: 'Courier New'"&gt;"#YesNoFormat(NOT
   Len(Trim(form.yourValue)))#"&lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: 'Courier New'"&gt; cfsqltype=&lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; BACKGROUND: #e4e4e4; COLOR: #666666; FONT-FAMILY: 'Courier New'"&gt;"CF_SQL_INTEGER"&lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: 'Courier New'"&gt; &lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; COLOR: red; FONT-FAMILY: 'Courier New'"&gt;/&lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: 'Courier New'"&gt;&amp;gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"&gt;
   &lt;o:p&gt;&lt;/o:p&gt;
   &lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana; mso-bidi-font-family: 'Courier New'"&gt;Note:&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"&gt;
   &lt;o:p&gt;&lt;/o:p&gt;
   &lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana; mso-bidi-font-family: 'Courier New'"&gt;For
   checkboxes you have to convert the value to 1 or 0 before using it in a SQL command.
   I just created a little function I call to do this:&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"&gt;
   &lt;o:p&gt;&lt;/o:p&gt;
   &lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;span style="FONT-SIZE: 8.5pt; COLOR: blue; FONT-FAMILY: 'Courier New'"&gt;function&lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: 'Courier New'"&gt; fixCheckbox(value)
   {&lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var x &lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; COLOR: red; FONT-FAMILY: 'Courier New'"&gt;=&lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: 'Courier New'"&gt; &lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; BACKGROUND: #e4e4e4; COLOR: #666666; FONT-FAMILY: 'Courier New'"&gt;""&lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: 'Courier New'"&gt;;&lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; COLOR: blue; FONT-FAMILY: 'Courier New'"&gt;if&lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: 'Courier New'"&gt; (value
   EQ &lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; BACKGROUND: #e4e4e4; COLOR: #666666; FONT-FAMILY: 'Courier New'"&gt;"on"&lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: 'Courier New'"&gt;)
   {&lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;x &lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; COLOR: red; FONT-FAMILY: 'Courier New'"&gt;=&lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: 'Courier New'"&gt; 1;&lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; COLOR: blue; FONT-FAMILY: 'Courier New'"&gt;else&lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: 'Courier New'"&gt; {&lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;x &lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; COLOR: red; FONT-FAMILY: 'Courier New'"&gt;=&lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: 'Courier New'"&gt; 0;&lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; COLOR: blue; FONT-FAMILY: 'Courier New'"&gt;return&lt;/span&gt;&lt;span style="FONT-SIZE: 8.5pt; COLOR: black; FONT-FAMILY: 'Courier New'"&gt; x;&lt;br&gt;
   }&lt;o:p&gt;&lt;/o:p&gt;
   &lt;/span&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://zenmonkeys.com/aggbug.ashx?id=20d0f751-9541-4886-9532-0312d7525e8e" /&gt;</description>
      <comments>http://zenmonkeys.com/CommentView,guid,20d0f751-9541-4886-9532-0312d7525e8e.aspx</comments>
      <category>ColdFusion</category>
    </item>
    <item>
      <trackback:ping>http://zenmonkeys.com/Trackback.aspx?guid=a434a42e-fb57-4b6d-a2d3-7bfe85155ea7</trackback:ping>
      <pingback:server>http://zenmonkeys.com/pingback.aspx</pingback:server>
      <pingback:target>http://zenmonkeys.com/PermaLink,guid,a434a42e-fb57-4b6d-a2d3-7bfe85155ea7.aspx</pingback:target>
      <dc:creator>bc@zenmonkeys.com (Brendon)</dc:creator>
      <wfw:comment>http://zenmonkeys.com/CommentView,guid,a434a42e-fb57-4b6d-a2d3-7bfe85155ea7.aspx</wfw:comment>
      <wfw:commentRss>http://zenmonkeys.com/SyndicationService.asmx/GetEntryCommentsRss?guid=a434a42e-fb57-4b6d-a2d3-7bfe85155ea7</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
      If your CSS doesn't seem to be rendering correctly even though you are 99.99% sure
      you're using the correct markup double check the doctype. If you don't explicitly
      set the doctype to transitional or strict the browser will default to CSS 1.0 specifications
      and many CSS 2.0 features aren't supported in the older version.
   </p>
        <p>
      Make sure this is above the &lt;html&gt; tag:
   </p>
        <p>
      &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>"&gt;
   </p>
        <p>
      Understanding DOCTYPE:
   </p>
        <a href="http://www.alistapart.com/articles/doctype/">http://www.alistapart.com/articles/doctype/</a>
        <p>
       
   </p>
        <img width="0" height="0" src="http://zenmonkeys.com/aggbug.ashx?id=a434a42e-fb57-4b6d-a2d3-7bfe85155ea7" />
      </body>
      <title>CSS Not Displaying Correctly</title>
      <guid>http://zenmonkeys.com/PermaLink,guid,a434a42e-fb57-4b6d-a2d3-7bfe85155ea7.aspx</guid>
      <link>http://zenmonkeys.com/PermaLink,guid,a434a42e-fb57-4b6d-a2d3-7bfe85155ea7.aspx</link>
      <pubDate>Mon, 07 Aug 2006 18:26:09 GMT</pubDate>
      <description>&lt;p&gt;
   If your CSS doesn't seem to be rendering correctly even though you are 99.99% sure
   you're using the correct markup double check the doctype. If you don't explicitly
   set the doctype to transitional or strict the browser will default to CSS 1.0 specifications
   and many CSS 2.0 features aren't supported in the older version.
&lt;/p&gt;
&lt;p&gt;
   Make sure this is above the &amp;lt;html&amp;gt; tag:
&lt;/p&gt;
&lt;p&gt;
   &amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "&lt;a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&lt;/a&gt;"&amp;gt;
&lt;/p&gt;
&lt;p&gt;
   Understanding DOCTYPE:
&lt;/p&gt;
&lt;a href="http://www.alistapart.com/articles/doctype/"&gt;http://www.alistapart.com/articles/doctype/&lt;/a&gt; 
&lt;p&gt;
   &amp;nbsp;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://zenmonkeys.com/aggbug.ashx?id=a434a42e-fb57-4b6d-a2d3-7bfe85155ea7" /&gt;</description>
      <comments>http://zenmonkeys.com/CommentView,guid,a434a42e-fb57-4b6d-a2d3-7bfe85155ea7.aspx</comments>
      <category>CSS</category>
    </item>
    <item>
      <trackback:ping>http://zenmonkeys.com/Trackback.aspx?guid=85d14ada-9150-45c2-be44-4ce0257d1fca</trackback:ping>
      <pingback:server>http://zenmonkeys.com/pingback.aspx</pingback:server>
      <pingback:target>http://zenmonkeys.com/PermaLink,guid,85d14ada-9150-45c2-be44-4ce0257d1fca.aspx</pingback:target>
      <dc:creator>bc@zenmonkeys.com (Brendon)</dc:creator>
      <wfw:comment>http://zenmonkeys.com/CommentView,guid,85d14ada-9150-45c2-be44-4ce0257d1fca.aspx</wfw:comment>
      <wfw:commentRss>http://zenmonkeys.com/SyndicationService.asmx/GetEntryCommentsRss?guid=85d14ada-9150-45c2-be44-4ce0257d1fca</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
      This tip is from <a href="http://dwtips.com/2006/06/17/how-to-speed-up-pdf-loading-with-adobe-acrobat/">DWTIPS </a>-
      it's a good one. To reduce the time it takes to load a PDF you can disable some of
      the plug-ins that load everytime Acrobat is started up. Here's how you do it:
   </p>
        <p>
      To disable unneeded plugins and make them <i>optional</i> instead, follow these instructions:
   </p>
        <ol>
          <li>
         Install the latest version of Adobe Acrobat - you can <a onclick="javascript:urchinTracker ('/outbound/www.adobe.com');" href="http://www.adobe.com/go/gntray_dl_downloads" target="_newadobe"><font color="#7a7636">get
         it here</font></a></li>
          <li>
         Browse to the plugins folder: <em>C:\Program Files\Adobe\Acrobat 7.0\Reader\plug_ins</em></li>
          <li>
         Create a new folder named <i>Optional</i></li>
          <li>
         Move all files from the plug_ins folder to Optional, except EWH32.api, print*.api,
         and Search*.api 
      </li>
        </ol>
        <img width="0" height="0" src="http://zenmonkeys.com/aggbug.ashx?id=85d14ada-9150-45c2-be44-4ce0257d1fca" />
      </body>
      <title>Speed up PDF loading in Acrobat</title>
      <guid>http://zenmonkeys.com/PermaLink,guid,85d14ada-9150-45c2-be44-4ce0257d1fca.aspx</guid>
      <link>http://zenmonkeys.com/PermaLink,guid,85d14ada-9150-45c2-be44-4ce0257d1fca.aspx</link>
      <pubDate>Mon, 19 Jun 2006 17:38:04 GMT</pubDate>
      <description>&lt;p&gt;
   This tip is from &lt;a href="http://dwtips.com/2006/06/17/how-to-speed-up-pdf-loading-with-adobe-acrobat/"&gt;DWTIPS &lt;/a&gt;-
   it's a good one. To reduce the time it takes to load a PDF you can disable some of
   the plug-ins that load everytime Acrobat is started up. Here's how you do it:
&lt;/p&gt;
&lt;p&gt;
   To disable unneeded plugins and make them &lt;i&gt;optional&lt;/i&gt; instead, follow these instructions:
&lt;/p&gt;
&lt;ol&gt;
   &lt;li&gt;
      Install the latest version of Adobe Acrobat - you can &lt;a onclick="javascript:urchinTracker ('/outbound/www.adobe.com');" href="http://www.adobe.com/go/gntray_dl_downloads" target=_newadobe&gt;&lt;font color=#7a7636&gt;get
      it here&lt;/font&gt;&lt;/a&gt; 
   &lt;li&gt;
      Browse to the plugins folder: &lt;em&gt;C:\Program Files\Adobe\Acrobat 7.0\Reader\plug_ins&lt;/em&gt; 
   &lt;li&gt;
      Create a new folder named &lt;i&gt;Optional&lt;/i&gt; 
   &lt;li&gt;
      Move all files from the plug_ins folder to Optional, except EWH32.api, print*.api,
      and Search*.api 
   &lt;/li&gt;
&lt;/ol&gt;
&lt;img width="0" height="0" src="http://zenmonkeys.com/aggbug.ashx?id=85d14ada-9150-45c2-be44-4ce0257d1fca" /&gt;</description>
      <comments>http://zenmonkeys.com/CommentView,guid,85d14ada-9150-45c2-be44-4ce0257d1fca.aspx</comments>
      <category>General</category>
    </item>
    <item>
      <trackback:ping>http://zenmonkeys.com/Trackback.aspx?guid=5f15623d-2b76-4af5-976e-33336d76f916</trackback:ping>
      <pingback:server>http://zenmonkeys.com/pingback.aspx</pingback:server>
      <pingback:target>http://zenmonkeys.com/PermaLink,guid,5f15623d-2b76-4af5-976e-33336d76f916.aspx</pingback:target>
      <dc:creator>bc@zenmonkeys.com (Brendon)</dc:creator>
      <wfw:comment>http://zenmonkeys.com/CommentView,guid,5f15623d-2b76-4af5-976e-33336d76f916.aspx</wfw:comment>
      <wfw:commentRss>http://zenmonkeys.com/SyndicationService.asmx/GetEntryCommentsRss?guid=5f15623d-2b76-4af5-976e-33336d76f916</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
      Microsoft recently launched a new IIS website. The site is mainly dedicated to IIS
      7. It has some pretty cool utilities and lets you try out IIS7 through your browser.
      It might be worth checking out when you have a chance.
   </p>
        <p>
          <a href="http://www.iis.net/">http://www.iis.net/</a>
        </p>
        <p align="right">
          <img src="http://zenmonkeys.com/content/binary/iis7.JPG" border="0" />
        </p>
        <img width="0" height="0" src="http://zenmonkeys.com/aggbug.ashx?id=5f15623d-2b76-4af5-976e-33336d76f916" />
      </body>
      <title>New IIS Website</title>
      <guid>http://zenmonkeys.com/PermaLink,guid,5f15623d-2b76-4af5-976e-33336d76f916.aspx</guid>
      <link>http://zenmonkeys.com/PermaLink,guid,5f15623d-2b76-4af5-976e-33336d76f916.aspx</link>
      <pubDate>Wed, 31 May 2006 12:27:29 GMT</pubDate>
      <description>&lt;p&gt;
   Microsoft recently launched a new IIS website. The site is mainly dedicated to IIS
   7. It has some pretty cool utilities and lets you try out IIS7 through your browser.
   It might be worth checking out when you have a chance.
&lt;/p&gt;
&lt;p&gt;
   &lt;a href="http://www.iis.net/"&gt;http://www.iis.net/&lt;/a&gt;
&lt;/p&gt;
&lt;p align=right&gt;
   &lt;img src="http://zenmonkeys.com/content/binary/iis7.JPG" border=0&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://zenmonkeys.com/aggbug.ashx?id=5f15623d-2b76-4af5-976e-33336d76f916" /&gt;</description>
      <comments>http://zenmonkeys.com/CommentView,guid,5f15623d-2b76-4af5-976e-33336d76f916.aspx</comments>
      <category>ASP.NET;IIS</category>
    </item>
    <item>
      <trackback:ping>http://zenmonkeys.com/Trackback.aspx?guid=8567267d-1ab4-40d0-8beb-23c920178cb1</trackback:ping>
      <pingback:server>http://zenmonkeys.com/pingback.aspx</pingback:server>
      <pingback:target>http://zenmonkeys.com/PermaLink,guid,8567267d-1ab4-40d0-8beb-23c920178cb1.aspx</pingback:target>
      <dc:creator>bc@zenmonkeys.com (Brendon)</dc:creator>
      <wfw:comment>http://zenmonkeys.com/CommentView,guid,8567267d-1ab4-40d0-8beb-23c920178cb1.aspx</wfw:comment>
      <wfw:commentRss>http://zenmonkeys.com/SyndicationService.asmx/GetEntryCommentsRss?guid=8567267d-1ab4-40d0-8beb-23c920178cb1</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
        </p>
        <p>
      Andy Hume posted an intersting article on <a href="http://bitesizestandards.com">bitesizestandards.com</a> .
      It talks about positioning &lt;divs&gt; located on the source document in any order
      through css. Normally &lt;divs&gt; order themselves on the page according to
      the order they are placed on the page.
   </p>
        <p>
      Here is a link to the article:
   </p>
        <p>
          <a href="http://bitesizestandards.com/bites/understanding-any-order-columns">http://bitesizestandards.com/bites/understanding-any-order-columns</a>
        </p>
        <img width="0" height="0" src="http://zenmonkeys.com/aggbug.ashx?id=8567267d-1ab4-40d0-8beb-23c920178cb1" />
      </body>
      <title>Link - Understanding “Any order columns”</title>
      <guid>http://zenmonkeys.com/PermaLink,guid,8567267d-1ab4-40d0-8beb-23c920178cb1.aspx</guid>
      <link>http://zenmonkeys.com/PermaLink,guid,8567267d-1ab4-40d0-8beb-23c920178cb1.aspx</link>
      <pubDate>Wed, 24 May 2006 14:34:20 GMT</pubDate>
      <description>&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
   Andy Hume posted an intersting article on &lt;a href="http://bitesizestandards.com"&gt;bitesizestandards.com&lt;/a&gt;&amp;nbsp;.
   It talks about positioning &amp;lt;divs&amp;gt; located on the source document in any order
   through css. Normally &amp;lt;divs&amp;gt; order themselves on&amp;nbsp;the page according to
   the order they are placed on the page.
&lt;/p&gt;
&lt;p&gt;
   Here is a link to the article:
&lt;/p&gt;
&lt;p&gt;
   &lt;a href="http://bitesizestandards.com/bites/understanding-any-order-columns"&gt;http://bitesizestandards.com/bites/understanding-any-order-columns&lt;/a&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://zenmonkeys.com/aggbug.ashx?id=8567267d-1ab4-40d0-8beb-23c920178cb1" /&gt;</description>
      <comments>http://zenmonkeys.com/CommentView,guid,8567267d-1ab4-40d0-8beb-23c920178cb1.aspx</comments>
      <category>CSS</category>
    </item>
    <item>
      <trackback:ping>http://zenmonkeys.com/Trackback.aspx?guid=d08cc5e2-fbc7-4083-9887-7272193c4ea9</trackback:ping>
      <pingback:server>http://zenmonkeys.com/pingback.aspx</pingback:server>
      <pingback:target>http://zenmonkeys.com/PermaLink,guid,d08cc5e2-fbc7-4083-9887-7272193c4ea9.aspx</pingback:target>
      <dc:creator>bc@zenmonkeys.com (Brendon)</dc:creator>
      <wfw:comment>http://zenmonkeys.com/CommentView,guid,d08cc5e2-fbc7-4083-9887-7272193c4ea9.aspx</wfw:comment>
      <wfw:commentRss>http://zenmonkeys.com/SyndicationService.asmx/GetEntryCommentsRss?guid=d08cc5e2-fbc7-4083-9887-7272193c4ea9</wfw:commentRss>
      <slash:comments>4</slash:comments>
      <title>Explicitly set Application Name in Web.Config</title>
      <guid>http://zenmonkeys.com/PermaLink,guid,d08cc5e2-fbc7-4083-9887-7272193c4ea9.aspx</guid>
      <link>http://zenmonkeys.com/PermaLink,guid,d08cc5e2-fbc7-4083-9887-7272193c4ea9.aspx</link>
      <pubDate>Fri, 21 Apr 2006 19:24:00 GMT</pubDate>
      <description>&lt;p&gt;
   &lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"&gt;&lt;strong&gt;Typical
   Problem: ASP.NET &amp;lt;asp:login&amp;gt; works fine when tested locally, but doesn't work
   when deployed.&lt;/strong&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"&gt; 
&lt;p&gt;
   &lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;If
   you are setting up an ASP.NET application for deployment it's best to explicitly define
   the applicationName property on your membership provider - otherwise when you go to
   deploy the application you&amp;nbsp;might run into problems. 
   &lt;o:p&gt;&lt;/o:p&gt;
   &lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"&gt;The applicationName
   property in the web.config has to match&amp;nbsp;the application path or application name
   of the web application - the paths are generally going&amp;nbsp;to be&amp;nbsp;different&amp;nbsp;between
   your test and production environments. 
   &lt;o:p&gt;&lt;/o:p&gt;
   &lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"&gt;So, the best way
   to make sure web.config stays correct for test and production is to&amp;nbsp;set the application
   name through IIS.&lt;o:p&gt;&lt;/o:p&gt;
   &lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
   Note:
&lt;/p&gt;
&lt;p&gt;
   Another thing to look out for when using the LoginView is that the&amp;nbsp;control does
   not use the membership provider - it uses&amp;nbsp;FormsAuthentication (for login status)
   and the RoleProvider for specific roles. You need to&amp;nbsp;put the ApplicationName
   in your role provider as well:
&lt;/p&gt;
&lt;p&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;
   &lt;br&gt;
   &amp;lt;roleManager enabled=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"true"&lt;/span&gt; defaultProvider=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"SqlRole"&lt;/span&gt;&amp;gt;&lt;br&gt;
   &amp;nbsp; &amp;lt;providers&amp;gt;&lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;add&lt;/span&gt; name=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"SqlRole"&lt;/span&gt; 
   &lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp; connectionStringName=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"YOUR_CONNECTION"&lt;/span&gt; 
   &lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp; applicationName=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"appName"&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;/&lt;/span&gt;&amp;gt;&lt;br&gt;
   &amp;nbsp; &amp;lt;/providers&amp;gt; 
   &lt;br&gt;
   &amp;lt;/roleManager&amp;gt;&lt;br&gt;
   &lt;br&gt;
   &lt;/span&gt;
&lt;/p&gt;
&lt;/span&gt; 
&lt;p&gt;
&lt;p&gt;
   &amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
   &amp;nbsp;
&lt;/p&gt;
&gt;
&lt;img width="0" height="0" src="http://zenmonkeys.com/aggbug.ashx?id=d08cc5e2-fbc7-4083-9887-7272193c4ea9" /&gt;</description>
      <comments>http://zenmonkeys.com/CommentView,guid,d08cc5e2-fbc7-4083-9887-7272193c4ea9.aspx</comments>
      <category>ASP.NET</category>
    </item>
    <item>
      <trackback:ping>http://zenmonkeys.com/Trackback.aspx?guid=0a38703a-2975-4a68-ab35-88189cf1b73b</trackback:ping>
      <pingback:server>http://zenmonkeys.com/pingback.aspx</pingback:server>
      <pingback:target>http://zenmonkeys.com/PermaLink,guid,0a38703a-2975-4a68-ab35-88189cf1b73b.aspx</pingback:target>
      <dc:creator>bc@zenmonkeys.com (Brendon)</dc:creator>
      <wfw:comment>http://zenmonkeys.com/CommentView,guid,0a38703a-2975-4a68-ab35-88189cf1b73b.aspx</wfw:comment>
      <wfw:commentRss>http://zenmonkeys.com/SyndicationService.asmx/GetEntryCommentsRss?guid=0a38703a-2975-4a68-ab35-88189cf1b73b</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
          <strong>ASP.NET Debugging with Trace.Warn</strong>
        </p>
        <p>
      If you are trying to use Trace.Warn in your .NET application and you are getting an
      error that Trace is not declared than it probably means that you need to use the full
      object path declaration.
   </p>
        <font size="2">
          <p>
            <span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">HttpContext.Current.Trace.Warn(<span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">"Your
      String"</span>)<br /><br /></span>
          </p>
          <p>
       
   </p>
        </font>
        <img width="0" height="0" src="http://zenmonkeys.com/aggbug.ashx?id=0a38703a-2975-4a68-ab35-88189cf1b73b" />
      </body>
      <title>Trace.Warn Not Working</title>
      <guid>http://zenmonkeys.com/PermaLink,guid,0a38703a-2975-4a68-ab35-88189cf1b73b.aspx</guid>
      <link>http://zenmonkeys.com/PermaLink,guid,0a38703a-2975-4a68-ab35-88189cf1b73b.aspx</link>
      <pubDate>Mon, 10 Apr 2006 12:45:17 GMT</pubDate>
      <description>&lt;p&gt;
   &lt;strong&gt;ASP.NET Debugging with Trace.Warn&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
   If you are trying to use Trace.Warn in your .NET application and you are getting an
   error that Trace is not declared than it probably means that you need to use the full
   object path declaration.
&lt;/p&gt;
&lt;font size=2&gt; 
&lt;p&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;HttpContext.Current.Trace.Warn(&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Your
   String"&lt;/span&gt;)&lt;br&gt;
   &lt;br&gt;
   &lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
   &amp;nbsp;
&lt;/p&gt;
&lt;/font&gt;&lt;img width="0" height="0" src="http://zenmonkeys.com/aggbug.ashx?id=0a38703a-2975-4a68-ab35-88189cf1b73b" /&gt;</description>
      <comments>http://zenmonkeys.com/CommentView,guid,0a38703a-2975-4a68-ab35-88189cf1b73b.aspx</comments>
      <category>ASP.NET</category>
    </item>
    <item>
      <trackback:ping>http://zenmonkeys.com/Trackback.aspx?guid=1b77e01c-207a-4201-8626-886fbe4ef25d</trackback:ping>
      <pingback:server>http://zenmonkeys.com/pingback.aspx</pingback:server>
      <pingback:target>http://zenmonkeys.com/PermaLink,guid,1b77e01c-207a-4201-8626-886fbe4ef25d.aspx</pingback:target>
      <dc:creator>bc@zenmonkeys.com (Brendon)</dc:creator>
      <wfw:comment>http://zenmonkeys.com/CommentView,guid,1b77e01c-207a-4201-8626-886fbe4ef25d.aspx</wfw:comment>
      <wfw:commentRss>http://zenmonkeys.com/SyndicationService.asmx/GetEntryCommentsRss?guid=1b77e01c-207a-4201-8626-886fbe4ef25d</wfw:commentRss>
      <slash:comments>6</slash:comments>
      <title>Overriding "Cancel" or "Delete" button in DetailsView</title>
      <guid>http://zenmonkeys.com/PermaLink,guid,1b77e01c-207a-4201-8626-886fbe4ef25d.aspx</guid>
      <link>http://zenmonkeys.com/PermaLink,guid,1b77e01c-207a-4201-8626-886fbe4ef25d.aspx</link>
      <pubDate>Fri, 07 Apr 2006 13:28:56 GMT</pubDate>
      <description>&lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"&gt; 
&lt;p&gt;
   &lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"&gt;&lt;strong&gt;Adding
   a Confirmation to a Command Button&lt;/strong&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;I'm
   coming from a Classic ASP background, so I'm used to just using JavaScript to control
   the client side functionality of command buttons, so when it came time to take control
   of the Cancel button created by an ASP.NET DetailsView I was stumped. There's probably
   a better way to do it, but this worked for me.&lt;o:p&gt;&lt;/o:p&gt;
   &lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"&gt;The command buttons
   are created in the last row of the DetailsView during the ItemCreated event, so first&amp;nbsp;check
   if the footer row has been created:&lt;/span&gt;
&lt;/p&gt;
&lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"&gt; 
&lt;p&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;If&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Not&lt;/span&gt; (DetailsView1.FooterRow &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Is&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Nothing&lt;/span&gt;) &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Then&lt;/span&gt;
   &lt;br&gt;
   &lt;/span&gt;
&lt;/p&gt;
&lt;/span&gt; 
&lt;p&gt;
   &lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"&gt;The command bar
   that contains your action buttons it the last element in the Rows collection. Once
   you have the command bar you can loop through all of its controls and find the one
   your looking for. I was looking for the Cancel button:&lt;/span&gt;
&lt;/p&gt;
&lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"&gt; 
&lt;p&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Dim&lt;/span&gt; commandRowIndex &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;As&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Integer&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; DetailsView1.Rows.&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Count&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;-&lt;/span&gt; 1&lt;br&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Dim&lt;/span&gt; commandRow &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;As&lt;/span&gt; DetailsViewRow &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; DetailsView1.Rows(commandRowIndex)&lt;br&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Dim&lt;/span&gt; cell &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;As&lt;/span&gt; DataControlFieldCell &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;CType&lt;/span&gt;(commandRow.Controls(0),
   DataControlFieldCell)&lt;br&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'
   Loop through controls to find Cancel button&lt;/span&gt;
   &lt;br&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;For&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Each&lt;/span&gt; ctl &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;As&lt;/span&gt; Control &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;In&lt;/span&gt; cell.Controls&lt;br&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&amp;nbsp;
   If&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;TypeOf&lt;/span&gt; ctl &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Is&lt;/span&gt; Button &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Then&lt;/span&gt;
   &lt;br&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&amp;nbsp;
   Dim&lt;/span&gt; btn &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;As&lt;/span&gt; Button &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;CType&lt;/span&gt;(ctl,
   Button)&lt;br&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
   If&lt;/span&gt; btn.CommandName &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Cancel"&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Then&lt;/span&gt;
   &lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; btn.ToolTip &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Click
   here to cancel"&lt;/span&gt;
   &lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; btn.CommandName &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Cancel"&lt;/span&gt;
   &lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; btn.OnClientClick &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"if(!confirm('Do
   you really want to discard the changes?')){return false;}"&lt;/span&gt;
   &lt;br&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
   End&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;If&lt;/span&gt;
   &lt;br&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&amp;nbsp;
   End&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;If&lt;/span&gt;
   &lt;br&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Next&lt;/span&gt;
   &lt;br&gt;
   &lt;/span&gt;
&lt;/p&gt;
&lt;/span&gt; 
&lt;p&gt;
   &lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"&gt;I wanted to add
   a confirmation to the Cancel the action, but you could use this example to add functionality
   to any of the command buttons. The confirmation button is created by adding a client
   side script to the OnClientClick property:&lt;o:p&gt;&lt;/o:p&gt;
   &lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;/span&gt;&gt;
&lt;p&gt;
&lt;p&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;btn.OnClientClick &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"if(!confirm('Do
   you really want to discard the changes?')){return false;}"&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;font face=Verdana color=#003300 size=2&gt;Putting
   it together:&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Protected&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Sub&lt;/span&gt; DetailsView1_ItemCreated(&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;ByVal&lt;/span&gt; sender &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;As&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Object&lt;/span&gt;, &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;ByVal&lt;/span&gt; e &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;As&lt;/span&gt; EventArgs) &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Handles&lt;/span&gt; DetailsView1.ItemCreated&lt;br&gt;
   &lt;br&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'
   Check that footerRow has been created&lt;/span&gt;
   &lt;br&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;If&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Not&lt;/span&gt; (DetailsView1.FooterRow &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Is&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Nothing&lt;/span&gt;) &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Then&lt;/span&gt;
   &lt;br&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'
   Find Command Bar&lt;/span&gt;
   &lt;br&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Dim&lt;/span&gt; commandRowIndex &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;As&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Integer&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; DetailsView1.Rows.&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Count&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;-&lt;/span&gt; 1&lt;br&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Dim&lt;/span&gt; commandRow &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;As&lt;/span&gt; DetailsViewRow &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; DetailsView1.Rows(commandRowIndex)&lt;br&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Dim&lt;/span&gt; cell &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;As&lt;/span&gt; DataControlFieldCell &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;CType&lt;/span&gt;(commandRow.Controls(0),
   DataControlFieldCell)&lt;br&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'
   Loop through controls to find Cancel button&lt;/span&gt;
   &lt;br&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;For&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Each&lt;/span&gt; ctl &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;As&lt;/span&gt; Control &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;In&lt;/span&gt; cell.Controls&lt;br&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&amp;nbsp;
   If&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;TypeOf&lt;/span&gt; ctl &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Is&lt;/span&gt; Button &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Then&lt;/span&gt;
   &lt;br&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&amp;nbsp;
   Dim&lt;/span&gt; btn &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;As&lt;/span&gt; Button &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;CType&lt;/span&gt;(ctl,
   Button)&lt;br&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
   If&lt;/span&gt; btn.CommandName &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Cancel"&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Then&lt;/span&gt;
   &lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;btn.ToolTip &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Click
   here to cancel"&lt;/span&gt;
   &lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;btn.CommandName &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Cancel"&lt;/span&gt;
   &lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; btn.OnClientClick &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"if(!confirm('Do
   you really want to discard the changes?')){return false;}"&lt;/span&gt;
   &lt;br&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
   End&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;If&lt;/span&gt;
   &lt;br&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&amp;nbsp;
   End&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;If&lt;/span&gt;
   &lt;br&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Next&lt;/span&gt;
   &lt;br&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;End&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;If&lt;/span&gt;
   &lt;br&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;End&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Sub&lt;/span&gt; &lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;font face=Verdana color=#003300 size=2&gt;&lt;strong&gt;Redirecting
   User on Command Click&lt;/strong&gt;&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;font face=Verdana color=#003300 size=2&gt;The
   next thing I wanted to do was redirect the user to a different page if they confirmed
   the cancel action. First I created a sub called "Get_Command" and then I called it
   from the OnItemCommand of the DetailsView.&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;font face=Verdana color=#003300 size=2&gt;Here's
   an example:&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt; 
&lt;p&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&amp;lt;asp:DetailsView
   ID=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"DetailsView1"&lt;/span&gt; runat=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"server"&lt;/span&gt;
   &lt;br&gt;
   AutoGenerateRows=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"False"&lt;/span&gt;
   &lt;br&gt;
   DataSourceID=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"ObjectDataSource1"&lt;/span&gt;
   &lt;br&gt;
   OnItemCommand &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Get_Command"&lt;/span&gt;&amp;gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;font face=Verdana color=#003300 size=2&gt;And
   this code goes in your Code Behind file:&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt; 
&lt;p&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Sub&lt;/span&gt; Get_Command(&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;ByVal&lt;/span&gt; Src &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;As&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Object&lt;/span&gt;, &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;ByVal&lt;/span&gt; Args &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;As&lt;/span&gt; DetailsViewCommandEventArgs)&lt;br&gt;
   &lt;br&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;If&lt;/span&gt; Args.CommandName &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Cancel"&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Then&lt;/span&gt;
   &lt;br&gt;
   &lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Response.Redirect(&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"~/yourPage.aspx:")&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;End&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;If&lt;/span&gt;
   &lt;br&gt;
   &lt;br&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;End&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;Sub&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt; 
&lt;p&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;font face=Verdana color=#003300 size=2&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;font face=Verdana color=#003300 size=2&gt;I
   hope somebody finds this post and it saves them a little time. If somebody knows a
   better way to do this - I'd love to see it.&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;img width="0" height="0" src="http://zenmonkeys.com/aggbug.ashx?id=1b77e01c-207a-4201-8626-886fbe4ef25d" /&gt;</description>
      <comments>http://zenmonkeys.com/CommentView,guid,1b77e01c-207a-4201-8626-886fbe4ef25d.aspx</comments>
      <category>ASP.NET</category>
    </item>
    <item>
      <trackback:ping>http://zenmonkeys.com/Trackback.aspx?guid=5e0b5400-088d-472a-bb62-8a15b8ade8cf</trackback:ping>
      <pingback:server>http://zenmonkeys.com/pingback.aspx</pingback:server>
      <pingback:target>http://zenmonkeys.com/PermaLink,guid,5e0b5400-088d-472a-bb62-8a15b8ade8cf.aspx</pingback:target>
      <dc:creator>bc@zenmonkeys.com (Brendon)</dc:creator>
      <wfw:comment>http://zenmonkeys.com/CommentView,guid,5e0b5400-088d-472a-bb62-8a15b8ade8cf.aspx</wfw:comment>
      <wfw:commentRss>http://zenmonkeys.com/SyndicationService.asmx/GetEntryCommentsRss?guid=5e0b5400-088d-472a-bb62-8a15b8ade8cf</wfw:commentRss>
      <title>Control display size of a multi-line textbox in ASP.NET</title>
      <guid>http://zenmonkeys.com/PermaLink,guid,5e0b5400-088d-472a-bb62-8a15b8ade8cf.aspx</guid>
      <link>http://zenmonkeys.com/PermaLink,guid,5e0b5400-088d-472a-bb62-8a15b8ade8cf.aspx</link>
      <pubDate>Fri, 07 Apr 2006 12:45:10 GMT</pubDate>
      <description>&lt;p&gt;
   &lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;It's
   really easy to set the display size of a multi-line textbox in .NET once you know
   the correct properties to set.&amp;nbsp; The multi-line textbox is equivalent to an &amp;lt;HTML&amp;gt;
   textarea.&lt;o:p&gt;&lt;/o:p&gt;
   &lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: Verdana"&gt;To control the
   number of lines that display to the user you can set the "rows" property and to control
   the display width you can set the "width" property. You can also set the CssStyle
   of the textbox to control the width.&lt;o:p&gt;&lt;/o:p&gt;
   &lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
   Here's an example:
&lt;/p&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt; 
&lt;p&gt;
   &lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&amp;lt;asp:TextBox
   ID=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"txtYourTextBox"&lt;/span&gt; runat=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"server"&lt;/span&gt; rows=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"6"&lt;/span&gt; TextMode=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"MultiLine"&lt;/span&gt; Width=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"450px"&lt;/span&gt; Text=&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"Your
   text"&lt;/span&gt;&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&lt;br&gt;
   &lt;/span&gt;
&lt;/p&gt;
&lt;/span&gt;&lt;img width="0" height="0" src="http://zenmonkeys.com/aggbug.ashx?id=5e0b5400-088d-472a-bb62-8a15b8ade8cf" /&gt;</description>
      <comments>http://zenmonkeys.com/CommentView,guid,5e0b5400-088d-472a-bb62-8a15b8ade8cf.aspx</comments>
      <category>ASP.NET</category>
    </item>
  </channel>
</rss>