<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 13:12:39 +0000</lastBuildDate>
    <item>
      <title>(VB.NET) Get Latitude and Longitude from Address (using Google Maps) - blackf0rk</title>
      <link>https://snipplr.com/view/14929/get-latitude-and-longitude-from-address-using-google-maps</link>
      <description>&lt;p&gt;Use inType=0 and feed in a specific Google Maps URL to parse out the GeoCoords from the URL&#13;
e.g. http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=53154&amp;sll=37.0625,-95.677068&amp;sspn=52.505328,80.507812&amp;ie=UTF8&amp;ll=42.858224,-88.000832&amp;spn=0.047943,0.078621&amp;t=h&amp;z=14&#13;
Function returns a string of geocoords (e.g. "-87.9010610,42.8864960")&#13;
&#13;
Use inType=1 and feed in a zip code, address, or business name&#13;
Function returns a string of geocoords (e.g. "-87.9010610,42.8864960")&#13;
If an invalid address, zip code or location was entered, the function will return "0,0"&lt;/p&gt;</description>
      <pubDate>Tue, 12 May 2009 10:33:03 UTC</pubDate>
      <guid>https://snipplr.com/view/14929/get-latitude-and-longitude-from-address-using-google-maps</guid>
    </item>
    <item>
      <title>(VB.NET) Test for Internet Connection - blackf0rk</title>
      <link>https://snipplr.com/view/14928/test-for-internet-connection</link>
      <description>&lt;p&gt;This is a simple function to test for an internet connection. Originally grabbed from "devbuzz" at the devbuzz forums (see link) and now modified for VB.NET 3.5&lt;/p&gt;</description>
      <pubDate>Tue, 12 May 2009 10:29:23 UTC</pubDate>
      <guid>https://snipplr.com/view/14928/test-for-internet-connection</guid>
    </item>
    <item>
      <title>(VB.NET) JavaScript Confirmation Alert before Deleting a Record - blackf0rk</title>
      <link>https://snipplr.com/view/13161/javascript-confirmation-alert-before-deleting-a-record</link>
      <description>&lt;p&gt;If you want to have a JavaScript confirmation alert to popup before executing the codebehind (e.g. asking the user if they really want to delete a record):&lt;/p&gt;</description>
      <pubDate>Mon, 16 Mar 2009 12:50:40 UTC</pubDate>
      <guid>https://snipplr.com/view/13161/javascript-confirmation-alert-before-deleting-a-record</guid>
    </item>
    <item>
      <title>(VB.NET) DataKey on RowDataBound - blackf0rk</title>
      <link>https://snipplr.com/view/13158/datakey-on-rowdatabound</link>
      <description>&lt;p&gt;If you need to get the DataKey value in RowDataBound (e.g. Assigning the DataKey to the CommandArgument of a button):&lt;/p&gt;</description>
      <pubDate>Mon, 16 Mar 2009 12:40:35 UTC</pubDate>
      <guid>https://snipplr.com/view/13158/datakey-on-rowdatabound</guid>
    </item>
    <item>
      <title>(VB.NET) Hex to Dec (RGB) - blackf0rk</title>
      <link>https://snipplr.com/view/13062/hex-to-dec-rgb</link>
      <description>&lt;p&gt;Convert hexidecimal color codes (ie #C0C0C0) to decimal RGB (ie 255,255,255)&lt;/p&gt;</description>
      <pubDate>Thu, 12 Mar 2009 17:28:59 UTC</pubDate>
      <guid>https://snipplr.com/view/13062/hex-to-dec-rgb</guid>
    </item>
    <item>
      <title>(VB.NET) ObjectDataSource SelectParameters - blackf0rk</title>
      <link>https://snipplr.com/view/13061/objectdatasource-selectparameters</link>
      <description>&lt;p&gt;If you have a component being bound from an ObjectDataSource (like a drop-down menu, or a grid view) and you wish to change the value's SelectParameters. Where # is which SelectParameter you'd like to change. If there's just one SelectParamter, default is 0. Then reference your object that uses that datasource, in this case a GridView, to rebind.&lt;/p&gt;</description>
      <pubDate>Thu, 12 Mar 2009 17:27:21 UTC</pubDate>
      <guid>https://snipplr.com/view/13061/objectdatasource-selectparameters</guid>
    </item>
    <item>
      <title>(VB.NET) Editing Meta Tags From Code Behind - blackf0rk</title>
      <link>https://snipplr.com/view/13060/editing-meta-tags-from-code-behind</link>
      <description>&lt;p&gt;Dynamically change the content of meta tags from the code behind. This allows you to feed the meta tags with content from a database or other dynamic content.&lt;/p&gt;</description>
      <pubDate>Thu, 12 Mar 2009 17:25:20 UTC</pubDate>
      <guid>https://snipplr.com/view/13060/editing-meta-tags-from-code-behind</guid>
    </item>
    <item>
      <title>(VB.NET) Loop through a DataReader - blackf0rk</title>
      <link>https://snipplr.com/view/13059/loop-through-a-datareader</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 12 Mar 2009 17:22:54 UTC</pubDate>
      <guid>https://snipplr.com/view/13059/loop-through-a-datareader</guid>
    </item>
    <item>
      <title>(VB.NET) Call a Function in your MasterPage from your .aspx page - blackf0rk</title>
      <link>https://snipplr.com/view/13057/call-a-function-in-your-masterpage-from-your-aspx-page</link>
      <description>&lt;p&gt;If you're going to be using a common function throughout the Web site, you can include the function in your MasterPage and gain access to it from each aspx that inherits from this MasterPage; like so:&lt;/p&gt;</description>
      <pubDate>Thu, 12 Mar 2009 17:20:44 UTC</pubDate>
      <guid>https://snipplr.com/view/13057/call-a-function-in-your-masterpage-from-your-aspx-page</guid>
    </item>
    <item>
      <title>(VB.NET) Generate a Random String - blackf0rk</title>
      <link>https://snipplr.com/view/13056/generate-a-random-string</link>
      <description>&lt;p&gt;If you need to generate a random string of mixed characters, this simple function will do it for you. This will return something like this: 80a7a705-9c23-47bc-92b6-2b5c4f9d728d. Which you then can do various string functions to make it the way you want.&lt;/p&gt;</description>
      <pubDate>Thu, 12 Mar 2009 17:19:13 UTC</pubDate>
      <guid>https://snipplr.com/view/13056/generate-a-random-string</guid>
    </item>
    <item>
      <title>(VB.NET) Use a Generic Dictionary - blackf0rk</title>
      <link>https://snipplr.com/view/13054/use-a-generic-dictionary</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 12 Mar 2009 17:16:19 UTC</pubDate>
      <guid>https://snipplr.com/view/13054/use-a-generic-dictionary</guid>
    </item>
    <item>
      <title>(VB.NET) Loop Through a DataSet - blackf0rk</title>
      <link>https://snipplr.com/view/13053/loop-through-a-dataset</link>
      <description>&lt;p&gt;Assuming your DataSet (named, ds) is already populated with Data and contains only one table.&lt;/p&gt;</description>
      <pubDate>Thu, 12 Mar 2009 17:14:19 UTC</pubDate>
      <guid>https://snipplr.com/view/13053/loop-through-a-dataset</guid>
    </item>
    <item>
      <title>(VB.NET) Format a Phone Number - blackf0rk</title>
      <link>https://snipplr.com/view/13052/format-a-phone-number</link>
      <description>&lt;p&gt;It's important that the newPn var that you pass into the Convert.ToInt64 function is in the xxxxxxxxxx format and that no characters are present.&lt;/p&gt;</description>
      <pubDate>Thu, 12 Mar 2009 17:12:58 UTC</pubDate>
      <guid>https://snipplr.com/view/13052/format-a-phone-number</guid>
    </item>
    <item>
      <title>(VB.NET) Get record count from ObjectDataSource - blackf0rk</title>
      <link>https://snipplr.com/view/13051/get-record-count-from-objectdatasource</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 12 Mar 2009 17:11:44 UTC</pubDate>
      <guid>https://snipplr.com/view/13051/get-record-count-from-objectdatasource</guid>
    </item>
    <item>
      <title>(VB.NET) Loop Through Web AppSettings - blackf0rk</title>
      <link>https://snipplr.com/view/13049/loop-through-web-appsettings</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 12 Mar 2009 17:09:19 UTC</pubDate>
      <guid>https://snipplr.com/view/13049/loop-through-web-appsettings</guid>
    </item>
    <item>
      <title>(VB.NET) Simple String Encryption - blackf0rk</title>
      <link>https://snipplr.com/view/13048/simple-string-encryption</link>
      <description>&lt;p&gt;Passing in a seed and your string will return an encrypted string. Pass in the same seed and the encrypted string again and it will return the original unencrypted string.&lt;/p&gt;</description>
      <pubDate>Thu, 12 Mar 2009 17:08:19 UTC</pubDate>
      <guid>https://snipplr.com/view/13048/simple-string-encryption</guid>
    </item>
    <item>
      <title>(VB.NET) Return HTML from a Web page - blackf0rk</title>
      <link>https://snipplr.com/view/13047/return-html-from-a-web-page</link>
      <description>&lt;p&gt;If you need to get the HTML from a Web page to rip it, process it, and/or display it in the way you want, the following function will work for you.&lt;/p&gt;</description>
      <pubDate>Thu, 12 Mar 2009 17:07:15 UTC</pubDate>
      <guid>https://snipplr.com/view/13047/return-html-from-a-web-page</guid>
    </item>
    <item>
      <title>(VB.NET) Get Google Maps Coordinates from URL - blackf0rk</title>
      <link>https://snipplr.com/view/13046/get-google-maps-coordinates-from-url</link>
      <description>&lt;p&gt;This function will parse out the Google Maps coordinates from a Google Maps link url like this one: http://maps.google.com/?ie=UTF8&amp;ll=43.068888,-87.978516&amp;spn=23.565589,33.925781&amp;t=h&amp;z=5. The coordinates in this URL are 43.068888,-87.978516.&lt;/p&gt;</description>
      <pubDate>Thu, 12 Mar 2009 17:04:57 UTC</pubDate>
      <guid>https://snipplr.com/view/13046/get-google-maps-coordinates-from-url</guid>
    </item>
  </channel>
</rss>
