<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0">
  <channel>
    <title>Lee's Code - A Web Programmer's Toolbox</title>
    <link>http://shurie.com/coder/</link>
    <description>Get programming code snippets and tips for HTML, CSS, ASP, SQL, JavaScript, RSS, XML, and more. Lee's code is free, will save you time and money, and make your programming time more productive and fun!</description>
    <language>en-us</language>
    <pubDate>Fri, 29 Jul 2010 00:00:00 -0700</pubDate>
    <item>
      <title>Extract XSD Date and Time</title>
      <link>http://shurie.com/coder/code_details.asp?codeid=42</link>
      <guid>http://bordersense.com/blog.asp?blogid=42</guid>
      <description><![CDATA[Here is a classic ASP script I wrote to convert XSD formatted date and time info to vbGeneralDate format.]]></description>
      <pubDate>Thu, 14 Jul 2010 09:41:22 -0700</pubDate>
    </item>
    <item>
      <title>Convert DateTime to XSD format</title>
      <link>http://shurie.com/coder/code_details.asp?codeid=41</link>
      <guid>http://bordersense.com/blog.asp?blogid=41</guid>
      <description><![CDATA[I couldn't find a function to convert date and time to XSD DateTime format ( [-]CCYY-MM-DDThh:mm:ss[Z|(+|-)hh:mm] ) so I wrote one. <br><br>Use this function to convert any of the common date/time formats to XSD Date Time Format which is sometimes used in data-transfer applications and often in XML feeds.]]></description>
      <pubDate>Sun, 26 Jun 2010 09:19:14 -0700</pubDate>
    </item>
    <item>
      <title>Form Button Working and Disabled</title>
      <link>http://shurie.com/coder/code_details.asp?codeid=40</link>
      <guid>http://bordersense.com/blog.asp?blogid=40</guid>
      <description><![CDATA[this is the code for a form button which will be disabled on click (so it can't be clicked twice) and the text on the button will also change to say working…]]></description>
      <pubDate>Tue, 05 Apr 2010 09:41:48 -0700</pubDate>
    </item>
    <item>
      <title>Refresh Opening Page</title>
      <link>http://shurie.com/coder/code_details.asp?codeid=39</link>
      <guid>http://bordersense.com/blog.asp?blogid=39</guid>
      <description><![CDATA[This is a very simple bit of Javascript which you can add to the <BODY> tag of a html page which has been opened by another page. When the called page is closed, the opening page is automatically refreshed. This is the simplest method I know of accomplishing this.]]></description>
      <pubDate>Fri, 18 Feb 2010 11:50:22 -0700</pubDate>
    </item>
    <item>
      <title>Detect Record State and Database State. Close recordset and database</title>
      <link>http://shurie.com/coder/code_details.asp?codeid=38</link>
      <guid>http://bordersense.com/blog.asp?blogid=38</guid>
      <description><![CDATA[This code snippet illustrates how to detect an open recordset and close it. Same for an open database connection.<br><br>If you do not first detect the state of the recordset or the database and you attempt to close it, you will get an error if it is not open. This code eliminates the error by first detecting the state of the recordset or the database connection.]]></description>
      <pubDate>Tue, 07 Dec 2009 10:14:48 -0700</pubDate>
    </item>
    <item>
      <title>SQL Injection Data Cleaner</title>
      <link>http://shurie.com/coder/code_details.asp?codeid=37</link>
      <guid>http://bordersense.com/blog.asp?blogid=37</guid>
      <description><![CDATA[This is a simple input field cleaner to help prevent SQL Injection problems. SQL Injection occurs when a hacker fills out a form on your web site or posts data to a script. If the script which accepts and processes the data reads or writes to a SQL database, the hacker can include SQL commands. Those commands can insert data to your database and/or can output details about the tables and fields in your database. <br><br>There is much more to SQL injection, but this simple script will help to clean submitted data. It is intended for alphanumeric fields. You can clean numeric fields separately by testing for isNumeric and Not isNull.<br><br>Lee has a good deal of experience protecting web sites from SQL injection.]]></description>
      <pubDate>Thu, 01 Oct 2008 14:38:14 -0700</pubDate>
    </item>
    <item>
      <title>HTML box with rounded corners</title>
      <link>http://shurie.com/coder/code_details.asp?codeid=36</link>
      <guid>http://bordersense.com/blog.asp?blogid=36</guid>
      <description><![CDATA[This little trick uses the fieldset and legend tags to create a nicely bordered box with a title. It is straight HTML.<br><br>Originally this was proprietary to IE, but it has been adapted by Mozilla Firefox. In IE the corners are nicely rounded. In Firefox they are square.]]></description>
      <pubDate>Sun, 13 Sep 2008 23:11:31 -0700</pubDate>
    </item>
    <item>
      <title>Classic ASP Timer using SQL Server</title>
      <link>http://shurie.com/coder/code_details.asp?codeid=35</link>
      <guid>http://bordersense.com/blog.asp?blogid=35</guid>
      <description><![CDATA[This script provides a way to cause your Classic ASP page t pause or sleep. It uses SQL Server to perform the sleep function.]]></description>
      <pubDate>Wed, 05 Aug 2008 11:04:34 -0700</pubDate>
    </item>
    <item>
      <title>Lorem Ipsum Text Filler</title>
      <link>http://shurie.com/coder/code_details.asp?codeid=34</link>
      <guid>http://bordersense.com/blog.asp?blogid=34</guid>
      <description><![CDATA[Ever needed something to use as a placeholder for future test? Have you wondered what "Lorem Ipsum… " was all about? Here is 5 paragraphs of Latin gibberish commonly used for text filler.]]></description>
      <pubDate>Wed, 13 May 2008 23:11:31 -0700</pubDate>
    </item>
    <item>
      <title>JavaScript Page Redirection on a Timer</title>
      <link>http://shurie.com/coder/code_details.asp?codeid=33</link>
      <guid>http://bordersense.com/blog.asp?blogid=33</guid>
      <description><![CDATA[This is a simple but useful JavaScript code snippet which redirects the current page on a timer. Note the timer is in milliseconds.]]></description>
      <pubDate>Wed, 26 Feb 2008 19:19:32 -0700</pubDate>
    </item>
    <item>
      <title>ASP Break Cache</title>
      <link>http://shurie.com/coder/code_details.asp?codeid=32</link>
      <guid>http://bordersense.com/blog.asp?blogid=32</guid>
      <description><![CDATA[When you update a data  on a data-driven page then redirect a user to it, you want to ensure the web browser displays current content instead of cached content. Use the simple code below to fool the cache.]]></description>
      <pubDate>Sat, 02 Nov 2007 13:43:53 -0700</pubDate>
    </item>
    <item>
      <title>Random Number Generator</title>
      <link>http://shurie.com/coder/code_details.asp?codeid=31</link>
      <guid>http://bordersense.com/blog.asp?blogid=31</guid>
      <description><![CDATA[A simple function but very useful. This script will generate a random number between 1 and 1,000,000.]]></description>
      <pubDate>Sat, 02 Nov 2007 13:38:13 -0700</pubDate>
    </item>
    <item>
      <title>Parse First and Last Names</title>
      <link>http://shurie.com/coder/code_details.asp?codeid=30</link>
      <guid>http://bordersense.com/blog.asp?blogid=30</guid>
      <description><![CDATA[A simple script I wrote years ago to parse first and last names. It is still handy.]]></description>
      <pubDate>Fri, 02 Aug 2007 13:46:34 -0700</pubDate>
    </item>
    <item>
      <title>Open CSV File as Dataset</title>
      <link>http://shurie.com/coder/code_details.asp?codeid=29</link>
      <guid>http://bordersense.com/blog.asp?blogid=29</guid>
      <description><![CDATA[This script shows you how to open a CSV file as a recordset so you can read and write records. It also shows a simple method of looping through the records to print field names and values. The first part of the script opens a CSV file using a direct path to the file. This is the most common method. The commented section shows how to use the ODBC driver for text.]]></description>
      <pubDate>Fri, 02 Aug 2007 11:36:55 -0700</pubDate>
    </item>
    <item>
      <title>Open MS Access Database and Tables</title>
      <link>http://shurie.com/coder/code_details.asp?codeid=28</link>
      <guid>http://bordersense.com/blog.asp?blogid=28</guid>
      <description><![CDATA[This script demonstrates how to open a MS Access database using a file path rather than an ODBC dataset name. It also includes sample scripts to open a recordset for writing, open a table as read only, insert a record into a table, delete a record, and update a record.]]></description>
      <pubDate>Fri, 02 Aug 2007 11:32:06 -0700</pubDate>
    </item>
  </channel>
</rss>