<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' version='2.0'><channel><atom:id>tag:blogger.com,1999:blog-8357313402585425466</atom:id><lastBuildDate>Tue, 11 Aug 2009 09:19:57 +0000</lastBuildDate><title>Freelance Web Developer Blog</title><description>The JPR Freelance Blog is aimed at fellow freelance web designers and developers and will provide a useful resource of code snippets, useful tools and advice.</description><link>http://www.jprfreelance.com/blog/index.htm</link><managingEditor>noreply@blogger.com (Webmaster)</managingEditor><generator>Blogger</generator><openSearch:totalResults>14</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8357313402585425466.post-6961888020439835204</guid><pubDate>Tue, 11 Aug 2009 09:18:00 +0000</pubDate><atom:updated>2009-08-11T02:19:57.994-07:00</atom:updated><title>Counting code lines in .NET Visual Studio project</title><description>I recently found a really useful tool to count the number of lines in a c# or vb.net project or solution.&lt;br /&gt;&lt;br /&gt;The tool is available for free download at the following URL:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://richnewman.wordpress.com/2007/07/09/c-visual-basic-and-c-net-line-count-utility-version-2/"&gt;http://richnewman.wordpress.com/2007/07/09/c-visual-basic-and-c-net-line-count-utility-version-2/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8357313402585425466-6961888020439835204?l=www.jprfreelance.com%2Fblog%2Findex.htm'/&gt;&lt;/div&gt;</description><link>http://www.jprfreelance.com/blog/2009/08/counting-code-lines-in-net-visual.html</link><author>noreply@blogger.com (Webmaster)</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8357313402585425466.post-5448504763633316108</guid><pubDate>Wed, 11 Mar 2009 17:02:00 +0000</pubDate><atom:updated>2009-03-28T01:20:53.935-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>wcd</category><title>WCF error: "This collection already contains an address with scheme http"</title><description>WCF error: "This collection already contains an address with scheme http".&lt;br /&gt;&lt;br /&gt;The explanation is that "WCF services hosted in IIS can have only one Base Address".&lt;br /&gt;&lt;br /&gt;Easy fix:&lt;br /&gt;&lt;br /&gt;Just add the following lines in the system.serviceModel section:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&amp;lt;serviceHostingEnvironment&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;baseAddressPrefixFilters&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;add prefix="http://www.example.com"/&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/baseAddressPrefixFilters&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/serviceHostingEnvironment&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="CLEAR: both; PADDING-BOTTOM: 0.25em"&gt;&lt;/div&gt;&lt;p class="blogger-labels"&gt;&lt;a href="http://blog.befruit.com/labels/WCF.html" rel="tag"&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8357313402585425466-5448504763633316108?l=www.jprfreelance.com%2Fblog%2Findex.htm'/&gt;&lt;/div&gt;</description><link>http://www.jprfreelance.com/blog/2009/03/wcf-error-this-collection-already.html</link><author>noreply@blogger.com (Webmaster)</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8357313402585425466.post-8047599253835066185</guid><pubDate>Tue, 17 Feb 2009 12:01:00 +0000</pubDate><atom:updated>2009-02-17T04:04:12.875-08:00</atom:updated><title>Redirect a page URL in javascript</title><description>The following code will redirect a page from index.aspx to the root URL in javascript:&lt;br /&gt;&lt;br /&gt;var u = 'http://www.mysite.com/';&lt;br /&gt;if (self.parent.frames.length != 0) self.parent.location=u;&lt;br /&gt;if (self.location != u) self.location=u;//&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8357313402585425466-8047599253835066185?l=www.jprfreelance.com%2Fblog%2Findex.htm'/&gt;&lt;/div&gt;</description><link>http://www.jprfreelance.com/blog/2009/02/redirect-page-url-in-javascript.html</link><author>noreply@blogger.com (Webmaster)</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8357313402585425466.post-3904769980875836872</guid><pubDate>Mon, 16 Feb 2009 14:30:00 +0000</pubDate><atom:updated>2009-02-16T06:35:07.624-08:00</atom:updated><title>301 Redirect in ASP.NET / C# Code</title><description>If you want to redirect a URL on a permanent basis using ASP.NET and C# code as an alternative to using IIS 6 or IIS 7, you can append the code to the old ASP.NET page.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Response.Clear();&lt;br /&gt;Response.Status = "301 Moved Permanently";&lt;br /&gt;Response.AddHeader("Location", "http://www.newpagelocation.com/");&lt;br /&gt;Response.End();&lt;br /&gt;&lt;br /&gt;Hope this helps!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8357313402585425466-3904769980875836872?l=www.jprfreelance.com%2Fblog%2Findex.htm'/&gt;&lt;/div&gt;</description><link>http://www.jprfreelance.com/blog/2009/02/301-redirect-in-aspnet-c-code.html</link><author>noreply@blogger.com (Webmaster)</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8357313402585425466.post-1524979793733362837</guid><pubDate>Fri, 23 Jan 2009 16:07:00 +0000</pubDate><atom:updated>2009-01-23T08:13:37.008-08:00</atom:updated><title>File Access Error .IPX IPIX 360 FILES</title><description>If you encounter an error with the message "file access error" when serving IPIX files via a windows server and IIS it is likely that:&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1) Your browser has no java support (in this case you will NOT see the IPIX logo)&lt;/div&gt;&lt;div&gt;2) Your IIS Server is not configured to serve these files:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;i) Right click the website in IIS &gt; Properties&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;ii) Select the HTTP headers button&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;iii) Add a new MIME type with a .IPX extension and MIME type of application/x-ipx&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Hope this helps someone - it drove me mad for 2 hours!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8357313402585425466-1524979793733362837?l=www.jprfreelance.com%2Fblog%2Findex.htm'/&gt;&lt;/div&gt;</description><link>http://www.jprfreelance.com/blog/2009/01/file-access-error-ipx-ipix-360-files.html</link><author>noreply@blogger.com (Webmaster)</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8357313402585425466.post-540470239805524072</guid><pubDate>Thu, 11 Dec 2008 11:32:00 +0000</pubDate><atom:updated>2008-12-11T03:37:24.618-08:00</atom:updated><title>Paypal country code dropdown select html</title><description>I recently needed to build a paypal dropdown country list to pass to a PAYPAL checkout form, it took me a while to find the permitted values and build an HTML select list so I have included it here for anyone who may find it useful! View the source of this page to get the html code for the select box!&lt;br /&gt;&lt;br /&gt;&lt;select class="" id="country_code" name="country_code"&gt;&lt;option value=""&gt;-- Choose a Country --&lt;/option&gt;&lt;option value="GB"&gt;United Kingdom&lt;/option&gt;&lt;option value="AL"&gt;Albania&lt;/option&gt;&lt;option value="DZ"&gt;Algeria&lt;/option&gt;&lt;option value="AD"&gt;Andorra&lt;/option&gt;&lt;option value="AO"&gt;Angola&lt;/option&gt;&lt;option value="AI"&gt;Anguilla&lt;/option&gt;&lt;option value="AG"&gt;Antigua and Barbuda&lt;/option&gt;&lt;option value="AR"&gt;Argentina&lt;/option&gt;&lt;option value="AM"&gt;Armenia&lt;/option&gt;&lt;option value="AW"&gt;Aruba&lt;/option&gt;&lt;option value="AU"&gt;Australia&lt;/option&gt;&lt;option value="AT"&gt;Austria&lt;/option&gt;&lt;option value="AZ"&gt;Azerbaijan Republic&lt;/option&gt;&lt;option value="BS"&gt;Bahamas&lt;/option&gt;&lt;option value="BH"&gt;Bahrain&lt;/option&gt;&lt;option value="BB"&gt;Barbados&lt;/option&gt;&lt;option value="BE"&gt;Belgium&lt;/option&gt;&lt;option value="BZ"&gt;Belize&lt;/option&gt;&lt;option value="BJ"&gt;Benin&lt;/option&gt;&lt;option value="BM"&gt;Bermuda&lt;/option&gt;&lt;option value="BT"&gt;Bhutan&lt;/option&gt;&lt;option value="BO"&gt;Bolivia&lt;/option&gt;&lt;option value="BA"&gt;Bosnia and Herzegovina&lt;/option&gt;&lt;option value="BW"&gt;Botswana&lt;/option&gt;&lt;option value="BR"&gt;Brazil&lt;/option&gt;&lt;option value="VG"&gt;British Virgin Islands&lt;/option&gt;&lt;option value="BN"&gt;Brunei&lt;/option&gt;&lt;option value="BG"&gt;Bulgaria&lt;/option&gt;&lt;option value="BF"&gt;Burkina Faso&lt;/option&gt;&lt;option value="BI"&gt;Burundi&lt;/option&gt;&lt;option value="KH"&gt;Cambodia&lt;/option&gt;&lt;option value="CA"&gt;Canada&lt;/option&gt;&lt;option value="CV"&gt;Cape Verde&lt;/option&gt;&lt;option value="KY"&gt;Cayman Islands&lt;/option&gt;&lt;option value="TD"&gt;Chad&lt;/option&gt;&lt;option value="CL"&gt;Chile&lt;/option&gt;&lt;option value="C2"&gt;China&lt;/option&gt;&lt;option value="CO"&gt;Colombia&lt;/option&gt;&lt;option value="KM"&gt;Comoros&lt;/option&gt;&lt;option value="CK"&gt;Cook Islands&lt;/option&gt;&lt;option value="CR"&gt;Costa Rica&lt;/option&gt;&lt;option value="HR"&gt;Croatia&lt;/option&gt;&lt;option value="CY"&gt;Cyprus&lt;/option&gt;&lt;option value="CZ"&gt;Czech Republic&lt;/option&gt;&lt;option value="CD"&gt;Democratic Republic of the Congo&lt;/option&gt;&lt;option value="DK"&gt;Denmark&lt;/option&gt;&lt;option value="DJ"&gt;Djibouti&lt;/option&gt;&lt;option value="DM"&gt;Dominica&lt;/option&gt;&lt;option value="DO"&gt;Dominican Republic&lt;/option&gt;&lt;option value="EC"&gt;Ecuador&lt;/option&gt;&lt;option value="SV"&gt;El Salvador&lt;/option&gt;&lt;option value="ER"&gt;Eritrea&lt;/option&gt;&lt;option value="EE"&gt;Estonia&lt;/option&gt;&lt;option value="ET"&gt;Ethiopia&lt;/option&gt;&lt;option value="FK"&gt;Falkland Islands&lt;/option&gt;&lt;option value="FO"&gt;Faroe Islands&lt;/option&gt;&lt;option value="FM"&gt;Federated States of Micronesia&lt;/option&gt;&lt;option value="FJ"&gt;Fiji&lt;/option&gt;&lt;option value="FI"&gt;Finland&lt;/option&gt;&lt;option value="FR"&gt;France&lt;/option&gt;&lt;option value="GF"&gt;French Guiana&lt;/option&gt;&lt;option value="PF"&gt;French Polynesia&lt;/option&gt;&lt;option value="GA"&gt;Gabon Republic&lt;/option&gt;&lt;option value="GM"&gt;Gambia&lt;/option&gt;&lt;option value="DE"&gt;Germany&lt;/option&gt;&lt;option value="GI"&gt;Gibraltar&lt;/option&gt;&lt;option value="GR"&gt;Greece&lt;/option&gt;&lt;option value="GL"&gt;Greenland&lt;/option&gt;&lt;option value="GD"&gt;Grenada&lt;/option&gt;&lt;option value="GP"&gt;Guadeloupe&lt;/option&gt;&lt;option value="GT"&gt;Guatemala&lt;/option&gt;&lt;option value="GN"&gt;Guinea&lt;/option&gt;&lt;option value="GW"&gt;Guinea Bissau&lt;/option&gt;&lt;option value="GY"&gt;Guyana&lt;/option&gt;&lt;option value="HN"&gt;Honduras&lt;/option&gt;&lt;option value="HK"&gt;Hong Kong&lt;/option&gt;&lt;option value="HU"&gt;Hungary&lt;/option&gt;&lt;option value="IS"&gt;Iceland&lt;/option&gt;&lt;option value="IN"&gt;India&lt;/option&gt;&lt;option value="ID"&gt;Indonesia&lt;/option&gt;&lt;option value="IE"&gt;Ireland&lt;/option&gt;&lt;option value="IL"&gt;Israel&lt;/option&gt;&lt;option value="IT"&gt;Italy&lt;/option&gt;&lt;option value="JM"&gt;Jamaica&lt;/option&gt;&lt;option value="JP"&gt;Japan&lt;/option&gt;&lt;option value="JO"&gt;Jordan&lt;/option&gt;&lt;option value="KZ"&gt;Kazakhstan&lt;/option&gt;&lt;option value="KE"&gt;Kenya&lt;/option&gt;&lt;option value="KI"&gt;Kiribati&lt;/option&gt;&lt;option value="KW"&gt;Kuwait&lt;/option&gt;&lt;option value="KG"&gt;Kyrgyzstan&lt;/option&gt;&lt;option value="LA"&gt;Laos&lt;/option&gt;&lt;option value="LV"&gt;Latvia&lt;/option&gt;&lt;option value="LS"&gt;Lesotho&lt;/option&gt;&lt;option value="LI"&gt;Liechtenstein&lt;/option&gt;&lt;option value="LT"&gt;Lithuania&lt;/option&gt;&lt;option value="LU"&gt;Luxembourg&lt;/option&gt;&lt;option value="MG"&gt;Madagascar&lt;/option&gt;&lt;option value="MW"&gt;Malawi&lt;/option&gt;&lt;option value="MY"&gt;Malaysia&lt;/option&gt;&lt;option value="MV"&gt;Maldives&lt;/option&gt;&lt;option value="ML"&gt;Mali&lt;/option&gt;&lt;option value="MT"&gt;Malta&lt;/option&gt;&lt;option value="MH"&gt;Marshall Islands&lt;/option&gt;&lt;option value="MQ"&gt;Martinique&lt;/option&gt;&lt;option value="MR"&gt;Mauritania&lt;/option&gt;&lt;option value="MU"&gt;Mauritius&lt;/option&gt;&lt;option value="YT"&gt;Mayotte&lt;/option&gt;&lt;option value="MX"&gt;Mexico&lt;/option&gt;&lt;option value="MN"&gt;Mongolia&lt;/option&gt;&lt;option value="MS"&gt;Montserrat&lt;/option&gt;&lt;option value="MA"&gt;Morocco&lt;/option&gt;&lt;option value="MZ"&gt;Mozambique&lt;/option&gt;&lt;option value="NA"&gt;Namibia&lt;/option&gt;&lt;option value="NR"&gt;Nauru&lt;/option&gt;&lt;option value="NP"&gt;Nepal&lt;/option&gt;&lt;option value="NL"&gt;Netherlands&lt;/option&gt;&lt;option value="AN"&gt;Netherlands Antilles&lt;/option&gt;&lt;option value="NC"&gt;New Caledonia&lt;/option&gt;&lt;option value="NZ"&gt;New Zealand&lt;/option&gt;&lt;option value="NI"&gt;Nicaragua&lt;/option&gt;&lt;option value="NE"&gt;Niger&lt;/option&gt;&lt;option value="NU"&gt;Niue&lt;/option&gt;&lt;option value="NF"&gt;Norfolk Island&lt;/option&gt;&lt;option value="NO"&gt;Norway&lt;/option&gt;&lt;option value="OM"&gt;Oman&lt;/option&gt;&lt;option value="PW"&gt;Palau&lt;/option&gt;&lt;option value="PA"&gt;Panama&lt;/option&gt;&lt;option value="PG"&gt;Papua New Guinea&lt;/option&gt;&lt;option value="PE"&gt;Peru&lt;/option&gt;&lt;option value="PH"&gt;Philippines&lt;/option&gt;&lt;option value="PN"&gt;Pitcairn Islands&lt;/option&gt;&lt;option value="PL"&gt;Poland&lt;/option&gt;&lt;option value="PT"&gt;Portugal&lt;/option&gt;&lt;option value="QA"&gt;Qatar&lt;/option&gt;&lt;option value="CG"&gt;Republic of the Congo&lt;/option&gt;&lt;option value="RE"&gt;Reunion&lt;/option&gt;&lt;option value="RO"&gt;Romania&lt;/option&gt;&lt;option value="RU"&gt;Russia&lt;/option&gt;&lt;option value="RW"&gt;Rwanda&lt;/option&gt;&lt;option value="VC"&gt;Saint Vincent and the Grenadines&lt;/option&gt;&lt;option value="WS"&gt;Samoa&lt;/option&gt;&lt;option value="SM"&gt;San Marino&lt;/option&gt;&lt;option value="ST"&gt;São Tomé and Príncipe&lt;/option&gt;&lt;option value="SA"&gt;Saudi Arabia&lt;/option&gt;&lt;option value="SN"&gt;Senegal&lt;/option&gt;&lt;option value="SC"&gt;Seychelles&lt;/option&gt;&lt;option value="SL"&gt;Sierra Leone&lt;/option&gt;&lt;option value="SG"&gt;Singapore&lt;/option&gt;&lt;option value="SK"&gt;Slovakia&lt;/option&gt;&lt;option value="SI"&gt;Slovenia&lt;/option&gt;&lt;option value="SB"&gt;Solomon Islands&lt;/option&gt;&lt;option value="SO"&gt;Somalia&lt;/option&gt;&lt;option value="ZA"&gt;South Africa&lt;/option&gt;&lt;option value="KR"&gt;South Korea&lt;/option&gt;&lt;option value="ES"&gt;Spain&lt;/option&gt;&lt;option value="LK"&gt;Sri Lanka&lt;/option&gt;&lt;option value="SH"&gt;St. Helena&lt;/option&gt;&lt;option value="KN"&gt;St. Kitts and Nevis&lt;/option&gt;&lt;option value="LC"&gt;St. Lucia&lt;/option&gt;&lt;option value="PM"&gt;St. Pierre and Miquelon&lt;/option&gt;&lt;option value="SR"&gt;Suriname&lt;/option&gt;&lt;option value="SJ"&gt;Svalbard and Jan Mayen Islands&lt;/option&gt;&lt;option value="SZ"&gt;Swaziland&lt;/option&gt;&lt;option value="SE"&gt;Sweden&lt;/option&gt;&lt;option value="CH"&gt;Switzerland&lt;/option&gt;&lt;option value="TW"&gt;Taiwan&lt;/option&gt;&lt;option value="TJ"&gt;Tajikistan&lt;/option&gt;&lt;option value="TZ"&gt;Tanzania&lt;/option&gt;&lt;option value="TH"&gt;Thailand&lt;/option&gt;&lt;option value="TG"&gt;Togo&lt;/option&gt;&lt;option value="TO"&gt;Tonga&lt;/option&gt;&lt;option value="TT"&gt;Trinidad and Tobago&lt;/option&gt;&lt;option value="TN"&gt;Tunisia&lt;/option&gt;&lt;option value="TR"&gt;Turkey&lt;/option&gt;&lt;option value="TM"&gt;Turkmenistan&lt;/option&gt;&lt;option value="TC"&gt;Turks and Caicos Islands&lt;/option&gt;&lt;option value="TV"&gt;Tuvalu&lt;/option&gt;&lt;option value="UG"&gt;Uganda&lt;/option&gt;&lt;option value="UA"&gt;Ukraine&lt;/option&gt;&lt;option value="AE"&gt;United Arab Emirates&lt;/option&gt;&lt;option value="US"&gt;United States&lt;/option&gt;&lt;option value="UY"&gt;Uruguay&lt;/option&gt;&lt;option value="VU"&gt;Vanuatu&lt;/option&gt;&lt;option value="VA"&gt;Vatican City State&lt;/option&gt;&lt;option value="VE"&gt;Venezuela&lt;/option&gt;&lt;option value="VN"&gt;Vietnam&lt;/option&gt;&lt;option value="WF"&gt;Wallis and Futuna Islands&lt;/option&gt;&lt;option value="YE"&gt;Yemen&lt;/option&gt;&lt;option value="ZM"&gt;Zambia&lt;/option&gt;&lt;/select&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8357313402585425466-540470239805524072?l=www.jprfreelance.com%2Fblog%2Findex.htm'/&gt;&lt;/div&gt;</description><link>http://www.jprfreelance.com/blog/2008/12/paypal-country-code-dropdown-select_11.html</link><author>noreply@blogger.com (Webmaster)</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8357313402585425466.post-4563424968591441029</guid><pubDate>Wed, 15 Oct 2008 16:40:00 +0000</pubDate><atom:updated>2008-10-15T09:42:09.834-07:00</atom:updated><title>Convert Object Array To Dataset</title><description>Bind an Object Array to a dataset using the following code. &lt;br /&gt;&lt;br /&gt;Code Snippet&lt;br /&gt;&lt;br /&gt;using System;&lt;br /&gt;using System.Data;&lt;br /&gt;using System.IO;&lt;br /&gt;using System.Xml;&lt;br /&gt;using System.Xml.Serialization;&lt;br /&gt;  &lt;br /&gt;namespace BusinessObject.Util&lt;br /&gt;{&lt;br /&gt;    /// &lt;summary&gt;&lt;br /&gt;    /// Utility Class for Object Arrays.&lt;br /&gt;    /// &lt;/summary&gt;&lt;br /&gt;    public class ObjectArray&lt;br /&gt;    {&lt;br /&gt;        private Object[] _objectArray;&lt;br /&gt; &lt;br /&gt;        public ObjectArray(Object[] objectArray)&lt;br /&gt;        {&lt;br /&gt;            this._objectArray = objectArray;&lt;br /&gt;        }&lt;br /&gt; &lt;br /&gt;        public DataSet ToDataSet()&lt;br /&gt;        {&lt;br /&gt;            DataSet ds = new DataSet();&lt;br /&gt; &lt;br /&gt;            XmlSerializer xmlSerializer =&lt;br /&gt;  new XmlSerializer(_objectArray.GetType());&lt;br /&gt;            StringWriter writer = new StringWriter();&lt;br /&gt;            xmlSerializer.Serialize(writer, _objectArray);&lt;br /&gt;            StringReader reader =&lt;br /&gt;  new StringReader(writer.ToString());&lt;br /&gt; &lt;br /&gt;            ds.ReadXml(reader);&lt;br /&gt;            return ds;&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;How to use the code:&lt;br /&gt;&lt;br /&gt;Person[] personList;&lt;br /&gt;&lt;br /&gt;personList = Course.GetPersonList();&lt;br /&gt;&lt;br /&gt;ObjectArray objectArray = new ObjectArray(personList);Create a DataSet and convert your ObjectArray to a DataSet using the method:&lt;br /&gt;&lt;br /&gt;DataSet ds = new DataSet();&lt;br /&gt;ds = objectArray.ToDataSet();&lt;br /&gt;&lt;br /&gt;Reference Taken From&lt;br /&gt;http://tom.gilki.org/programming/net/Utils/ObjectArrayDataSet/index.shtml&lt;br /&gt;&lt;br /&gt;This entry was posted on February 21, 2007 at 9:44 am and is filed under .NET 1.1.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8357313402585425466-4563424968591441029?l=www.jprfreelance.com%2Fblog%2Findex.htm'/&gt;&lt;/div&gt;</description><link>http://www.jprfreelance.com/blog/2008/10/convert-object-array-to-dataset.html</link><author>noreply@blogger.com (Webmaster)</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8357313402585425466.post-7340044598455769240</guid><pubDate>Thu, 11 Sep 2008 19:14:00 +0000</pubDate><atom:updated>2008-09-11T12:14:52.073-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>optimise</category><category domain='http://www.blogger.com/atom/ns#'>c#</category><category domain='http://www.blogger.com/atom/ns#'>webpage</category><category domain='http://www.blogger.com/atom/ns#'>save</category><title>Optimising Images for Web Using c#</title><description>Useful function to optimise images for web using c#&lt;br /&gt;&lt;br /&gt;public void OptimizeImage(string lcFilename, decimal widthRequired)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;System.Drawing.Image originalimg = System.Drawing.Image.FromFile(lcFilename);&lt;br /&gt;&lt;br /&gt;decimal _percentNeeded;&lt;br /&gt;&lt;br /&gt;_percentNeeded = Convert.ToDecimal(widthRequired) / originalimg.Width;&lt;br /&gt;&lt;br /&gt;Int32 lnWidth = Convert.ToInt32(widthRequired);&lt;br /&gt;&lt;br /&gt;Int32 lnHeight = Convert.ToInt32(originalimg.Height * _percentNeeded);&lt;br /&gt;&lt;br /&gt;System.Drawing.Bitmap bmpOut = null;&lt;br /&gt;&lt;br /&gt;System.Drawing.Bitmap loBMP = new System.Drawing.Bitmap(lcFilename);&lt;br /&gt;&lt;br /&gt;System.Drawing.Imaging.ImageFormat loFormat = loBMP.RawFormat;&lt;br /&gt;&lt;br /&gt;decimal lnRatio;&lt;br /&gt;&lt;br /&gt;int lnNewWidth = 0;&lt;br /&gt;&lt;br /&gt;int lnNewHeight = 0;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;if (loBMP.Width &gt; loBMP.Height)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;lnRatio = (decimal)lnWidth / loBMP.Width;&lt;br /&gt;&lt;br /&gt;lnNewWidth = lnWidth;&lt;br /&gt;&lt;br /&gt;decimal lnTemp = loBMP.Height * lnRatio;&lt;br /&gt;&lt;br /&gt;lnNewHeight = (int)lnTemp;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;lnRatio = (decimal)lnHeight / loBMP.Height;&lt;br /&gt;&lt;br /&gt;lnNewHeight = lnHeight;&lt;br /&gt;&lt;br /&gt;decimal lnTemp = loBMP.Width * lnRatio;&lt;br /&gt;&lt;br /&gt;lnNewWidth = (int)lnTemp;&lt;br /&gt;&lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;bmpOut = new System.Drawing.Bitmap(lnNewWidth, lnNewHeight);&lt;br /&gt;&lt;br /&gt;System.Drawing.Graphics g = System.Drawing.Graphics.FromImage(bmpOut);&lt;br /&gt;&lt;br /&gt;g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;&lt;br /&gt;&lt;br /&gt;g.FillRectangle(System.Drawing.Brushes.White, 0, 0, lnNewWidth, lnNewHeight);&lt;br /&gt;&lt;br /&gt;g.DrawImage(loBMP, 0, 0, lnNewWidth, lnNewHeight);&lt;br /&gt;&lt;br /&gt;string _tmpFile = System.Configuration.ConfigurationManager.AppSettings["ContentLocationRoot"] + "tmp.jpg";&lt;br /&gt;&lt;br /&gt;bmpOut.Save(_tmpFile, System.Drawing.Imaging.ImageFormat.Jpeg);&lt;br /&gt;&lt;br /&gt;loBMP.Dispose();&lt;br /&gt;originalimg.Dispose();&lt;br /&gt;&lt;br /&gt;System.IO.File.Delete(lcFilename);&lt;br /&gt;&lt;br /&gt;System.IO.File.Copy(_tmpFile, lcFilename);&lt;br /&gt;System.IO.File.Delete(_tmpFile);&lt;br /&gt;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8357313402585425466-7340044598455769240?l=www.jprfreelance.com%2Fblog%2Findex.htm'/&gt;&lt;/div&gt;</description><link>http://www.jprfreelance.com/blog/2008/09/optimising-images-for-web-using-c.html</link><author>noreply@blogger.com (Webmaster)</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8357313402585425466.post-1327521937218260040</guid><pubDate>Thu, 11 Sep 2008 15:10:00 +0000</pubDate><atom:updated>2008-09-11T12:15:27.752-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>explorer</category><category domain='http://www.blogger.com/atom/ns#'>asp.net</category><category domain='http://www.blogger.com/atom/ns#'>internet</category><category domain='http://www.blogger.com/atom/ns#'>display</category><category domain='http://www.blogger.com/atom/ns#'>cannot</category><category domain='http://www.blogger.com/atom/ns#'>webpage</category><title>"Internet Explorer cannot display the webpage" error caused by ASP.NET file upload control</title><description>I recently encountered a problem with ASP.NET whilst using a file upload control. Initial thoughts were that it was related to the AJAX extensions I was using, however after a lot of playing about, i found adding the following line to the web.config file resolved the problem,&lt;br /&gt;&lt;br /&gt;&lt;httpRuntime maxRequestLength="8000" /&gt;&lt;br /&gt;&lt;br /&gt;Basically the problem is caused by an ASP.NET limit of around 4MB for a file upload, the above setting tells ASP.NET to allow larger files to be attached / uploaded.&lt;br /&gt;&lt;br /&gt;Hope this helps someone.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8357313402585425466-1327521937218260040?l=www.jprfreelance.com%2Fblog%2Findex.htm'/&gt;&lt;/div&gt;</description><link>http://www.jprfreelance.com/blog/2008/09/internet-explorer-cannot-display_11.html</link><author>noreply@blogger.com (Webmaster)</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8357313402585425466.post-1184863815155559220</guid><pubDate>Thu, 11 Sep 2008 15:10:00 +0000</pubDate><atom:updated>2008-09-11T12:12:24.779-07:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>explorer</category><category domain='http://www.blogger.com/atom/ns#'>asp.net</category><category domain='http://www.blogger.com/atom/ns#'>internet</category><category domain='http://www.blogger.com/atom/ns#'>display</category><category domain='http://www.blogger.com/atom/ns#'>cannot</category><category domain='http://www.blogger.com/atom/ns#'>webpage</category><title>"Internet Explorer cannot display the webpage" error caused by ASP.NET file upload control</title><description>I recently encountered a problem with ASP.NET whilst using a file upload control. Initial thoughts were that it was related to the AJAX extensions I was using, however after a lot of playing about, i found adding the following line to the web.config file resolved the problem,&lt;br /&gt;&lt;br /&gt;&lt;httpRuntime maxRequestLength="8000" /&gt;&lt;br /&gt;&lt;br /&gt;Basically the problem is caused by an ASP.NET limit of around 4MB for a file upload, the above setting tells ASP.NET to allow larger files to be attached / uploaded.&lt;br /&gt;&lt;br /&gt;Hope this helps someone.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8357313402585425466-1184863815155559220?l=www.jprfreelance.com%2Fblog%2Findex.htm'/&gt;&lt;/div&gt;</description><link>http://www.jprfreelance.com/blog/2008/09/internet-explorer-cannot-display.html</link><author>noreply@blogger.com (Webmaster)</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8357313402585425466.post-3926737775422711452</guid><pubDate>Fri, 22 Aug 2008 12:41:00 +0000</pubDate><atom:updated>2008-08-22T05:43:31.967-07:00</atom:updated><title>SQL Country List</title><description>I was looking today to create a lookup table in SQL Server to hold a list of countries.&lt;br /&gt;&lt;br /&gt;The following SQL script will create a table in SQL Server and populate it with country values:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;CREATE TABLE [tblCountryLookup] (&lt;br /&gt;[country_id] [smallint] IDENTITY (1, 1) NOT NULL ,&lt;br /&gt;[country_desc] [varchar] (250) COLLATE Latin1_General_CI_AS NOT NULL ,&lt;br /&gt;[country_active] [bit] NOT NULL ,&lt;br /&gt;CONSTRAINT [PK_tblCountryLookup] PRIMARY KEY CLUSTERED&lt;br /&gt;(&lt;br /&gt;[country_id]&lt;br /&gt;) ON [PRIMARY]&lt;br /&gt;) ON [PRIMARY]&lt;br /&gt;GO&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Afghanistan',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Albania',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Algeria',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Andorra',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Angola',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Anguilla',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Antarctica',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Antigua and Barbuda',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Argentina',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Armenia',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Aruba',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Ascension Island',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Australia',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Austria',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Azerbaijan',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Bahamas',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Bahrain',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Bangladesh',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Barbados',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Belarus',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Belgium',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Belize',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Benin',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Bermuda',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Bhutan',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Bolivia',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Bophuthatswana',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Bosnia-Herzegovina',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Botswana',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Bouvet Island',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Brazil',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('British Indian Ocean',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('British Virgin Islands',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Brunei Darussalam',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Bulgaria',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Burkina Faso',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Burundi',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Cambodia',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Cameroon',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Canada',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Cape Verde Island',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Cayman Islands',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Central Africa',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Chad',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Channel Islands',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Chile',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('China, Peoples Republic',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Christmas Island',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Cocos (Keeling) Islands',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Colombia',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Comoros Islands',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Congo',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Cook Islands',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Costa Rica',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Croatia',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Cuba',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Cyprus',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Czech Republic',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Denmark',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Djibouti',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Dominica',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Dominican Republic',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Easter Island',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Ecuador',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Egypt',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('El Salvador',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('England',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Equatorial Guinea',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Estonia',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Ethiopia',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Falkland Islands',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Faeroe Islands',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Fiji',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Finland',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('France',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('French Guyana',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('French Polynesia',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Gabon',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Gambia',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Georgia Republic',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Germany',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Gibraltar',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Greece',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Greenland',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Grenada',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Guadeloupe (French)',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Guatemala',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Guernsey Island',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Guinea Bissau',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Guinea',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Guyana',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Haiti',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Heard and McDonald Isls',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Honduras',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Hong Kong',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Hungary',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Iceland',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('India',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Iran',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Iraq',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Ireland',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Isle of Man',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Israel',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Italy',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Ivory Coast',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Jamaica',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Japan',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Jersey Island',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Jordan',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Kazakhstan',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Kenya',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Kiribati',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Kuwait',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Laos',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Latvia',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Lebanon',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Lesotho',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Liberia',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Libya',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Liechtenstein',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Lithuania',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Luxembourg',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Macao',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Macedonia',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Madagascar',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Malawi',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Malaysia',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Maldives',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Mali',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Malta',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Martinique (French)',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Mauritania',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Mauritius',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Mayotte',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Mexico',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Micronesia',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Moldavia',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Monaco',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Mongolia',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Montenegro',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Montserrat',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Morocco',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Mozambique',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Myanmar',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Namibia',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Nauru',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Nepal',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Netherlands Antilles',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Netherlands',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('New Caledonia (French)',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('New Zealand',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Nicaragua',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Niger',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Niue',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Norfolk Island',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('North Korea',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Northern Ireland',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Norway',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Oman',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Pakistan',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Panama',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Papua New Guinea',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Paraguay',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Peru',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Philippines',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Pitcairn Island',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Poland',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Polynesia (French)',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Portugal',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Qatar',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Reunion Island',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Romania',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Russia',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Rwanda',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('S.Georgia Sandwich Isls',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Sao Tome, Principe',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('San Marino',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Saudi Arabia',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Scotland',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Senegal',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Serbia',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Seychelles',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Shetland',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Sierra Leone',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Singapore',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Slovak Republic',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Slovenia',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Solomon Islands',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Somalia',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('South Africa',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('South Korea',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Spain',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Sri Lanka',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('St. Helena',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('St. Lucia',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('St. Pierre Miquelon',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('St. Martins',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('St. Kitts Nevis Anguilla',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('St. Vincent Grenadines',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Sudan',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Suriname',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Svalbard Jan Mayen',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Swaziland',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Sweden',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Switzerland',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Syria',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Tajikistan',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Taiwan',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Tahiti',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Tanzania',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Thailand',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Togo',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Tokelau',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Tonga',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Trinidad and Tobago',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Tunisia',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Turkmenistan',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Turks and Caicos Isls',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Tuvalu',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Uganda',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Ukraine',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('United Arab Emirates',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('United States',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Uruguay',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Uzbekistan',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Vanuatu',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Vatican City State',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Venezuela',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Vietnam',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Virgin Islands (Brit)',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Wales',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Wallis Futuna Islands',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Western Sahara',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Western Samoa',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Yemen',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Yugoslavia',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Zaire',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Zambia',1);&lt;br /&gt;INSERT INTO tblCountryLookup(country_desc,country_active) VALUES ('Zimbabwe',1);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8357313402585425466-3926737775422711452?l=www.jprfreelance.com%2Fblog%2Findex.htm'/&gt;&lt;/div&gt;</description><link>http://www.jprfreelance.com/blog/2008/08/sql-country-list.html</link><author>noreply@blogger.com (Webmaster)</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8357313402585425466.post-8868488385493170267</guid><pubDate>Tue, 19 Aug 2008 14:25:00 +0000</pubDate><atom:updated>2008-08-19T07:27:41.272-07:00</atom:updated><title>Getting the URL path without the page filename in ASP.NET &amp; C#</title><description>I needed to get the URL path of the current page object in ASP.NET and c# today, but without the filename part - e.g. myfile.aspx.&lt;br /&gt;&lt;br /&gt;After a long hunt on the net re this, I found it was as simple as follows;&lt;br /&gt;&lt;br /&gt;string pagePath =  Page.TemplateSourceDirectory;&lt;br /&gt;&lt;br /&gt;Hopefully this post will save someone else a long search!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8357313402585425466-8868488385493170267?l=www.jprfreelance.com%2Fblog%2Findex.htm'/&gt;&lt;/div&gt;</description><link>http://www.jprfreelance.com/blog/2008/08/getting-url-path-without-page-filename.html</link><author>noreply@blogger.com (Webmaster)</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8357313402585425466.post-4899691623257074505</guid><pubDate>Tue, 19 Aug 2008 12:45:00 +0000</pubDate><atom:updated>2008-08-20T02:36:11.306-07:00</atom:updated><title>Stripping HTML Code / Tags in C#</title><description>&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;I needed a function today to take a string of HTML code and to return only the embedded text, i.e. to remove all html code.&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;As such I knocked up a simple function using regular expressions in C# - I have added this code below, it may be of use to someone.&lt;br /&gt;&lt;br /&gt;Please note: You will need to import the system.text.regularexpressions namespace for this to work.&lt;br /&gt;&lt;br /&gt;Here is the function:&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;private string stripHTML(string inputHTML)&lt;br /&gt;{&lt;br /&gt;inputHTML = inputHTML.Trim();&lt;br /&gt;string toReturn = Regex.Replace(inputHTML, @"&lt;(.\n)*?&gt;", string.Empty);&lt;br /&gt;return toReturn;&lt;br /&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8357313402585425466-4899691623257074505?l=www.jprfreelance.com%2Fblog%2Findex.htm'/&gt;&lt;/div&gt;</description><link>http://www.jprfreelance.com/blog/2008/08/stripping-html-code-tags-in-c.html</link><author>noreply@blogger.com (Webmaster)</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8357313402585425466.post-6700580268164562434</guid><pubDate>Fri, 15 Aug 2008 11:10:00 +0000</pubDate><atom:updated>2008-08-15T04:42:47.708-07:00</atom:updated><title>Welcome to my Web Design and Development Blog</title><description>&lt;a href="http://www.jprfreelance.com/blog/uploaded_images/web_design_logo-744494.jpg"&gt;&lt;/a&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-family:verdana;"&gt;Welcome to my new web design and development Blog. The purpose of this blog is to share with fellow web designers and developers my experiences whilst building and supporting web sites and web-based applications.&lt;br /&gt;&lt;br /&gt;I will also be sharing useful code snippets via this blog.&lt;br /&gt;&lt;br /&gt;Having worked with the internet for 12 years, I have seen many changes in the industry. I remember working with early versions of Dreamweaver and ASP v1.0 when it was first released by Microsoft and thinking it was cutting edge.&lt;br /&gt;&lt;br /&gt;Websites today have come along way, the advancement of technologies, ASP.NET, JAVA, PHP and AJAX to name just a few, gives web developers power to their arm to develop much more than just static, brochure websites.&lt;br /&gt;&lt;br /&gt;Of all of the websites I work on - either working direct for clients or on sub-contract work, almost all now require dynamic functionality such as shopping carts, content management systems, blogs or calculators. With all of this extra functionality coming on board, we are increasingly demanding more powerful servers, more bandwidth and general computing power. Search engine optimisation is also becoming more and more difficult with more businesses than ever competing for that first-page placement on search engines.&lt;br /&gt;&lt;br /&gt;What the future will hold for the internet is still to be seen, there is talk of &lt;strong&gt;&lt;a href="http://www.timesonline.co.uk/tol/news/uk/science/article3689881.ece" target="_blank"&gt;The Grid&lt;/a&gt;&lt;/strong&gt; as a possible replacement, we shall see!&lt;/span&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8357313402585425466-6700580268164562434?l=www.jprfreelance.com%2Fblog%2Findex.htm'/&gt;&lt;/div&gt;</description><link>http://www.jprfreelance.com/blog/2008/08/welcome-to-my-web-design-and.html</link><author>noreply@blogger.com (Webmaster)</author></item></channel></rss>