<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" 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/" version="2.0">
  <channel>
    <title>Chris May</title>
    <link>http://chrismay.org/</link>
    <description>{Consulting; .Net Development; IT Services}</description>
    <language>en-us</language>
    <copyright>Christopher May, Inc</copyright>
    <lastBuildDate>Thu, 11 Mar 2010 21:08:27 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.3.9074.18820</generator>
    <managingEditor>chris@christophermayinc.com</managingEditor>
    <webMaster>chris@christophermayinc.com</webMaster>
    <item>
      <trackback:ping>http://chrismay.org/Trackback.aspx?guid=f5a5390d-e313-4242-aecd-48c9ea455410</trackback:ping>
      <pingback:server>http://chrismay.org/pingback.aspx</pingback:server>
      <pingback:target>http://chrismay.org/PermaLink,guid,f5a5390d-e313-4242-aecd-48c9ea455410.aspx</pingback:target>
      <dc:creator>Chris May</dc:creator>
      <wfw:comment>http://chrismay.org/CommentView,guid,f5a5390d-e313-4242-aecd-48c9ea455410.aspx</wfw:comment>
      <wfw:commentRss>http://chrismay.org/SyndicationService.asmx/GetEntryCommentsRss?guid=f5a5390d-e313-4242-aecd-48c9ea455410</wfw:commentRss>
      <title>Customizing Style of RadGrid Edit Items</title>
      <guid isPermaLink="false">http://chrismay.org/PermaLink,guid,f5a5390d-e313-4242-aecd-48c9ea455410.aspx</guid>
      <link>http://chrismay.org/2010/03/11/Customizing+Style+Of+RadGrid+Edit+Items.aspx</link>
      <pubDate>Thu, 11 Mar 2010 21:08:27 GMT</pubDate>
      <description>&lt;div&gt;&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;FONT size=3&gt;&lt;FONT color=#000000&gt;&lt;FONT face=Calibri&gt;A developer&amp;nbsp;wanted to customize his “edit” form with a telerik rad grid, and we found it less than simple to change the textboxes and other edit controls to make them more narrow, and/or other customizations.&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;FONT size=3&gt;&lt;FONT color=#000000&gt;&lt;FONT face=Calibri&gt;I did some research and came across a few different technique for doing this that I am going to share with everyone.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 14pt"&gt;&lt;FONT color=#000000&gt;&lt;FONT face=Calibri&gt;Template Columns&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;FONT size=3&gt;&lt;FONT color=#000000&gt;&lt;FONT face=Calibri&gt;The first option, which is the one he used because it is the easiest, is to convert your columns to “template columns.” &lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;Converting columns changes:&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #a31515; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;telerik&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;:&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #a31515; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;GridBoundColumn&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: red"&gt;DataField&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="EmployeeEmail"&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: red"&gt;DataType&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="System.Int32"&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: red"&gt;HeaderText&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="EmployeeEmail"&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;SPAN style="COLOR: blue"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: red; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;SortExpression&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;="EmployeeEmail"&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: red"&gt;UniqueName&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="EmployeeEmail" /&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;FONT size=3&gt;&lt;FONT color=#000000&gt;&lt;FONT face=Calibri&gt;To this:&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #a31515; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;telerik&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;:&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #a31515; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;GridTemplateColumn&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: red"&gt;DataField&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="EmployeeEmail"&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;HeaderText&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="EmployeeEmail"&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: red"&gt;SortExpression&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="EmployeeEmail"&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;UniqueName&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="EmployeeEmail"&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;EditItemTemplate&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;asp&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;:&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;TextBox&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: red"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="EmployeeEmailTextBox"&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: red"&gt;runat&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="server"&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;Text&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;='&lt;/SPAN&gt;&lt;FONT color=#000000&gt;&lt;SPAN style="BACKGROUND: yellow; mso-highlight: yellow"&gt;&amp;lt;%&lt;/SPAN&gt;# Bind("EmployeeEmail") &lt;SPAN style="BACKGROUND: yellow; mso-highlight: yellow"&gt;%&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;'&amp;gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;asp&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;:&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;TextBox&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;EditItemTemplate&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;ItemTemplate&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;asp&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;:&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;Label&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: red"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="EmployeeEmailLabel"&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: red"&gt;runat&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="server"&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;Text&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;='&lt;/SPAN&gt;&lt;FONT color=#000000&gt;&lt;SPAN style="BACKGROUND: yellow; mso-highlight: yellow"&gt;&amp;lt;%&lt;/SPAN&gt;# Eval("EmployeeEmail") &lt;SPAN style="BACKGROUND: yellow; mso-highlight: yellow"&gt;%&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;'&amp;gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;asp&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;:&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;Label&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;ItemTemplate&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #a31515; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;telerik&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;:&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #a31515; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;GridTemplateColumn&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&amp;gt;&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&lt;FONT color=#000000&gt;As you can see, this gives you control over the actual textbox item that will be displayed when you are in edit mode.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&lt;FONT color=#000000&gt;But using template columns can also be a bit of a pain, because you losing some of the simplicity that you had before when you simply allowed the rad grid to deal with the details of the display/edit cell items.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;This also complicates things when you try to do anything in the ItemDataBound or ItemCreated events on the rad grid.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;You can’t just grab the column, you have to dig deeper, looking for the contained child controls to find your actual edit control.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 14pt"&gt;&lt;FONT face=Calibri&gt;&lt;FONT color=#000000&gt;ItemDataBound&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;Protected&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;Sub&lt;/SPAN&gt;&lt;FONT color=#000000&gt; RadGrid1_ItemDataBound(&lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;ByVal&lt;/SPAN&gt;&lt;FONT color=#000000&gt; sender &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;As&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;Object&lt;/SPAN&gt;&lt;FONT color=#000000&gt;, &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;ByVal&lt;/SPAN&gt;&lt;FONT color=#000000&gt; e &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;As&lt;/SPAN&gt;&lt;FONT color=#000000&gt; Telerik.Web.UI.GridItemEventArgs) &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;Handles&lt;/SPAN&gt;&lt;FONT color=#000000&gt; RadGrid1.ItemDataBound&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;If&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;TypeOf&lt;/SPAN&gt;&lt;FONT color=#000000&gt; e.Item &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;Is&lt;/SPAN&gt;&lt;FONT color=#000000&gt; GridEditableItem &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;And&lt;/SPAN&gt;&lt;FONT color=#000000&gt; e.Item.IsInEditMode &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;Then&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;Dim&lt;/SPAN&gt;&lt;FONT color=#000000&gt; editItem &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;As&lt;/SPAN&gt;&lt;FONT color=#000000&gt; GridEditableItem = e.Item&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;If&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;TypeOf&lt;/SPAN&gt;&lt;FONT color=#000000&gt; editItem.Item(&lt;/FONT&gt;&lt;SPAN style="COLOR: #a31515"&gt;"EmployeeId"&lt;/SPAN&gt;&lt;FONT color=#000000&gt;).Controls(0) &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;Is&lt;/SPAN&gt;&lt;FONT color=#000000&gt; TextBox &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;Then&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;CType&lt;/SPAN&gt;&lt;FONT color=#000000&gt;(editItem.Item(&lt;/FONT&gt;&lt;SPAN style="COLOR: #a31515"&gt;"EmployeeId"&lt;/SPAN&gt;&lt;FONT color=#000000&gt;).Controls(0), TextBox).Width = 30&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;End&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;If&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;End&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;If&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;End&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;Sub&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&lt;FONT color=#000000&gt;In this example, I am setting the width of the EmployeeId textbox to only 30px.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 14pt"&gt;&lt;FONT face=Calibri&gt;&lt;FONT color=#000000&gt;CreateColumnEditor&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;Protected&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;Sub&lt;/SPAN&gt;&lt;FONT color=#000000&gt; RadGrid1_CreateColumnEditor(&lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;ByVal&lt;/SPAN&gt;&lt;FONT color=#000000&gt; sender &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;As&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;Object&lt;/SPAN&gt;&lt;FONT color=#000000&gt;, &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;ByVal&lt;/SPAN&gt;&lt;FONT color=#000000&gt; e &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;As&lt;/SPAN&gt;&lt;FONT color=#000000&gt; Telerik.Web.UI.GridCreateColumnEditorEventArgs) &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;Handles&lt;/SPAN&gt;&lt;FONT color=#000000&gt; RadGrid1.CreateColumnEditor&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;If&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;TypeOf&lt;/SPAN&gt;&lt;FONT color=#000000&gt; e.ColumnEditor &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;Is&lt;/SPAN&gt;&lt;FONT color=#000000&gt; GridTextBoxColumnEditor &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;Then&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;If&lt;/SPAN&gt;&lt;FONT color=#000000&gt; e.Column.UniqueName = &lt;/FONT&gt;&lt;SPAN style="COLOR: #a31515"&gt;"FirstName"&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;Then&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;CType&lt;/SPAN&gt;&lt;FONT color=#000000&gt;(e.ColumnEditor, GridTextBoxColumnEditor).TextBoxStyle.Width = 30&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;CType&lt;/SPAN&gt;&lt;FONT color=#000000&gt;(e.ColumnEditor, GridTextBoxColumnEditor).TextBoxControl.Style.Add(&lt;/FONT&gt;&lt;SPAN style="COLOR: #a31515"&gt;"text-align"&lt;/SPAN&gt;&lt;FONT color=#000000&gt;, &lt;/FONT&gt;&lt;SPAN style="COLOR: #a31515"&gt;"right"&lt;/SPAN&gt;&lt;FONT color=#000000&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;End&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;If&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;End&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;If&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;End&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;Sub&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;FONT size=3&gt;&lt;FONT color=#000000&gt;&lt;FONT face=Calibri&gt;I believe this event is fired when the grid is creating the edit columns.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;You hook into this event, and then modify the textboxstyle in order to change the look of the edit control.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-SIZE: 14pt"&gt;&lt;FONT color=#000000&gt;&lt;FONT face=Calibri&gt;Defined Column Editor&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;FONT size=3&gt;&lt;FONT color=#000000&gt;&lt;FONT face=Calibri&gt;You can achieve the same results as in CreateColumnEditor without writing any code if you drop a GridTextBoxColumnEditor on your page (outside of the RadGrid) like so:&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #a31515; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;telerik&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;:&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #a31515; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;GridTextBoxColumnEditor&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: red"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="GridTextBoxColumnEditor1"&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: red"&gt;runat&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="server"&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: #a31515"&gt;TextBoxStyle&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: red"&gt;Width&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="50px"&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: blue"&gt;/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #a31515; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;telerik&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;:&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #a31515; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;GridTextBoxColumnEditor&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&amp;gt;&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;FONT size=3&gt;&lt;FONT color=#000000&gt;&lt;FONT face=Calibri&gt;And then in your column you specify the ID of the editor you want to use, like this:&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #a31515; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;telerik&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;:&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #a31515; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;GridBoundColumn&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: red"&gt;DataField&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="UserId"&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: red"&gt;DataType&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="System.Int32"&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: red"&gt;HeaderText&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="UserId"&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: red"&gt;ColumnEditorID&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 12pt; mso-no-proof: yes"&gt;GridTextBoxColumnEditor1&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;"&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT color=#000000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;SortExpression&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="UserId"&lt;/SPAN&gt;&lt;FONT color=#000000&gt; &lt;/FONT&gt;&lt;SPAN style="COLOR: red"&gt;UniqueName&lt;/SPAN&gt;&lt;SPAN style="COLOR: blue"&gt;="UserId"&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #a31515; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;telerik&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;:&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #a31515; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;GridBoundColumn&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-no-proof: yes"&gt;&amp;gt;&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN style="mso-bookmark: _MailAutoSig"&gt;&lt;/SPAN&gt;
&lt;P style="MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;&lt;img width="0" height="0" src="http://chrismay.org/aggbug.ashx?id=f5a5390d-e313-4242-aecd-48c9ea455410"/&gt;&lt;/div&gt;</description>
      <comments>http://chrismay.org/CommentView,guid,f5a5390d-e313-4242-aecd-48c9ea455410.aspx</comments>
      <category>Programming</category>
      <category>Programming/.Net</category>
      <category>Programming/.Net/ASP.Net</category>
    </item>
    <item>
      <trackback:ping>http://chrismay.org/Trackback.aspx?guid=60506003-b8ca-4a45-bb40-5dac9fb444cf</trackback:ping>
      <pingback:server>http://chrismay.org/pingback.aspx</pingback:server>
      <pingback:target>http://chrismay.org/PermaLink,guid,60506003-b8ca-4a45-bb40-5dac9fb444cf.aspx</pingback:target>
      <dc:creator>Chris May</dc:creator>
      <wfw:comment>http://chrismay.org/CommentView,guid,60506003-b8ca-4a45-bb40-5dac9fb444cf.aspx</wfw:comment>
      <wfw:commentRss>http://chrismay.org/SyndicationService.asmx/GetEntryCommentsRss?guid=60506003-b8ca-4a45-bb40-5dac9fb444cf</wfw:commentRss>
      <title>CSLA and the watch window</title>
      <guid isPermaLink="false">http://chrismay.org/PermaLink,guid,60506003-b8ca-4a45-bb40-5dac9fb444cf.aspx</guid>
      <link>http://chrismay.org/2010/03/01/CSLA+And+The+Watch+Window.aspx</link>
      <pubDate>Mon, 01 Mar 2010 22:36:14 GMT</pubDate>
      <description>&lt;div&gt;&lt;P&gt;One of my biggest complaints about using CSLA has been the issue of Visual Studio's failure to work correctly in the watch window with CSLA objects.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;I wrote a post a while back about my issues:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;So for example I have a simple list called "projects" which is of type ProjectList containing ProjectListItems.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;If I put "projects" in the watch window, for Value I get:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ff0000&gt;&lt;EM&gt;"Count = {System.TypeLoadException}"&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;If I put "projects(0)" in the watch window, I get:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#ff0000&gt;&lt;EM&gt;{"The generic type 'System.Collections.ObjectModel.Collection`1' was used with the wrong number of generic arguments in assembly 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'." : "System.Collections.ObjectModel.Collection`1"}&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Rocky's response was:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;This is a known issue. I've actually talked to the VS debugger team about this, and they didn't have a satisfactory answer - and certainly not a solution. This issue has existed since 2005 when generics were introduced into .NET.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Well, after doing some digging I think I have come across a few work arounds.&lt;/P&gt;
&lt;P&gt;If I were to use the Watch Window and put:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;projects.Count&lt;/STRONG&gt; &lt;/P&gt;
&lt;P&gt;it would throw an error.&amp;nbsp; But if I put:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;projects.Count.ToString&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;then I get the correct result.&lt;/P&gt;
&lt;P&gt;Also when picking a specific item:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;projects.Item(2)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I get the same exception.&amp;nbsp; However, if I use:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;CType(projects.Item(2),Object)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I get the object as expected!&lt;/P&gt;
&lt;P&gt;I hope this helps out others as this is really important when debugging an application.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img width="0" height="0" src="http://chrismay.org/aggbug.ashx?id=60506003-b8ca-4a45-bb40-5dac9fb444cf"/&gt;&lt;/div&gt;</description>
      <comments>http://chrismay.org/CommentView,guid,60506003-b8ca-4a45-bb40-5dac9fb444cf.aspx</comments>
    </item>
    <item>
      <trackback:ping>http://chrismay.org/Trackback.aspx?guid=6886d95d-34d9-4127-826a-63e245c7a3dd</trackback:ping>
      <pingback:server>http://chrismay.org/pingback.aspx</pingback:server>
      <pingback:target>http://chrismay.org/PermaLink,guid,6886d95d-34d9-4127-826a-63e245c7a3dd.aspx</pingback:target>
      <dc:creator>Chris May</dc:creator>
      <wfw:comment>http://chrismay.org/CommentView,guid,6886d95d-34d9-4127-826a-63e245c7a3dd.aspx</wfw:comment>
      <wfw:commentRss>http://chrismay.org/SyndicationService.asmx/GetEntryCommentsRss?guid=6886d95d-34d9-4127-826a-63e245c7a3dd</wfw:commentRss>
      <title>CSLA Validation AmbiguousMatchException</title>
      <guid isPermaLink="false">http://chrismay.org/PermaLink,guid,6886d95d-34d9-4127-826a-63e245c7a3dd.aspx</guid>
      <link>http://chrismay.org/2010/03/01/CSLA+Validation+AmbiguousMatchException.aspx</link>
      <pubDate>Mon, 01 Mar 2010 22:02:49 GMT</pubDate>
      <description>&lt;div&gt;&lt;P&gt;Ran into this error today:&lt;/P&gt;
&lt;P&gt;failed in property IsDeleted ---&amp;gt; System.Reflection.AmbiguousMatchException: Ambiguous match found. at System.RuntimeType.GetPropertyImpl&lt;/P&gt;
&lt;P&gt;I knew that we happened to have a property on our class called IsDeleted that shadowed a property in the CSLA base class, but I didn't think it should be running into this problem.&lt;/P&gt;
&lt;P&gt;After tracking down some reference info here &lt;A href="http://msdn.microsoft.com/en-us/library/zy0d4103.aspx"&gt;http://msdn.microsoft.com/en-us/library/zy0d4103.aspx&lt;/A&gt;&amp;nbsp;I found otu that the issue isn't that we are shadowing, it's that we are shadowing while at the same time changing the type.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;The documentation seems to indicate that both situations should fail, but in my tests, the only time I got the exception was when my shadowing property had a different type.&amp;nbsp; In this case, we were using a Nullable(of boolean) while the CSLA element was just a plain old Boolean.&lt;/P&gt;
&lt;P&gt;I guess we are going to rename our property to make things easy on ourselves, but seeing as how this is codegenerated, it's a little more of a pain than you might think.&amp;nbsp; But, oh well.&lt;/P&gt;
&lt;P&gt;Here is some code that produces the error.&amp;nbsp; If you change the 2nd property type to a string it works ok.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: black; FONT-SIZE: 11px"&gt;&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;imports&lt;/SPAN&gt; Microsoft.VisualBasic
&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;imports&lt;/SPAN&gt; System
&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;Imports&lt;/SPAN&gt; System.Collections.Generic

&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;public&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;module&lt;/SPAN&gt; MyModule
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;sub&lt;/SPAN&gt; Main
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;dim&lt;/SPAN&gt; target &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;as&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;new&lt;/SPAN&gt; baseclass
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;dim&lt;/SPAN&gt; p &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;as&lt;/SPAN&gt; system.Reflection.PropertyInfo  &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: red; FONT-SIZE: 11px"&gt;=&lt;/SPAN&gt; target.GetType().GetProperty(&lt;SPAN style="BACKGROUND-COLOR: #e4e4e4; FONT-FAMILY: Courier New; COLOR: #666666; FONT-SIZE: 11px"&gt;"Prop"&lt;/SPAN&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;wl( p.GetValue(target, &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;nothing&lt;/SPAN&gt;))

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
        RL()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;end&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;sub&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#region &lt;SPAN style="BACKGROUND-COLOR: #e4e4e4; FONT-FAMILY: Courier New; COLOR: #666666; FONT-SIZE: 11px"&gt;"Helper methods"&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;sub&lt;/SPAN&gt; WL(text &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;as&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;object&lt;/SPAN&gt;)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(text)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;end&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;sub&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;sub&lt;/SPAN&gt; WL(text &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;as&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;object&lt;/SPAN&gt;, &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;paramarray&lt;/SPAN&gt; args &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;as&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;object&lt;/SPAN&gt;())
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.WriteLine(text.ToString(), args)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;end&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;sub&lt;/SPAN&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;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;sub&lt;/SPAN&gt; RL()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Console.ReadLine()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;end&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;sub&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;sub&lt;/SPAN&gt; Break() 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.Diagnostics.Debugger.Break()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;end&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;sub&lt;/SPAN&gt;

    #&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;end&lt;/SPAN&gt; region

&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;end&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;module&lt;/SPAN&gt;

&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;public&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;class&lt;/SPAN&gt; BaseBaseClass
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;public&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;readonly&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;property&lt;/SPAN&gt; Prop &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;as&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;string&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;get&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;return&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: #e4e4e4; FONT-FAMILY: Courier New; COLOR: #666666; FONT-SIZE: 11px"&gt;"BaseBaseClass"&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;end&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;get&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;end&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;property&lt;/SPAN&gt;
&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;end&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;class&lt;/SPAN&gt;

&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;public&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;class&lt;/SPAN&gt; BaseClass 
&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;inherits&lt;/SPAN&gt; BaseBaseClass

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;public&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;readonly&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;property&lt;/SPAN&gt; Prop &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;as&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;integer&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;get&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;return&lt;/SPAN&gt; 123
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;end&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;get&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;end&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;property&lt;/SPAN&gt;

&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;end&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;class&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;img width="0" height="0" src="http://chrismay.org/aggbug.ashx?id=6886d95d-34d9-4127-826a-63e245c7a3dd"/&gt;&lt;/div&gt;</description>
      <comments>http://chrismay.org/CommentView,guid,6886d95d-34d9-4127-826a-63e245c7a3dd.aspx</comments>
      <category>Programming</category>
      <category>Programming/.Net</category>
      <category>Programming/.Net/.Net Framework</category>
    </item>
    <item>
      <trackback:ping>http://chrismay.org/Trackback.aspx?guid=b358894a-36aa-4a84-95f9-4f21ad6cef63</trackback:ping>
      <pingback:server>http://chrismay.org/pingback.aspx</pingback:server>
      <pingback:target>http://chrismay.org/PermaLink,guid,b358894a-36aa-4a84-95f9-4f21ad6cef63.aspx</pingback:target>
      <dc:creator>Chris May</dc:creator>
      <wfw:comment>http://chrismay.org/CommentView,guid,b358894a-36aa-4a84-95f9-4f21ad6cef63.aspx</wfw:comment>
      <wfw:commentRss>http://chrismay.org/SyndicationService.asmx/GetEntryCommentsRss?guid=b358894a-36aa-4a84-95f9-4f21ad6cef63</wfw:commentRss>
      <title>Javascript scope in for loops</title>
      <guid isPermaLink="false">http://chrismay.org/PermaLink,guid,b358894a-36aa-4a84-95f9-4f21ad6cef63.aspx</guid>
      <link>http://chrismay.org/2010/02/18/Javascript+Scope+In+For+Loops.aspx</link>
      <pubDate>Thu, 18 Feb 2010 15:44:03 GMT</pubDate>
      <description>&lt;div&gt;&lt;P&gt;In JavaScript, you don't need to define your variables.&amp;nbsp; You can just up and use any variable as you see fit, like this:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: black; FONT-SIZE: 11px"&gt;asdfasdf &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: red; FONT-SIZE: 11px"&gt;=&lt;/SPAN&gt; 'asdfasdf';&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;However, these variables will then be created in a global scope, which is bad.&lt;/P&gt;
&lt;P&gt;I came across a bug today that involved for loops and globally undefined variables.&amp;nbsp; It's not as clear what is happening when the counter variable is first used inside the for declaration, but the result is the same: a global variable:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: black; FONT-SIZE: 11px"&gt;&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;function&lt;/SPAN&gt; test2() {
     &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;for&lt;/SPAN&gt; (i &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: red; FONT-SIZE: 11px"&gt;=&lt;/SPAN&gt; 0; i &amp;lt; 10; i++) {
         alert(i);
         test3();
         alert('now i is ' &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: red; FONT-SIZE: 11px"&gt;+&lt;/SPAN&gt; i);
     }
     alert('done');
 }

 &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;function&lt;/SPAN&gt; test3() {
     &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;for&lt;/SPAN&gt; (i &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: red; FONT-SIZE: 11px"&gt;=&lt;/SPAN&gt; 0; i &amp;lt; 10; i++) {
         &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: green; FONT-SIZE: 11px"&gt;// do whatever here&lt;/SPAN&gt;
     }
 }&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;In this example, test2()'s for loop will only run 1 time, because test3's loop ends up using the same variable.&lt;/P&gt;
&lt;P&gt;To fix this problem you need to define your looping variables:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: black; FONT-SIZE: 11px"&gt;&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;for&lt;/SPAN&gt; (&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px"&gt;&lt;STRONG&gt;&lt;FONT size=4&gt;var&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; i=0; i &amp;lt; 10; i++)&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;This is a best practice that you should remember to do.&lt;/P&gt;&lt;img width="0" height="0" src="http://chrismay.org/aggbug.ashx?id=b358894a-36aa-4a84-95f9-4f21ad6cef63"/&gt;&lt;/div&gt;</description>
      <comments>http://chrismay.org/CommentView,guid,b358894a-36aa-4a84-95f9-4f21ad6cef63.aspx</comments>
    </item>
    <item>
      <trackback:ping>http://chrismay.org/Trackback.aspx?guid=c4decfe9-7ec3-402e-8466-853c76265376</trackback:ping>
      <pingback:server>http://chrismay.org/pingback.aspx</pingback:server>
      <pingback:target>http://chrismay.org/PermaLink,guid,c4decfe9-7ec3-402e-8466-853c76265376.aspx</pingback:target>
      <dc:creator>Chris May</dc:creator>
      <wfw:comment>http://chrismay.org/CommentView,guid,c4decfe9-7ec3-402e-8466-853c76265376.aspx</wfw:comment>
      <wfw:commentRss>http://chrismay.org/SyndicationService.asmx/GetEntryCommentsRss?guid=c4decfe9-7ec3-402e-8466-853c76265376</wfw:commentRss>
      <slash:comments>2</slash:comments>
      <title>Comcast turns off your internet</title>
      <guid isPermaLink="false">http://chrismay.org/PermaLink,guid,c4decfe9-7ec3-402e-8466-853c76265376.aspx</guid>
      <link>http://chrismay.org/2010/02/14/Comcast+Turns+Off+Your+Internet.aspx</link>
      <pubDate>Sun, 14 Feb 2010 03:11:10 GMT</pubDate>
      <description>&lt;div&gt;&lt;P&gt;Last night, all of a sudden, my internet connection went down.&lt;/P&gt;
&lt;P&gt;After a while, all my web requests started getting directed to a comcast page that said:&lt;/P&gt;
&lt;P&gt;"You will need to activate your account"&lt;/P&gt;
&lt;P&gt;telling me that I needed to download some software.&amp;nbsp; Total BS.&lt;/P&gt;
&lt;P&gt;The link for the software didn't even work.&amp;nbsp; I tried rebooting the modem, the router, nothing worked.&lt;/P&gt;
&lt;P&gt;So after an hour in a comcast support chat (using my EVDO card for internet) they finally added my modem back to their system (or whatever).&lt;/P&gt;
&lt;P&gt;If you get this message, and you are not a new customer, either comcast f'ed up (which is likely because they are possibly the worst company on earth) or you didn't pay your bill.&lt;/P&gt;&lt;img width="0" height="0" src="http://chrismay.org/aggbug.ashx?id=c4decfe9-7ec3-402e-8466-853c76265376"/&gt;&lt;/div&gt;</description>
      <comments>http://chrismay.org/CommentView,guid,c4decfe9-7ec3-402e-8466-853c76265376.aspx</comments>
      <category>Misc</category>
    </item>
    <item>
      <trackback:ping>http://chrismay.org/Trackback.aspx?guid=3d695ff6-2180-45a8-9056-f8483bb3c810</trackback:ping>
      <pingback:server>http://chrismay.org/pingback.aspx</pingback:server>
      <pingback:target>http://chrismay.org/PermaLink,guid,3d695ff6-2180-45a8-9056-f8483bb3c810.aspx</pingback:target>
      <dc:creator>Chris May</dc:creator>
      <wfw:comment>http://chrismay.org/CommentView,guid,3d695ff6-2180-45a8-9056-f8483bb3c810.aspx</wfw:comment>
      <wfw:commentRss>http://chrismay.org/SyndicationService.asmx/GetEntryCommentsRss?guid=3d695ff6-2180-45a8-9056-f8483bb3c810</wfw:commentRss>
      <title>Skype on Mac OSX</title>
      <guid isPermaLink="false">http://chrismay.org/PermaLink,guid,3d695ff6-2180-45a8-9056-f8483bb3c810.aspx</guid>
      <link>http://chrismay.org/2010/02/09/Skype+On+Mac+OSX.aspx</link>
      <pubDate>Tue, 09 Feb 2010 20:31:38 GMT</pubDate>
      <description>&lt;div&gt;&lt;P&gt;My wife just tried to install Skype on her Mac OSX computer.&amp;nbsp; Of course it didn't work.&amp;nbsp; Nothing ever works on Macs it seems.&lt;/P&gt;
&lt;P&gt;After lots of messing around I found some random suggestion on some forum to try this:&lt;/P&gt;
&lt;P&gt;1. Quit Skype&lt;BR&gt;2. Go to the folder “ ~/Library/Application Support/Skype/ “&lt;BR&gt;3. Delete the file "shared.xml"&lt;BR&gt;4. Start Skype &lt;BR&gt;&lt;/P&gt;
&lt;P&gt;Amazingly, this worked.&lt;/P&gt;&lt;img width="0" height="0" src="http://chrismay.org/aggbug.ashx?id=3d695ff6-2180-45a8-9056-f8483bb3c810"/&gt;&lt;/div&gt;</description>
      <comments>http://chrismay.org/CommentView,guid,3d695ff6-2180-45a8-9056-f8483bb3c810.aspx</comments>
      <category>Misc</category>
    </item>
    <item>
      <trackback:ping>http://chrismay.org/Trackback.aspx?guid=6f8961fd-d014-4f22-9301-51b0d5148e20</trackback:ping>
      <pingback:server>http://chrismay.org/pingback.aspx</pingback:server>
      <pingback:target>http://chrismay.org/PermaLink,guid,6f8961fd-d014-4f22-9301-51b0d5148e20.aspx</pingback:target>
      <dc:creator>Chris May</dc:creator>
      <wfw:comment>http://chrismay.org/CommentView,guid,6f8961fd-d014-4f22-9301-51b0d5148e20.aspx</wfw:comment>
      <wfw:commentRss>http://chrismay.org/SyndicationService.asmx/GetEntryCommentsRss?guid=6f8961fd-d014-4f22-9301-51b0d5148e20</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <title>Doing P2V with HyperV</title>
      <guid isPermaLink="false">http://chrismay.org/PermaLink,guid,6f8961fd-d014-4f22-9301-51b0d5148e20.aspx</guid>
      <link>http://chrismay.org/2010/01/28/Doing+P2V+With+HyperV.aspx</link>
      <pubDate>Thu, 28 Jan 2010 20:28:53 GMT</pubDate>
      <description>&lt;div&gt;&lt;P&gt;I had recently tried to use my Windows Home Server to restore a laptop image to a VM running inside HyperV.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;In the event that my machine totally died (not just a hard drive issue) I could restore the image to a VM and work from there while I got back on my feet with a new laptop.&lt;/P&gt;
&lt;P&gt;Unfortunately I didn't find any way to make this work.&amp;nbsp; I ended up doing all this work and in the end, I couldn't boot.&lt;/P&gt;
&lt;P&gt;A disk read error occurred&lt;BR&gt;Press ctrl+alt+delete to restart.&lt;/P&gt;
&lt;P&gt;I tried everything I could think of, repairing the MBR, running fixboot, doing a windows repair, restoring the hal dll from i386&amp;nbsp;etc.&amp;nbsp; Nothing worked.&lt;/P&gt;
&lt;P&gt;So I gave up on using WHS to create an instance of my dev machine, and fell back on just trying to do a P2V of any type.&lt;/P&gt;
&lt;P&gt;I came across &lt;A href="http://"&gt;Disk2VHD&lt;/A&gt;, a free Systernals tool.&amp;nbsp; This tool includes the options to run on the source machine while online, and also provides an option to "Fix" the HAL (hardware abstraction layer).&amp;nbsp; I think this was part of my original problem (the HAL issue).&amp;nbsp; My computer was setup to use SATA drivers, and HyperV only supports virtual IDE drivers.&amp;nbsp; I think (but am not sure) that this is what was causing my problem w/ using the WHS restore.&lt;/P&gt;
&lt;P&gt;So anyway, Disk2VHD runs super fast, and pretty soon I had a VHD to try out.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Now, this VHD didn't work either, but it would get me further along.&amp;nbsp; I would see the windows splash screen before the black screen of death.&lt;/P&gt;
&lt;P&gt;What followed was a weird set of steps trying to figure out why things wouldn't work, but in the end, I never ended up needing to disable anything.... so I'm just going to try to write down the steps I took as best I can.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;After the first BSOD I booted to safe mode (using F8).&lt;/LI&gt;
&lt;LI&gt;Safe mode worked, and it seemed to find some new hardware, as I would have expected, but I don't think it found any of the drivers it needed (so maybe I had ejected the virtual windows CD or something).&lt;/LI&gt;
&lt;LI&gt;Booting normally gave the black screen of death again.&lt;/LI&gt;
&lt;LI&gt;I then found this page with instructions on how to &lt;A href="http://www.petri.co.il/forums/showthread.php?t=41390"&gt;replace the HAL&lt;/A&gt;.&amp;nbsp; Really these instructions were how to do Disk2VHD to a working VM, but I had already done most of the steps except the hal replacement.&amp;nbsp; I'm going to replace those instructions below:&lt;/LI&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;FONT face=Calibri&gt;1)&lt;/FONT&gt;Downloaded Disk2VHD (v 1.3) from sysinternals (free) and unzipped on the laptop&lt;BR&gt;&lt;FONT color=#000000&gt;&lt;FONT size=2&gt;&lt;FONT face=Calibri&gt;2)&lt;/FONT&gt;Find a place to store the new vhd - I used a 320GB external USB, but any storage device that pc can see and is big enough to hold your hard disk should work&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#000000&gt;&lt;FONT size=2&gt;&lt;FONT face=Calibri&gt;3)&lt;/FONT&gt;Run Disk2VHD and input the name and location for the new file&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#000000&gt;&lt;FONT size=2&gt;&lt;FONT face=Calibri&gt;4)&lt;/FONT&gt;On your virtual host create a new VPC (I use Virtual PC 2007) and add that new vhd you just created as the primary hard disk.&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#000000&gt;&lt;FONT size=2&gt;&lt;FONT face=Calibri&gt;5)&lt;/FONT&gt;Make sure you have an ISO of WinXP or an actual disk. If using an iso you'll need to mount it so it can be booted from.&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#000000&gt;&lt;FONT size=2&gt;&lt;FONT face=Calibri&gt;6)&lt;/FONT&gt;Fire up the new vpc and have it boot from that XP disc.&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#000000&gt;&lt;FONT size=2&gt;&lt;FONT face=Calibri&gt;7)&lt;/FONT&gt;Let it run setup and then select option 2 (R) to get repair console&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#000000&gt;&lt;FONT size=2&gt;&lt;FONT face=Calibri&gt;&lt;IMG class=inlineimg title=Cool border=0 alt="" src="http://www.petri.co.il/forums/images/smilies/icon_cool.gif"&gt;&lt;/FONT&gt;Login in to windows (need admin pw)&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#000000&gt;&lt;FONT size=2&gt;&lt;FONT face=Calibri&gt;9)&lt;/FONT&gt;Type “cd system32” press enter&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#000000&gt;&lt;FONT size=2&gt;&lt;FONT face=Calibri&gt;10)&lt;/FONT&gt;Assuming your CD (or mounted iso) is drive D - Type “expand d:\i386\halacpi.dl_” press enter&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#000000&gt;&lt;FONT size=2&gt;&lt;FONT face=Calibri&gt;11)&lt;/FONT&gt;Type “copy halacpi.dll hal.dll” press enter and then press y&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#000000&gt;&lt;FONT size=2&gt;&lt;FONT face=Calibri&gt;12)&lt;/FONT&gt;Reboot&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#000000&gt;&lt;FONT size=2&gt;&lt;FONT face=Calibri&gt;13)&lt;/FONT&gt;Press F8 to get to safe mode&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#000000&gt;&lt;FONT size=2&gt;&lt;FONT face=Calibri&gt;14)&lt;/FONT&gt;After the message that new stuff was installed, click OK for reboot&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#000000&gt;&lt;FONT size=2&gt;&lt;FONT face=Calibri&gt;15)&lt;/FONT&gt;After system boots back up, log in and install VM Additions&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;LI&gt;&lt;FONT color=#000000&gt;IIRC I still got the black screen of death.&amp;nbsp; It's possible that at this point behind the scenes it was doing a check of my disck or something, but I can't tell in the VM if the HDD is going or not so I just assumed it was locked.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color=#000000&gt;I booted to safe mode and used MSconfig to disable everything, and also used /SOS, and some other options.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color=#000000&gt;What followed was just a series of successful boots with me enabling more and more until I had everything enabled and it all still worked, so I'm not sure why I was getting the BlackSOD before I started this set of SafeMode boots.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT color=#000000&gt;Another thing I did at some point (maybe more than once) was try to install the VM Integration Services, which says that it's updating the HAL, so maybe that had something to do with it too.&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;FONT color=#000000&gt;The next 2 things that I'm going to try are, running a WHS restore to a VM that is already working (I don't think this will matter, but we'll see), and 2 trying to use the Disk2VHD on a machine that has a VHD mounted as a secondary drive.&amp;nbsp; I don't konw if this is even possible, but I was thinking that I could use WHS to create the VHD, mount the VHD as X: on some machine, and then tell Disk2VHD to create a VHD from X: and instruct it to to the "Fix HAL" thing.&amp;nbsp; I'm guessing that will not work as well, but we'll see.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img width="0" height="0" src="http://chrismay.org/aggbug.ashx?id=6f8961fd-d014-4f22-9301-51b0d5148e20"/&gt;&lt;/div&gt;</description>
      <comments>http://chrismay.org/CommentView,guid,6f8961fd-d014-4f22-9301-51b0d5148e20.aspx</comments>
      <category>Hardware</category>
      <category>Misc</category>
    </item>
    <item>
      <trackback:ping>http://chrismay.org/Trackback.aspx?guid=d2c7c4a3-54d7-4931-803e-b22d09a2484c</trackback:ping>
      <pingback:server>http://chrismay.org/pingback.aspx</pingback:server>
      <pingback:target>http://chrismay.org/PermaLink,guid,d2c7c4a3-54d7-4931-803e-b22d09a2484c.aspx</pingback:target>
      <dc:creator>Chris May</dc:creator>
      <wfw:comment>http://chrismay.org/CommentView,guid,d2c7c4a3-54d7-4931-803e-b22d09a2484c.aspx</wfw:comment>
      <wfw:commentRss>http://chrismay.org/SyndicationService.asmx/GetEntryCommentsRss?guid=d2c7c4a3-54d7-4931-803e-b22d09a2484c</wfw:commentRss>
      <title>Connecting dynamically to mygeneration MyMeta.dbRoot</title>
      <guid isPermaLink="false">http://chrismay.org/PermaLink,guid,d2c7c4a3-54d7-4931-803e-b22d09a2484c.aspx</guid>
      <link>http://chrismay.org/2010/01/18/Connecting+Dynamically+To+Mygeneration+MyMetadbRoot.aspx</link>
      <pubDate>Mon, 18 Jan 2010 06:42:39 GMT</pubDate>
      <description>&lt;div&gt;&lt;P&gt;The amount of time that this cost me is astounding for such a stupid issue.&amp;nbsp; (And, I'm going to lay the blame fully on whoever wrote the dbRoot object in the MyGeneration project.&amp;nbsp; Total improper use of properties).&lt;/P&gt;
&lt;P&gt;The situation was this: I was trying to dynamically wire up all the plumbing that the mygeneration windows app does for you manually from the ZeusCmd command line.&lt;/P&gt;
&lt;P&gt;Doing this would allow me to switch from DB to DB within my code gen application.&lt;/P&gt;
&lt;P&gt;Because ZeusCmd runs first (it references my app and passes in what is needed), if you had previously saved a connection in your MyGeneration app, then this connection is used when ZeusCmd runs.&amp;nbsp; I didn't want this to happen because as I move from location to location different DB servers are available or not available, so if the last DB server I connected to was at office A, I didn't want my code gen crashing onload when I am out of said office.&lt;/P&gt;
&lt;P&gt;So I ran MyGeneration and changed my connection to be &amp;lt;None&amp;gt; and saved the settings.&amp;nbsp; Then in my code gen, I tried to manually create the dbRoot object (named meta here) that was previously created for me my ZeusCmd and my saved MyGeneration settings.&lt;/P&gt;
&lt;P&gt;Code like this:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: black; FONT-SIZE: 11px"&gt;meta.Connect(&lt;SPAN style="BACKGROUND-COLOR: #e4e4e4; FONT-FAMILY: Courier New; COLOR: #666666; FONT-SIZE: 11px"&gt;"SQL"&lt;/SPAN&gt;, &lt;SPAN style="BACKGROUND-COLOR: #e4e4e4; FONT-FAMILY: Courier New; COLOR: #666666; FONT-SIZE: 11px"&gt;"Provider=SQLNCLI;Server=cmayt61p;Database=DBName;Trusted_Connection=yes;"&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;Seemed to do the trick. &lt;/P&gt;
&lt;P&gt;However, my codegen started blowing up on my later in the process.&amp;nbsp; After tracking down the error I find that the mygeneration result column object can't figure out the .net type that would be the same as a sql server "int".&amp;nbsp; Strange, never had these problems before.&lt;/P&gt;
&lt;P&gt;A lot of debugging leads me to find that:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: black; FONT-SIZE: 11px"&gt;meta.DbTarget
meta.Language &lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;Are both returning "" when before they were returning "SqlClient" and "VB.NET" when I was not dynamically connecting.&lt;/P&gt;
&lt;P&gt;So here is where things get bad... anytime I try setting these properties to their values:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: black; FONT-SIZE: 11px"&gt;meta.DbTarget &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: red; FONT-SIZE: 11px"&gt;=&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: #e4e4e4; FONT-FAMILY: Courier New; COLOR: #666666; FONT-SIZE: 11px"&gt;"SqlClient"&lt;/SPAN&gt;
meta.Language &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: red; FONT-SIZE: 11px"&gt;=&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: #e4e4e4; FONT-FAMILY: Courier New; COLOR: #666666; FONT-SIZE: 11px"&gt;"VB.NET"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;Nothing happens.&amp;nbsp; The values don't appear to stick.&lt;/P&gt;
&lt;P&gt;Eventually I even start trying to set the LanguageMappingFileName and DbTargetMappingFileName properties as well:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: black; FONT-SIZE: 11px"&gt;meta.DbTarget &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: red; FONT-SIZE: 11px"&gt;=&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: #e4e4e4; FONT-FAMILY: Courier New; COLOR: #666666; FONT-SIZE: 11px"&gt;"SqlClient"&lt;/SPAN&gt;
meta.Language &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: red; FONT-SIZE: 11px"&gt;=&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: #e4e4e4; FONT-FAMILY: Courier New; COLOR: #666666; FONT-SIZE: 11px"&gt;"VB.NET"&lt;/SPAN&gt;
meta.LanguageMappingFileName &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: red; FONT-SIZE: 11px"&gt;=&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: #e4e4e4; FONT-FAMILY: Courier New; COLOR: #666666; FONT-SIZE: 11px"&gt;"C:\Program Files\MyGeneration13\Settings\Languages.xml"&lt;/SPAN&gt;
meta.DbTargetMappingFileName &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: red; FONT-SIZE: 11px"&gt;=&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: #e4e4e4; FONT-FAMILY: Courier New; COLOR: #666666; FONT-SIZE: 11px"&gt;"C:\Program Files\MyGeneration13\Settings\DbTargets.xml"&lt;/SPAN&gt;
&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;I tried doing these property sets before connecting and after connecting.&lt;/P&gt;
&lt;P&gt;I tried&amp;nbsp;returning to having MyGeneration setup the meta object form me (and all these properties have their values) before dynamically connecting (and losing the DbTarget and Language property values).&lt;/P&gt;
&lt;P&gt;I even tried creating a brand new dbRoot object, as well as trying to read some hidden values in the IZeusInput object.&lt;/P&gt;
&lt;P&gt;But, in the end, it all came down to the this 1 little thing:&lt;/P&gt;
&lt;P&gt;You have to set the mapping file properties before you can set the DbTarget and Language properties.&lt;/P&gt;
&lt;P&gt;So this will work just fine:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: black; FONT-SIZE: 11px"&gt;meta.Connect(&lt;SPAN style="BACKGROUND-COLOR: #e4e4e4; FONT-FAMILY: Courier New; COLOR: #666666; FONT-SIZE: 11px"&gt;"SQL"&lt;/SPAN&gt;, &lt;SPAN style="BACKGROUND-COLOR: #e4e4e4; FONT-FAMILY: Courier New; COLOR: #666666; FONT-SIZE: 11px"&gt;"Provider=SQLNCLI;Server=cmayt61p;Database=MSiUpgraded;Trusted_Connection=yes;"&lt;/SPAN&gt;)&lt;BR&gt;meta.LanguageMappingFileName &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: red; FONT-SIZE: 11px"&gt;=&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: #e4e4e4; FONT-FAMILY: Courier New; COLOR: #666666; FONT-SIZE: 11px"&gt;"C:\Program Files\MyGeneration13\Settings\Languages.xml"&lt;/SPAN&gt;
meta.DbTargetMappingFileName &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: red; FONT-SIZE: 11px"&gt;=&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: #e4e4e4; FONT-FAMILY: Courier New; COLOR: #666666; FONT-SIZE: 11px"&gt;"C:\Program Files\MyGeneration13\Settings\DbTargets.xml"&lt;/SPAN&gt;
meta.DbTarget &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: red; FONT-SIZE: 11px"&gt;=&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: #e4e4e4; FONT-FAMILY: Courier New; COLOR: #666666; FONT-SIZE: 11px"&gt;"SqlClient"&lt;/SPAN&gt;
meta.Language &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: red; FONT-SIZE: 11px"&gt;=&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: #e4e4e4; FONT-FAMILY: Courier New; COLOR: #666666; FONT-SIZE: 11px"&gt;"VB.NET"&lt;/SPAN&gt;
&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;But this won't:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: black; FONT-SIZE: 11px"&gt;meta.Connect(&lt;SPAN style="BACKGROUND-COLOR: #e4e4e4; FONT-FAMILY: Courier New; COLOR: #666666; FONT-SIZE: 11px"&gt;"SQL"&lt;/SPAN&gt;, &lt;SPAN style="BACKGROUND-COLOR: #e4e4e4; FONT-FAMILY: Courier New; COLOR: #666666; FONT-SIZE: 11px"&gt;"Provider=SQLNCLI;Server=cmayt61p;Database=MSiUpgraded;Trusted_Connection=yes;"&lt;/SPAN&gt;)&lt;BR&gt;meta.DbTarget &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: red; FONT-SIZE: 11px"&gt;=&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: #e4e4e4; FONT-FAMILY: Courier New; COLOR: #666666; FONT-SIZE: 11px"&gt;"SqlClient"&lt;/SPAN&gt;
meta.Language &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: red; FONT-SIZE: 11px"&gt;=&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: #e4e4e4; FONT-FAMILY: Courier New; COLOR: #666666; FONT-SIZE: 11px"&gt;"VB.NET"&lt;/SPAN&gt;
meta.LanguageMappingFileName &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: red; FONT-SIZE: 11px"&gt;=&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: #e4e4e4; FONT-FAMILY: Courier New; COLOR: #666666; FONT-SIZE: 11px"&gt;"C:\Program Files\MyGeneration13\Settings\Languages.xml"&lt;/SPAN&gt;
meta.DbTargetMappingFileName &lt;SPAN style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: red; FONT-SIZE: 11px"&gt;=&lt;/SPAN&gt; &lt;SPAN style="BACKGROUND-COLOR: #e4e4e4; FONT-FAMILY: Courier New; COLOR: #666666; FONT-SIZE: 11px"&gt;"C:\Program Files\MyGeneration13\Settings\DbTargets.xml"&lt;/SPAN&gt;
&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;It just so happened that everywhere that I was testing this stuff in my code, I always set the DbTarget and Language properties first, and they would never stick.&lt;/P&gt;
&lt;P&gt;This is not a proper use of properties.&amp;nbsp; If a property set has conditional logic that will prevent it from setting, there is something wrong here.&amp;nbsp; At minimum something should happen, an exception being thrown maybe?&amp;nbsp; The proper thing to do in my mind would be to make DbTarget and Language readonly properties and have functions to set their value, which could return something indicating failure (or throw an exception).&lt;/P&gt;
&lt;P&gt;Property gets and sets should do just that, get and set properties.&amp;nbsp; There shouldn't be logic in there deciding if and when to actually perform the set that you have coded.&amp;nbsp; That is the job of a function.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;UPDATE: &lt;/STRONG&gt;And I discovered as well that you have to connect first before you set any of these values, or none of them will stick.&amp;nbsp; So you have to 1) connect 2) set the file paths 3) set the language and dbtargets, in that order or nothing works.&lt;BR&gt;&lt;/P&gt;&lt;img width="0" height="0" src="http://chrismay.org/aggbug.ashx?id=d2c7c4a3-54d7-4931-803e-b22d09a2484c"/&gt;&lt;/div&gt;</description>
      <comments>http://chrismay.org/CommentView,guid,d2c7c4a3-54d7-4931-803e-b22d09a2484c.aspx</comments>
      <category>Programming</category>
      <category>Programming/.Net</category>
    </item>
  </channel>
</rss>