<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" 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:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>.NET General</title>
        <link>http://waynester.net/blog/category/1.aspx</link>
        <description>Microsoft .NET Framework - including ASP.NET, Windows Forms, .NET development, etc.</description>
        <language>en-US</language>
        <copyright>Wayne Larimore</copyright>
        <generator>Subtext Version 2.1.2.2</generator>
        <creativeCommons:license>wlar1m0re</creativeCommons:license>
        <item>
            <title>DotNetNuke Password Decrypting with Code</title>
            <link>http://waynester.net/blog/archive/2011/09/12/dotnetnuke-password-decrypting-with-code.aspx</link>
            <description>&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 10pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;Recently, I had to decrypt a password that had been forgotten on a DotNetNuke 4.9.5 installation.  Thanks to this &lt;a target="_blank" href="http://www.byteblocks.com/post/2011/05/03/Decrypt-password-in-SqlMembershipProvider.aspx"&gt;&lt;span style="COLOR: blue"&gt;post&lt;/span&gt;&lt;/a&gt; I was able to whip out a quick and dirty web app that provides a clear text value of the encrypted passwords found in the database.&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 10pt"&gt;&lt;strong&gt;&lt;span style="FONT-SIZE: 10pt"&gt;Step 1&lt;/span&gt;&lt;/strong&gt;&lt;span style="FONT-SIZE: 10pt"&gt; - Add necessary web.config settings&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 10pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;Inside the system.web tag add the exact machinekey and membership tags found in the DotNetNuke web.config installation (copy and paste it).&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 10pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;&amp;lt;system.web&amp;gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="COLOR: blue; FONT-SIZE: 10pt"&gt;&amp;lt;!--&lt;/span&gt;&lt;span style="COLOR: green; FONT-SIZE: 10pt"&gt; BEGIN for dotnetnuke password decryption only&lt;/span&gt;&lt;span style="COLOR: blue; FONT-SIZE: 10pt"&gt;--&amp;gt;&lt;br /&gt;
&amp;lt;&lt;/span&gt;&lt;span style="COLOR: #a31515; FONT-SIZE: 10pt"&gt;machineKey&lt;/span&gt;&lt;span style="COLOR: red; FONT-SIZE: 10pt"&gt;validationKey&lt;/span&gt;&lt;span style="COLOR: blue; FONT-SIZE: 10pt"&gt;=&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt;"&lt;span style="COLOR: blue"&gt;####################################&lt;/span&gt;" &lt;span style="COLOR: red"&gt;decryptionKey&lt;/span&gt;&lt;span style="COLOR: blue"&gt;=&lt;/span&gt;"&lt;span style="COLOR: blue"&gt;###########################&lt;/span&gt;" &lt;span style="COLOR: red"&gt;decryption&lt;/span&gt;&lt;span style="COLOR: blue"&gt;=&lt;/span&gt;"&lt;span style="COLOR: blue"&gt;3DES&lt;/span&gt;" &lt;span style="COLOR: red"&gt;validation&lt;/span&gt;&lt;span style="COLOR: blue"&gt;=&lt;/span&gt;"&lt;span style="COLOR: blue"&gt;SHA1&lt;/span&gt;"&lt;span style="COLOR: blue"&gt; /&amp;gt;&lt;br /&gt;
&amp;lt;&lt;/span&gt;&lt;span style="COLOR: #a31515"&gt;membership &lt;/span&gt;&lt;span style="COLOR: red"&gt;defaultProvider&lt;/span&gt;&lt;span style="COLOR: blue"&gt;=&lt;/span&gt;"&lt;span style="COLOR: blue"&gt;AspNetSqlMembershipProvider&lt;/span&gt;" &lt;span style="COLOR: red"&gt;userIsOnlineTimeWindow&lt;/span&gt;&lt;span style="COLOR: blue"&gt;=&lt;/span&gt;"&lt;span style="COLOR: blue"&gt;15&lt;/span&gt;"&lt;span style="COLOR: blue"&gt;&amp;gt;&lt;br /&gt;
&amp;lt;&lt;/span&gt;&lt;span style="COLOR: #a31515"&gt;providers&lt;/span&gt;&lt;span style="COLOR: blue"&gt;&amp;gt;&lt;br /&gt;
&amp;lt;&lt;/span&gt;&lt;span style="COLOR: #a31515"&gt;clear&lt;/span&gt;&lt;span style="COLOR: blue"&gt; /&amp;gt;&lt;br /&gt;
&amp;lt;&lt;/span&gt;&lt;span style="COLOR: #a31515"&gt;add&lt;/span&gt;&lt;span style="COLOR: red"&gt;name&lt;/span&gt;&lt;span style="COLOR: blue"&gt;=&lt;/span&gt;"&lt;span style="COLOR: blue"&gt;AspNetSqlMembershipProvider&lt;/span&gt;" &lt;span style="COLOR: red"&gt;type&lt;/span&gt;&lt;span style="COLOR: blue"&gt;=&lt;/span&gt;"&lt;span style="COLOR: blue"&gt;System.Web.Security.SqlMembershipProvider&lt;/span&gt;" &lt;span style="COLOR: red"&gt;connectionStringName&lt;/span&gt;&lt;span style="COLOR: blue"&gt;=&lt;/span&gt;"&lt;span style="COLOR: blue"&gt;SiteSqlServer&lt;/span&gt;" &lt;span style="COLOR: red"&gt;enablePasswordRetrieval&lt;/span&gt;&lt;span style="COLOR: blue"&gt;=&lt;/span&gt;"&lt;span style="COLOR: blue"&gt;true&lt;/span&gt;" &lt;span style="COLOR: red"&gt;enablePasswordReset&lt;/span&gt;&lt;span style="COLOR: blue"&gt;=&lt;/span&gt;"&lt;span style="COLOR: blue"&gt;true&lt;/span&gt;" &lt;span style="COLOR: red"&gt;requiresQuestionAndAnswer&lt;/span&gt;&lt;span style="COLOR: blue"&gt;=&lt;/span&gt;"&lt;span style="COLOR: blue"&gt;false&lt;/span&gt;" &lt;span style="COLOR: red"&gt;minRequiredPasswordLength&lt;/span&gt;&lt;span style="COLOR: blue"&gt;=&lt;/span&gt;"&lt;span style="COLOR: blue"&gt;7&lt;/span&gt;" &lt;span style="COLOR: red"&gt;minRequiredNonalphanumericCharacters&lt;/span&gt;&lt;span style="COLOR: blue"&gt;=&lt;/span&gt;"&lt;span style="COLOR: blue"&gt;0&lt;/span&gt;" &lt;span style="COLOR: red"&gt;requiresUniqueEmail&lt;/span&gt;&lt;span style="COLOR: blue"&gt;=&lt;/span&gt;"&lt;span style="COLOR: blue"&gt;false&lt;/span&gt;" &lt;span style="COLOR: red"&gt;passwordFormat&lt;/span&gt;&lt;span style="COLOR: blue"&gt;=&lt;/span&gt;"&lt;span style="COLOR: blue"&gt;Encrypted&lt;/span&gt;" &lt;span style="COLOR: red"&gt;applicationName&lt;/span&gt;&lt;span style="COLOR: blue"&gt;=&lt;/span&gt;"&lt;span style="COLOR: blue"&gt;DotNetNuke&lt;/span&gt;" &lt;span style="COLOR: red"&gt;description&lt;/span&gt;&lt;span style="COLOR: blue"&gt;=&lt;/span&gt;"&lt;span style="COLOR: blue"&gt;Stores and retrieves membership data from the local Microsoft SQL Server database&lt;/span&gt;"&lt;span style="COLOR: blue"&gt; /&amp;gt;&lt;br /&gt;
&amp;lt;/&lt;/span&gt;&lt;span style="COLOR: #a31515"&gt;providers&lt;/span&gt;&lt;span style="COLOR: blue"&gt;&amp;gt;&lt;br /&gt;
&amp;lt;/&lt;/span&gt;&lt;span style="COLOR: #a31515"&gt;membership&lt;/span&gt;&lt;span style="COLOR: blue"&gt;&amp;gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style="COLOR: black"&gt;&amp;lt;/system.web&amp;gt;&lt;/span&gt;&lt;span style="COLOR: blue"&gt;&lt;br /&gt;
&amp;lt;!--&lt;/span&gt;&lt;span style="COLOR: green"&gt; END for dotnetnuke password decryption only&lt;/span&gt;&lt;span style="COLOR: blue"&gt;--&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 10pt"&gt;&lt;strong&gt;&lt;span style="FONT-SIZE: 10pt"&gt;Step 2&lt;/span&gt;&lt;/strong&gt;&lt;span style="FONT-SIZE: 10pt"&gt; - Add necessary assembly settings&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt"&gt;&lt;span style="COLOR: blue; FONT-SIZE: 10pt"&gt;using&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt; System.Web.Security;&lt;br /&gt;
&lt;span style="COLOR: blue"&gt;using&lt;/span&gt; System.Text;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt" /&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt" /&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 10pt"&gt;&lt;strong&gt;&lt;span style="COLOR: black; FONT-SIZE: 10pt"&gt;Step 3&lt;/span&gt;&lt;/strong&gt;&lt;span style="COLOR: black; FONT-SIZE: 10pt"&gt; - Add Label to web form&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 10pt"&gt;&lt;span style="COLOR: blue; FONT-SIZE: 10pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="COLOR: maroon; FONT-SIZE: 10pt"&gt;div&lt;/span&gt;&lt;span style="COLOR: blue; FONT-SIZE: 10pt"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 10pt"&gt;&lt;span style="COLOR: blue; FONT-SIZE: 10pt"&gt;DNN Clear Password&amp;lt;&lt;/span&gt;&lt;span style="COLOR: maroon; FONT-SIZE: 10pt"&gt;br&lt;/span&gt;&lt;span style="COLOR: blue; FONT-SIZE: 10pt"&gt; /&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 10pt"&gt;&lt;span style="COLOR: blue; FONT-SIZE: 10pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="COLOR: maroon; FONT-SIZE: 10pt"&gt;asp&lt;/span&gt;&lt;span style="COLOR: blue; FONT-SIZE: 10pt"&gt;:&lt;/span&gt;&lt;span style="COLOR: maroon; FONT-SIZE: 10pt"&gt;Label&lt;/span&gt;&lt;span style="COLOR: red; FONT-SIZE: 10pt"&gt;ID&lt;/span&gt;&lt;span style="COLOR: blue; FONT-SIZE: 10pt"&gt;="DNNPwdLabel" &lt;/span&gt;&lt;span style="COLOR: red; FONT-SIZE: 10pt"&gt;runat&lt;/span&gt;&lt;span style="COLOR: blue; FONT-SIZE: 10pt"&gt;="server" /&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 10pt"&gt;&lt;span style="COLOR: blue; FONT-SIZE: 10pt"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="COLOR: maroon; FONT-SIZE: 10pt"&gt;div&lt;/span&gt;&lt;span style="COLOR: blue; FONT-SIZE: 10pt"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 10pt"&gt;&lt;strong&gt;&lt;span style="COLOR: black; FONT-SIZE: 10pt"&gt;Step 4&lt;/span&gt;&lt;/strong&gt;&lt;span style="COLOR: black; FONT-SIZE: 10pt"&gt; - Add necessary code methods&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt"&gt;&lt;span style="COLOR: blue; FONT-SIZE: 10pt"&gt;protected&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt; &lt;span style="COLOR: blue"&gt;void&lt;/span&gt; Page_Load(&lt;span style="COLOR: blue"&gt;object&lt;/span&gt; sender, &lt;span style="COLOR: #2b91af"&gt;EventArgs&lt;/span&gt; e)&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt"&gt;&lt;span style="COLOR: blue; FONT-SIZE: 10pt"&gt;var&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt; passwordManager = &lt;span style="COLOR: blue"&gt;new&lt;/span&gt; &lt;span style="COLOR: #2b91af"&gt;NetFourMembershipProvider&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt"&gt;&lt;span style="COLOR: blue; FONT-SIZE: 10pt"&gt;var&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt; clearPwd = &lt;span style="COLOR: #a31515"&gt;"admin="&lt;/span&gt;+passwordManager.GetClearTextPassword(&lt;span style="COLOR: #a31515"&gt;"ABCDiH5i5yrD8FTPMNSJLJS0+YHiHBv5sVf1/VMZYXW="&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;clearPwd += &lt;span style="COLOR: #a31515"&gt;"&amp;lt;br/&amp;gt;host="&lt;/span&gt; + passwordManager.GetClearTextPassword(&lt;span style="COLOR: #a31515"&gt;"ABCD1u+u8jDMYLTNEeD4QUzu31vicO1F1fgDnd5ZYXW="&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;clearPwd += &lt;span style="COLOR: #a31515"&gt;"&amp;lt;br/&amp;gt;1hunglow="&lt;/span&gt; + passwordManager.GetClearTextPassword(&lt;span style="COLOR: #a31515"&gt;"ABCDFqVv6ty++9ZFbcyYTSF5Wrtqa2IRNWSi8qDZYXW="&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt"&gt;&lt;span style="COLOR: blue; FONT-SIZE: 10pt"&gt;public&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt; &lt;span style="COLOR: blue"&gt;class&lt;/span&gt; &lt;span style="COLOR: #2b91af"&gt;NetFourMembershipProvider&lt;/span&gt; : &lt;span style="COLOR: #2b91af"&gt;SqlMembershipProvider&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt"&gt;&lt;span style="COLOR: blue; FONT-SIZE: 10pt"&gt;  public&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt; &lt;span style="COLOR: blue"&gt;string&lt;/span&gt; GetClearTextPassword(&lt;span style="COLOR: blue"&gt;string&lt;/span&gt; encryptedPwd)&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;  {&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt"&gt;&lt;span style="COLOR: blue; FONT-SIZE: 10pt"&gt;    byte&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt;[] encodedPassword = &lt;span style="COLOR: #2b91af"&gt;Convert&lt;/span&gt;.FromBase64String(encryptedPwd);&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt"&gt;&lt;span style="COLOR: blue; FONT-SIZE: 10pt"&gt;    byte&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt;[] bytes = &lt;span style="COLOR: blue"&gt;this&lt;/span&gt;.DecryptPassword(encodedPassword);&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt"&gt;&lt;span style="COLOR: blue; FONT-SIZE: 10pt"&gt;    if&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt; (bytes == &lt;span style="COLOR: blue"&gt;null&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;    {&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt"&gt;&lt;span style="COLOR: blue; FONT-SIZE: 10pt"&gt;      return&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt; &lt;span style="COLOR: blue"&gt;null&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;    }&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt"&gt;&lt;span style="COLOR: blue; FONT-SIZE: 10pt"&gt;    return&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt"&gt; &lt;span style="COLOR: #2b91af"&gt;Encoding&lt;/span&gt;.Unicode.GetString(bytes, 0x10, bytes.Length - 0x10);&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style="MARGIN: 0in 0in 10pt"&gt; &lt;/div&gt;&lt;img src="http://waynester.net/blog/aggbug/5782.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Wayne Larimore</dc:creator>
            <guid>http://waynester.net/blog/archive/2011/09/12/dotnetnuke-password-decrypting-with-code.aspx</guid>
            <pubDate>Mon, 12 Sep 2011 16:18:10 GMT</pubDate>
            <wfw:comment>http://waynester.net/blog/comments/5782.aspx</wfw:comment>
            <comments>http://waynester.net/blog/archive/2011/09/12/dotnetnuke-password-decrypting-with-code.aspx#feedback</comments>
            <wfw:commentRss>http://waynester.net/blog/comments/commentRss/5782.aspx</wfw:commentRss>
            <trackback:ping>http://waynester.net/blog/services/trackbacks/5782.aspx</trackback:ping>
        </item>
        <item>
            <title>Move Cursor to Next Field When Pressing Hitting Enter Key</title>
            <link>http://waynester.net/blog/archive/2011/05/09/move-cursor-to-next-field-when-pressing-hitting-enter-key.aspx</link>
            <description>&lt;p&gt;&lt;font size="2" face="Verdana"&gt;The built-in behavior of a .Net Form when pressing or hitting the Enter key is a postback.  I worked on a web application project about a year ago that required the Enter key behavior move to the next TextBox or field.  Basically, making the Enter key behave like a Tab key.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2" face="Verdana"&gt;Here is how I accomplished this:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2" face="Verdana"&gt;Introduce some javascript inside your ASPX file or js resource.&lt;/font&gt;&lt;/p&gt;
&lt;pre&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;/pre&gt;
&lt;pre&gt;  function document.onkeydown() {&lt;/pre&gt;
&lt;pre&gt;    var e = document.activeElement;&lt;/pre&gt;
&lt;pre&gt;    if ((e.tagName == "INPUT" &amp;amp;&amp;amp; (&lt;/pre&gt;
&lt;pre&gt;          e.type == "text" ||&lt;/pre&gt;
&lt;pre&gt;          e.type == "password" ||&lt;/pre&gt;
&lt;pre&gt;          e.type == "checkbox" ||&lt;/pre&gt;
&lt;pre&gt;          e.type == "radio") ||&lt;/pre&gt;
&lt;pre&gt;          e.tagName == "SELECT") &amp;amp;&amp;amp;&lt;/pre&gt;
&lt;pre&gt;          window.event.keyCode == 13)  {&lt;/pre&gt;
&lt;pre&gt;              window.event.keyCode = 9;&lt;/pre&gt;
&lt;pre&gt;  } &lt;/pre&gt;
&lt;pre&gt;}&lt;/pre&gt;
&lt;pre&gt;&amp;lt;/script&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;font size="2" face="Verdana" /&gt; &lt;/p&gt;
&lt;p&gt;&lt;font size="2" face="Verdana"&gt;From there you can take it and customize it to your liking.  Hope this helps.&lt;/font&gt;&lt;/p&gt;&lt;img src="http://waynester.net/blog/aggbug/5780.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Wayne Larimore</dc:creator>
            <guid>http://waynester.net/blog/archive/2011/05/09/move-cursor-to-next-field-when-pressing-hitting-enter-key.aspx</guid>
            <pubDate>Mon, 09 May 2011 13:35:27 GMT</pubDate>
            <wfw:comment>http://waynester.net/blog/comments/5780.aspx</wfw:comment>
            <comments>http://waynester.net/blog/archive/2011/05/09/move-cursor-to-next-field-when-pressing-hitting-enter-key.aspx#feedback</comments>
            <wfw:commentRss>http://waynester.net/blog/comments/commentRss/5780.aspx</wfw:commentRss>
            <trackback:ping>http://waynester.net/blog/services/trackbacks/5780.aspx</trackback:ping>
        </item>
        <item>
            <title>Inserting Null Values For DateTime Sql Server Type</title>
            <link>http://waynester.net/blog/archive/2011/01/11/returning-null-values-for-datetime-sql-server-type.aspx</link>
            <description>&lt;p&gt;&lt;font face="Verdana"&gt;Here's how I return a null value for a sql data type of datetime:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;newExpense.AMEXStatementDate = ConvertToDateTime(AMEXStatementDateTextBox.Text); &lt;/p&gt;
&lt;p&gt;private DateTime ConvertToDateTime(string value) &lt;br /&gt;
{ &lt;br /&gt;
if (!value.Equals(string.Empty)) &lt;br /&gt;
  return Convert.ToDateTime(value); &lt;br /&gt;
else &lt;br /&gt;
  return (DateTime)System.Data.SqlTypes.SqlDateTime.Null; &lt;br /&gt;
} &lt;br /&gt;
&lt;/p&gt;&lt;img src="http://waynester.net/blog/aggbug/5777.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Wayne Larimore</dc:creator>
            <guid>http://waynester.net/blog/archive/2011/01/11/returning-null-values-for-datetime-sql-server-type.aspx</guid>
            <pubDate>Wed, 12 Jan 2011 05:04:32 GMT</pubDate>
            <wfw:comment>http://waynester.net/blog/comments/5777.aspx</wfw:comment>
            <comments>http://waynester.net/blog/archive/2011/01/11/returning-null-values-for-datetime-sql-server-type.aspx#feedback</comments>
            <wfw:commentRss>http://waynester.net/blog/comments/commentRss/5777.aspx</wfw:commentRss>
            <trackback:ping>http://waynester.net/blog/services/trackbacks/5777.aspx</trackback:ping>
        </item>
        <item>
            <title>SSIS Package DTS Property Key not valid error</title>
            <link>http://waynester.net/blog/archive/2011/01/06/ssis-package-dts-property-key-not-valid-error.aspx</link>
            <description>&lt;p&gt;&lt;font face="Verdana"&gt;I recently built a SSIS package that included a web task and script task.  The web task called a remote web service to pull in needed data.  The script task wrote text files based on the data.  All worked great on my development environment.  However, once deployed it started throwing this error:&lt;/font&gt;&lt;/p&gt;
&lt;address&gt;Code: 0xC0016016     Source:       Description: Failed to decrypt protected XML node "DTS:Property" with error 0x8009000B "Key not valid for use in specified state.". You may not be authorized to access this information. This error occurs when there is a cryptographic error. Verify that the correct key is available.  End Error&lt;/address&gt;
&lt;p&gt;&lt;font face="Verdana"&gt;Thanks to this &lt;/font&gt;&lt;a href="http://ppalakollu.blogspot.com/2007/10/moving-ssis-packages-from-development.html"&gt;&lt;font face="Verdana"&gt;blog entry&lt;/font&gt;&lt;/a&gt;&lt;font face="Verdana"&gt; I found the solution.  You basically need to set the Package Level Security to DontSaveSensitive.  To accomplish this, right-click on the Package and choose properies.  Inside the Security section you'll find the ProtectionLevel attribute.  Set it to DontSaveSensitive.&lt;/font&gt;&lt;/p&gt;&lt;img src="http://waynester.net/blog/aggbug/5776.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Wayne Larimore</dc:creator>
            <guid>http://waynester.net/blog/archive/2011/01/06/ssis-package-dts-property-key-not-valid-error.aspx</guid>
            <pubDate>Thu, 06 Jan 2011 14:44:10 GMT</pubDate>
            <wfw:comment>http://waynester.net/blog/comments/5776.aspx</wfw:comment>
            <comments>http://waynester.net/blog/archive/2011/01/06/ssis-package-dts-property-key-not-valid-error.aspx#feedback</comments>
            <wfw:commentRss>http://waynester.net/blog/comments/commentRss/5776.aspx</wfw:commentRss>
            <trackback:ping>http://waynester.net/blog/services/trackbacks/5776.aspx</trackback:ping>
        </item>
        <item>
            <title>Multiple connections to a server or shared resource by the same user</title>
            <link>http://waynester.net/blog/archive/2010/07/09/multiple-connections-to-a-server-or-shared-resource-by-the.aspx</link>
            <description>&lt;p&gt;&lt;font size="2" face="Verdana"&gt;Have you ever received this error message and scratched your head?&lt;/font&gt;&lt;/p&gt;
&lt;div&gt;&lt;font face="Arial"&gt;Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again&lt;/font&gt;&lt;/div&gt;
&lt;p&gt;&lt;font size="2" face="Verdana"&gt;Since I run multiple virtual environments with the same logon credentials it used to happen to me all the time.  &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2" face="Verdana"&gt;The solution is to use the IP Address or the full domain as demonstrated here:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2" face="Verdana"&gt;Instead of &lt;/font&gt;&lt;font size="2" face="Verdana"&gt;\\SERVER1\Websites&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2" face="Verdana"&gt;Try this &lt;/font&gt;&lt;font size="2" face="Verdana"&gt;\\SERVER1.net\Websites&lt;/font&gt;&lt;font size="2" face="Verdana"&gt; OR &lt;/font&gt;&lt;font size="2" face="Verdana"&gt;\\192.168.30.1\Websites&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2" face="Verdana"&gt;Works like a charm.&lt;/font&gt;&lt;/p&gt;&lt;img src="http://waynester.net/blog/aggbug/5774.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Wayne Larimore</dc:creator>
            <guid>http://waynester.net/blog/archive/2010/07/09/multiple-connections-to-a-server-or-shared-resource-by-the.aspx</guid>
            <pubDate>Fri, 09 Jul 2010 17:04:51 GMT</pubDate>
            <wfw:comment>http://waynester.net/blog/comments/5774.aspx</wfw:comment>
            <comments>http://waynester.net/blog/archive/2010/07/09/multiple-connections-to-a-server-or-shared-resource-by-the.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://waynester.net/blog/comments/commentRss/5774.aspx</wfw:commentRss>
            <trackback:ping>http://waynester.net/blog/services/trackbacks/5774.aspx</trackback:ping>
        </item>
        <item>
            <title>"The unattend answer file contains an invalid product key" VMWare Windows Server 2008 Install</title>
            <link>http://waynester.net/blog/archive/2010/05/27/the-unattend-answer-file-contains-an-invalid-product-key-vmware.aspx</link>
            <description>&lt;p&gt;&lt;font size="2" face="Verdana"&gt;I was prepping a virtual environment within VMWare Workstation 6.5 (EZInstall approach) for Microsoft SharePoint 2010.  I encountered the following challenge when booting from a Windows Server 2008 R2 x64 ISO:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2" face="Verdana"&gt;"The unattend answer file contains an invalid product key..."&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2" face="Verdana"&gt;To get rid of this show-stopper I simply disabled the floppy drive connection it had created.  It worked like a charm.&lt;/font&gt;&lt;/p&gt;&lt;img src="http://waynester.net/blog/aggbug/5772.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Wayne Larimore</dc:creator>
            <guid>http://waynester.net/blog/archive/2010/05/27/the-unattend-answer-file-contains-an-invalid-product-key-vmware.aspx</guid>
            <pubDate>Thu, 27 May 2010 12:43:37 GMT</pubDate>
            <wfw:comment>http://waynester.net/blog/comments/5772.aspx</wfw:comment>
            <comments>http://waynester.net/blog/archive/2010/05/27/the-unattend-answer-file-contains-an-invalid-product-key-vmware.aspx#feedback</comments>
            <slash:comments>15</slash:comments>
            <wfw:commentRss>http://waynester.net/blog/comments/commentRss/5772.aspx</wfw:commentRss>
            <trackback:ping>http://waynester.net/blog/services/trackbacks/5772.aspx</trackback:ping>
        </item>
        <item>
            <title>How to get Eval ItemTemplate value from TemplateField</title>
            <link>http://waynester.net/blog/archive/2010/04/06/how-to-get-eval-itemtemplate-value-from-templatefield.aspx</link>
            <description>&lt;p&gt;If you want to retrieve a value produced by an Eval within an TemplateField within an ItemTemplate, this is how...&lt;/p&gt;
&lt;p&gt;Here's the code:&lt;/p&gt;
&lt;pre&gt;string _id = ((DataBoundLiteralControl)GridView1.Cells[0].Controls[0]).Text; &lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Here's the Design View:&lt;/p&gt;
&lt;pre&gt;&amp;lt;asp:GridView ID="GridView1" runat="server" DataSourceID="sdsDataSource" DataKeyNames="ID"&amp;gt;&lt;/pre&gt;
&lt;pre&gt;  &amp;lt;Columns&amp;gt;&lt;/pre&gt;
&lt;pre&gt;    &amp;lt;asp:TemplateField HeaderText="ID"&amp;gt;&lt;/pre&gt;
&lt;pre&gt;      &amp;lt;ItemTemplate&amp;gt; &amp;lt;%#Eval("ID") %&amp;gt;&amp;lt;/ItemTemplate&amp;gt;&lt;/pre&gt;
&lt;pre&gt;    &amp;lt;/asp:TemplateField&amp;gt;&lt;/pre&gt;
&lt;pre&gt;  &amp;lt;/Columns&amp;gt;&lt;/pre&gt;
&lt;pre&gt;&amp;lt;/asp:GridView&amp;gt;&lt;/pre&gt;&lt;img src="http://waynester.net/blog/aggbug/5769.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Wayne Larimore</dc:creator>
            <guid>http://waynester.net/blog/archive/2010/04/06/how-to-get-eval-itemtemplate-value-from-templatefield.aspx</guid>
            <pubDate>Tue, 06 Apr 2010 15:07:38 GMT</pubDate>
            <wfw:comment>http://waynester.net/blog/comments/5769.aspx</wfw:comment>
            <comments>http://waynester.net/blog/archive/2010/04/06/how-to-get-eval-itemtemplate-value-from-templatefield.aspx#feedback</comments>
            <wfw:commentRss>http://waynester.net/blog/comments/commentRss/5769.aspx</wfw:commentRss>
            <trackback:ping>http://waynester.net/blog/services/trackbacks/5769.aspx</trackback:ping>
        </item>
        <item>
            <title>It's Official - Upgraded Blog &amp; New Diggs</title>
            <link>http://waynester.net/blog/archive/2009/11/16/its-official-upgraded-blog-new-diggs.aspx</link>
            <description>&lt;p&gt;This past weekend I upgraded this blog.  I run my blog on &lt;a target="_blank" href="http://www.subtextproject.com"&gt;subText,&lt;/a&gt; a fork of the old .TEXT blogging platform.  I went from version 1.9.3 to 2.1.2 and it wasn't a smooth migration path, let me tell you. &lt;/p&gt;
&lt;p&gt;At the same time, I moved all of my websites (including this blog) from webhost4life to the fairly new &lt;a target="_blank" href="http://www.waynester.net/redirect.aspx?id=71"&gt;WinHost.com&lt;/a&gt;.  These guys are doing it all right.  It fits exactly what I was needing and has cut my hosting cost in half.  They bill on a monthly basis and have top quality support.  The control panel is very simple but yet powerful.  I went with the basic plan.  However, they do provide an advanced plan as well.  Some of the issues I ran across with my subText upgrade dealt with going from an IIS 6 platform to an IIS 7 platform.  If anyone else is looking to do the same leave a comment and I'll fill you in on what I had to do to make it happen.&lt;/p&gt;
&lt;p&gt;Anyways, I'm a happy camper now.  Glad to have the migration behind me.  &lt;/p&gt;&lt;img src="http://waynester.net/blog/aggbug/5760.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Wayne Larimore</dc:creator>
            <guid>http://waynester.net/blog/archive/2009/11/16/its-official-upgraded-blog-new-diggs.aspx</guid>
            <pubDate>Mon, 16 Nov 2009 22:02:03 GMT</pubDate>
            <wfw:comment>http://waynester.net/blog/comments/5760.aspx</wfw:comment>
            <comments>http://waynester.net/blog/archive/2009/11/16/its-official-upgraded-blog-new-diggs.aspx#feedback</comments>
            <wfw:commentRss>http://waynester.net/blog/comments/commentRss/5760.aspx</wfw:commentRss>
            <trackback:ping>http://waynester.net/blog/services/trackbacks/5760.aspx</trackback:ping>
        </item>
        <item>
            <title>Telerik online VB C# Code Converter Translator</title>
            <link>http://waynester.net/blog/archive/2009/09/16/Telerik-online-VB-C-Code-Converter-Translator.aspx</link>
            <description>&lt;p&gt;&lt;font face="Arial"&gt;It appears that Telerik has published a Visual Basic and C# code translation online.  Nice.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;&lt;font face="Arial"&gt;&lt;a target="_blank" href="http://converter.telerik.com/"&gt;http://converter.telerik.com/&lt;/a&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;img src="http://waynester.net/blog/aggbug/5757.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Wayne Larimore</dc:creator>
            <guid>http://waynester.net/blog/archive/2009/09/16/Telerik-online-VB-C-Code-Converter-Translator.aspx</guid>
            <pubDate>Wed, 16 Sep 2009 15:21:30 GMT</pubDate>
            <wfw:comment>http://waynester.net/blog/comments/5757.aspx</wfw:comment>
            <comments>http://waynester.net/blog/archive/2009/09/16/Telerik-online-VB-C-Code-Converter-Translator.aspx#feedback</comments>
            <wfw:commentRss>http://waynester.net/blog/comments/commentRss/5757.aspx</wfw:commentRss>
            <trackback:ping>http://waynester.net/blog/services/trackbacks/5757.aspx</trackback:ping>
        </item>
        <item>
            <title>How To Upgrade Windows 7 RC to Windows 7 RTM</title>
            <link>http://waynester.net/blog/archive/2009/08/08/How-To-Upgrade-Windows-7-RC-to-Windows-7-RTM.aspx</link>
            <description>&lt;p&gt;&lt;font face="Verdana" size="2"&gt;[via intowindows.com]&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Verdana" size="2"&gt;&lt;em&gt;"If you have been running Windows 7 RC, then you might want to upgrade from Windows 7 RC to Windows 7 RTM. Although Windows 7 RC to Windows 7 RTM in-place upgrade is not supported officially, you can upgrade from Windows 7 RC to RTM with a simple trick."&lt;/em&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.intowindows.com/how-to-upgrade-windows-7-rc-to-rtm"&gt;&lt;font face="Verdana" size="2"&gt;http://www.intowindows.com/how-to-upgrade-windows-7-rc-to-rtm&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://waynester.net/blog/aggbug/5753.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Wayne Larimore</dc:creator>
            <guid>http://waynester.net/blog/archive/2009/08/08/How-To-Upgrade-Windows-7-RC-to-Windows-7-RTM.aspx</guid>
            <pubDate>Sat, 08 Aug 2009 16:05:44 GMT</pubDate>
            <wfw:comment>http://waynester.net/blog/comments/5753.aspx</wfw:comment>
            <comments>http://waynester.net/blog/archive/2009/08/08/How-To-Upgrade-Windows-7-RC-to-Windows-7-RTM.aspx#feedback</comments>
            <wfw:commentRss>http://waynester.net/blog/comments/commentRss/5753.aspx</wfw:commentRss>
            <trackback:ping>http://waynester.net/blog/services/trackbacks/5753.aspx</trackback:ping>
        </item>
    </channel>
</rss>
