<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-9332777</id><updated>2011-04-21T17:19:29.609-07:00</updated><title type='text'>Garry's .Net Blog</title><subtitle type='html'>This blog is so I can rant and rave about anything .net. It is where I dump any knowledge I come across as I travel down the .net path.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://capgpilk.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://capgpilk.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>capgpilk</name><uri>http://www.blogger.com/profile/11552854697811430392</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>29</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9332777.post-650465780618395129</id><published>2008-02-26T02:11:00.001-08:00</published><updated>2008-02-26T02:11:07.136-08:00</updated><title type='text'>Blog moved</title><content type='html'>&lt;p&gt;This blog has moved over to the asp.net weblogs community.&lt;/p&gt; &lt;p&gt;I will be leaving this here for archival purposes, but I will not be updating it. My new blog can be &lt;a href="http://weblogs.asp.net/garrypilkington/default.aspx"&gt;found here&lt;/a&gt;.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9332777-650465780618395129?l=capgpilk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://capgpilk.blogspot.com/feeds/650465780618395129/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9332777&amp;postID=650465780618395129' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/650465780618395129'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/650465780618395129'/><link rel='alternate' type='text/html' href='http://capgpilk.blogspot.com/2008/02/blog-moved.html' title='Blog moved'/><author><name>capgpilk</name><uri>http://www.blogger.com/profile/11552854697811430392</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9332777.post-1604032586724722166</id><published>2008-01-15T07:55:00.001-08:00</published><updated>2008-01-15T08:00:13.237-08:00</updated><title type='text'>SubSonic quick brain dump: Part 1</title><content type='html'>&lt;p&gt;This post is just going to be a quick brain dump on SubSonic as I am in the mood. I am no way an expert at SubSonic, these code snippets are simply what I have implemented in a recent project to get the job done. There may be better ways to do the same thing.&lt;/p&gt; &lt;p&gt;In my last post I briefly described how to get started with SubSonic. So you have generated your classes for the DAL and now you want to get at that data. Well the project I have recently been working on has very simple requirements some of which I will cover here.&lt;/p&gt; &lt;p&gt;1. Simple binding to a GridView. You want to work with a simple collection of data. SubSonic creates these automatically for each of your tables within the db. This code snippet creates a data collection from the TelephoneList table, calls the Load method and finally binds it to a GridView called gvTelephoneList.&lt;/p&gt; &lt;p&gt;MyDAL.TblTelephoneListCollection telephoneList= new MyDAL.TblTelephoneListCollection();&lt;br&gt;telephoneList.Load();&lt;br&gt;gvTelephoneList.DataSource = telephoneList; gvTelephoneList.DataBind();  &lt;p&gt;&lt;/p&gt; &lt;p&gt;2. Adding a bit of a query to the mix.&lt;/p&gt; &lt;p&gt;TblTelephoneListCollection telephoneListPerson = new TblTelephoneListCollection()&lt;br&gt;.Where("Type", SubSonic.Comparison.Equals, "Person")&lt;br&gt;.OrderByAsc("Name");&lt;br&gt;telephoneListPerson.Load();&lt;br&gt;gvTelephoneListPerson.DataSource = telephoneListPerson ; gvTelephoneListPerson.DataBind();  &lt;p&gt;&lt;/p&gt; &lt;p&gt;3. Table fields as properties. Remember that each field within your database table is exposed as a property so you can iterate through the collection writing out the properties.&lt;/p&gt; &lt;p&gt;for (int i = 0; i &amp;lt; telephoneListPerson.Count; i++)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(telephoneListPerson[i].Name);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }  &lt;p&gt;4. Ok so I need a more complex query. Simply using what is called the Query Tool to define the query and pass that in to the FetchByQuery method. My table has fields of SubCategory and IsVisable and all I want are the TOP 5 Newsletters ordered by id DESC.&lt;/p&gt; &lt;p&gt;Query qryNewsletters = new Query(Tables.TblDocument);&lt;br&gt;qryNewsletters.QueryType = QueryType.Select;&lt;br&gt;qryNewsletters.AddWhere(TblDocument.Columns.SubCategory, "Newsletters");&lt;br&gt;qryNewsletters.AddWhere&lt;br&gt;(TblDocument.Columns.IsVisable, "1");&lt;br&gt;qryNewsletters.Top = "5";&lt;br&gt;qryNewsletters.ORDER_BY("id DESC");&lt;br&gt;dlLatestNewsletters.DataSource = TblDocument.FetchByQuery(qryNewsletters);&lt;br&gt;dlLatestNewsletters.DataBind();  &lt;p&gt;&lt;/p&gt; &lt;p&gt;That will do for now. I will cover simple updates and deletes in a later post.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9332777-1604032586724722166?l=capgpilk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://capgpilk.blogspot.com/feeds/1604032586724722166/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9332777&amp;postID=1604032586724722166' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/1604032586724722166'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/1604032586724722166'/><link rel='alternate' type='text/html' href='http://capgpilk.blogspot.com/2008/01/subsonic-quick-brain-dump-part-1.html' title='SubSonic quick brain dump: Part 1'/><author><name>capgpilk</name><uri>http://www.blogger.com/profile/11552854697811430392</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9332777.post-3550386376889875445</id><published>2007-12-31T04:09:00.001-08:00</published><updated>2007-12-31T04:14:11.335-08:00</updated><title type='text'>Sub Sub</title><content type='html'>&lt;p&gt;No this title does not refer to the band which then became Doves. No just recently I have been getting to grips with Subversion and Subsonic (I could have gone for Subtext on our latest project but went for BlogEngine.Net then we would have Sub Sub Sub)&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Subversion&lt;/strong&gt;&lt;br&gt;You may remember a post back in May when I started to use Source Safe 2005. Everything was working fine until one day it decided to rearrange my directory structure for a web application I was working on. I sorted it out and a while later it happened again. I decided to look around for an alternative to Source Safe and soon came across Subversion. My intention was to use Subversion for web applications while keeping all my other code in Source Safe for the time being. This was mainly because I really didn't want my code just sitting around outside any form of source control. Subversion just does what I want it to do; controlling my source without guessing what I want to do with it which is what Source Safe seemed to do. Setting up Subversion was a breeze, there is so much help on the web. My main sources where:-&lt;/p&gt; &lt;p&gt;&lt;a href="http://www.stanford.edu/~bsuter/subversion-setup-guide/" target="_blank"&gt;Step-by-Step instructions for running a Subversion repository under Windows&lt;/a&gt;&lt;/p&gt; &lt;p&gt;This got me up and running with Subversion, the Subversion service and TortoiseSVN. I wanted to integrate with VS2005 so I installed &lt;a href="http://ankhsvn.tigris.org/servlets/ProjectDocumentList?folderID=7315" target="_blank"&gt;AnkSVN&lt;/a&gt;. Everything was running swimmingly until I realised that the repository would be better on a different drive to where I put it (on the C drive stupidly, but this was to be a temp location until we get the final location upgraded to 2003 Server). So using &lt;a href="http://www.digitalmediaminute.com/article/2251/how-to-move-a-subversion-repository" target="_blank"&gt;this source&lt;/a&gt;, I successfully moved it. I have had it up and running now for about 4 months with no problems. Gradually I have slowly moved my source code over from SS2005 with an intention to ditch it in the new year.&lt;/p&gt; &lt;p&gt;Incase you need any more links for Subversion goodies, these are what I found to be really useful:-&lt;/p&gt; &lt;p&gt;&lt;a href="http://blogs.clearscreen.com/migs/archive/2005/01/21/824.aspx" target="_blank"&gt;Subversion Part 1 - Installing Subversion as your code repository for Windows users&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://www.codeproject.com/KB/architecture/Subversion_on_Windows.aspx" target="_blank"&gt;Subversion &amp;amp; TortoiseSVN: Installed and started on Windows 2003 server and local machines&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://showmedo.com/videos/series?name=bfNi2X3Xg" target="_blank"&gt;Software Carpentry - Version Control with Subversion&lt;/a&gt;&lt;/p&gt; &lt;p&gt;This last post contains links to video tutorials covering different aspects of Subversion.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Subsonic&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;The next Sub is Subsonic. An ORM which just works. I cannot believe how simple this was to set up. As this is something I will probably need in the future I will document the process here, who knows someone may find it useful.&lt;/p&gt; &lt;p&gt;1. Download it from &lt;a href="http://www.codeplex.com/subsonic/Release/ProjectReleases.aspx?ReleaseId=5177" target="_blank"&gt;CodePlex&lt;/a&gt; and run the exe.&lt;br&gt;&lt;br&gt;2. Once it has installed create a link to the command in Visual Studio by going to Tools&amp;gt;&amp;gt;External Tools&amp;gt;&amp;gt;Add&lt;/p&gt; &lt;p&gt;&lt;a href="http://lh6.google.com/capgpilk/R3jcB8oG_UI/AAAAAAAAACE/dr4NM-RdjMc/Tools%5B5%5D"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="409" alt="Tools" src="http://lh3.google.com/capgpilk/R3jcDMoG_VI/AAAAAAAAACM/vWF0pFfrNWs/Tools_thumb%5B3%5D" width="416" border="0"&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;This will generate the code for the DAL based on your settings in the web.config file. &lt;br&gt;&lt;br&gt;3. Speaking of which here is a sample of the important parts of my web.config&lt;/p&gt;&lt;pre&gt;&amp;lt;configSections&amp;gt;&lt;br&gt;&amp;lt;section name="SubSonicService" type="SubSonic.SubSonicSection, SubSonic" requirePermission="false" /&amp;gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;connectionStrings&amp;gt;&lt;br&gt;&amp;lt;add name="&lt;em&gt;connectionname&lt;/em&gt;" connectionString="Data Source=&lt;em&gt;servername&lt;/em&gt;; Database=&lt;em&gt;databasename&lt;/em&gt;; Integrated Security=true;" /&amp;gt;&lt;br&gt;&amp;lt;/connectionStrings&amp;gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;SubSonicService defaultProvider="&lt;em&gt;providername&lt;/em&gt;"&amp;gt;&lt;br&gt;&amp;lt;providers&amp;gt;&lt;br&gt;&amp;lt;clear/&amp;gt;&lt;br&gt;&amp;lt;add name="&lt;em&gt;providername&lt;/em&gt;" type="SubSonic.SqlDataProvider, SubSonic" connectionStringName="&lt;em&gt;connectionname&lt;/em&gt;" generatedNamespace="&lt;em&gt;yournamespace&lt;/em&gt;"/&amp;gt;&lt;br&gt;&amp;lt;/providers&amp;gt;&lt;br&gt;&amp;lt;/SubSonicService&amp;gt;&lt;br&gt;&amp;lt;/configuration&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;Just swap out connectionname, databasename, providername and yournamespace with your values.&lt;br&gt;&lt;br&gt;4. Now the fun bit. Run Tools&amp;gt;&amp;gt;SubSonic. This will automatically generate the code for your ORM classes in a directory called Generated within your VS project. That is all you need to get up and running. I will post some simple code examples in the new year. &lt;/p&gt;&lt;br /&gt;&lt;p&gt;Here are some links I found useful:-&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://geekswithblogs.net/scottkuhl/category/5768.aspx?Show=All" target="_blank"&gt;Getting started with SubSonic&lt;/a&gt;&lt;br&gt;&lt;a href="http://subsonicproject.com/view/for-web-sites---using-the-buildprovider.aspx" target="_blank"&gt;For Web Sites - Using the BuildProvider&lt;/a&gt;&lt;br&gt;&lt;a href="http://www.wekeroad.com/ss_setup2.html" target="_blank"&gt;Video on getting started with SubSonic&lt;/a&gt;&lt;br&gt;&lt;a href="http://blog.benhall.me.uk/2007/10/setting-up-subsonic.html" target="_blank"&gt;Setting up SubSonic&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Well enjoy the rest of the holiday and I will get back to blogging in the new year...erm well tomorrow then.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9332777-3550386376889875445?l=capgpilk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://capgpilk.blogspot.com/feeds/3550386376889875445/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9332777&amp;postID=3550386376889875445' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/3550386376889875445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/3550386376889875445'/><link rel='alternate' type='text/html' href='http://capgpilk.blogspot.com/2007/12/sub-sub_31.html' title='Sub Sub'/><author><name>capgpilk</name><uri>http://www.blogger.com/profile/11552854697811430392</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9332777.post-5337815213495499003</id><published>2007-10-11T04:08:00.001-07:00</published><updated>2007-10-11T04:08:32.495-07:00</updated><title type='text'>Am I Agile?</title><content type='html'>&lt;p&gt;There is a lot of discussion going around the blogosphere about the Agile methodology and ALT.Net. I was reading &lt;a href="http://devlicio.us/blogs/billy_mccafferty/archive/2007/10/09/conveying-agile-processes-in-agile-contracts.aspx" target="_blank"&gt;Billy McCafferty post titled 'Conveying Agile Processes Concisely to Clients'&lt;/a&gt; which gives a clear definition to clients (and a good introduction for me) about the Agile process and it dawned on me that I was more agile than I thought. Where I work we do not emphasise any methodology except get it done (gid??, giddy process??) and if a director wants it, get it done quick. As you can probably guess, this leaves no time to implement any TDD type of process and all testing is done at the end (although I would call this bug fixing). Some of the points mentioned in Bills post such as short iterations (they are always happy to see a working prototype) and prioritisation of features we are already doing. I am slowly trying to learn about agile and test first using NUnit, but it is slow going. I would get handed a small project and I think 'great, I can try out creating unit tests for this', alas I still find myself writing the code bypassing any unit tests then thinking 'oh I should of thrown in a test there...well it works'. Although I can retrospectively drop in tests as &lt;a href="http://devlicio.us/blogs/derik_whittaker/archive/2007/10/09/backing-in-unit-tests-into-an-existing-project.aspx" target="_blank"&gt;Derik Whittaker describes here&lt;/a&gt;. I don't want to be like that, I would like to test first and have the code covered, am I a bad developer? Well that brings me on to another thing, the ALT.Net conference in Texas. No I wasn't there, but I read a lot of the coverage from various blogs. &lt;a href="http://www.hanselman.com/blog/ScottGuMVCPresentationAndScottHaScreencastFromALTNETConference.aspx" target="_blank"&gt;Scott Hanselman mentioned&lt;/a&gt; that alt.net is a group that believe in: &lt;br&gt;&lt;/p&gt; &lt;p&gt;1) Continuous Learning&lt;br&gt;2) Being Open to Open Source Solutions&lt;br&gt;3) Challenging the Status Quo&lt;br&gt;4) Good Software Practices&lt;br&gt;5) DRY (Don't Repeat Yourself)&lt;br&gt;6) Common Sense when possible  &lt;p&gt;&amp;nbsp;  &lt;p&gt;And I  &lt;p&gt;1) All the time, I see myself as a continuous learner&lt;br&gt;2) I like using open source mainly because of the cost, if it cost me then I usually end up going without (I should emphasise that my latest place have been a bit more acceptable to the fact that a developer needs certain tools and they cost). But also I find they introduce new features faster.&lt;br&gt;3) Not much of a rebel, sorry&lt;br&gt;4) Again I am continuously learning about what I should be doing, &lt;a href="http://www.idesign.net/idesign/download/IDesign%20CSharp%20Coding%20Standard.zip" target="_blank"&gt;here is a good guide to coding practices in c#&lt;/a&gt;&lt;br&gt;5) Yep&lt;br&gt;6) I think we all strive for this  &lt;p&gt;So am I agile? Perhaps not, but I feel I am getting more agile every day.  &lt;p&gt;When I linked from bad developer above to the alt.net conference I wasn't implying they are bad developers, no the link was less sinister; becoming a better developer means continually learning about development techniques and alt.net implies continuous learning. That's all.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9332777-5337815213495499003?l=capgpilk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://capgpilk.blogspot.com/feeds/5337815213495499003/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9332777&amp;postID=5337815213495499003' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/5337815213495499003'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/5337815213495499003'/><link rel='alternate' type='text/html' href='http://capgpilk.blogspot.com/2007/10/am-i-agile.html' title='Am I Agile?'/><author><name>capgpilk</name><uri>http://www.blogger.com/profile/11552854697811430392</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9332777.post-4218884887658567594</id><published>2007-09-03T03:29:00.001-07:00</published><updated>2007-09-03T03:39:59.109-07:00</updated><title type='text'>Unit testing my web application</title><content type='html'>&lt;p&gt;As I have recently started a new web application (actually it is going to grow in to our Intranet) I have decided to develop it along an agile path using unit tests. It has been a bit of a struggle at first, but I now have a basic framework. Writing the actual tests was never a problem as I have used &lt;a href="http://www.nunit.org/" target="_blank"&gt;NUnit&lt;/a&gt; before on a couple of windows based projects, this was however the first time with a web application. The easiest way I have found is by creating a web application instead of a web site in VS2005. By creating a web application, dll's are created at build time which NUnit will run against. Now that is up and running I wanted to use mock objects to basically mock session variables. I highly recommend &lt;a href="http://ayende.com/projects/rhino-mocks.aspx" target="_blank"&gt;Rhino Mocks&lt;/a&gt; as a mocking framework. You cannot however mock the session as it is sealed. After Googling for a while I came across &lt;a href="http://haacked.com/archive/2007/06/19/unit-tests-web-code-without-a-web-server-using-httpsimulator.aspx" target="_blank"&gt;this post by Phil Haack&lt;/a&gt; which uses an HttpSimulator. I thought I was almost there, but there was a problem with a map path interface having restricted access due to its protection level. Reading the comments lower on this page is a simple solution to comment out any reference to ConfigMapPath. So finally I can now unit test my session variables. Sorry for the long story, but it may help someone (myself included when I totally forget about it on my next web application project).&lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;p&gt;On a side note I finally took the plunge and am now using Windows Live Writer to update this blog. It is still in beta, but if you want to give it a try, go to the &lt;a href="http://get.live.com/betas/writer_betas" target="_blank"&gt;URL here&lt;/a&gt;.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9332777-4218884887658567594?l=capgpilk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://capgpilk.blogspot.com/feeds/4218884887658567594/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9332777&amp;postID=4218884887658567594' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/4218884887658567594'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/4218884887658567594'/><link rel='alternate' type='text/html' href='http://capgpilk.blogspot.com/2007/09/unit-testing-my-web-application.html' title='Unit testing my web application'/><author><name>capgpilk</name><uri>http://www.blogger.com/profile/11552854697811430392</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9332777.post-4988728836174140769</id><published>2007-08-23T07:07:00.000-07:00</published><updated>2007-08-23T07:17:37.385-07:00</updated><title type='text'>SketchPath, Draco.net and more</title><content type='html'>For anybody who regulary deal with XML and XPath in particular may be interested to try out Phil Fearon's &lt;a href="http://pgfearo.googlepages.com/" target="_blank"&gt;SketchPath&lt;/a&gt;. It is a free utility which will easily analyse an xml document allowing you to examine the XPath query required to reach certain elements or attributes. I have only been playing arround with it for a very short time and I have come to the conclusion it could have saved me quite a lot of time on a recent project where I had to parse a large number of xml documents stripping out various bits n bobs. It is currently still in beta, but if this is anything to go by then the alpha release will be awesome.&lt;br /&gt;&lt;br /&gt;On another note, &lt;a href="http://devlicio.us/blogs/christopher_bennage/archive/2007/08/12/continuous-integration-with-draco-net.aspx" target="_blank"&gt;Christopher Bennage&lt;/a&gt; has an excelent entry on his blog about getting up and running with Draco.Net. For the uninitiated, Draco.net is a continous integration (CI) environment that reports to have minimal set up troubles. To put it simple CI is basiclly an automated method which will check out your code from your code store (Subversion or SourceSafe for example), run any unit tests and run a build script. This is an area I am no where near knowledgable about, but am intending to look into in the near future.&lt;br /&gt;&lt;br /&gt;For anybody getting in to WPF, there is a good &lt;a href="http://msdn2.microsoft.com/en-us/vbasic/bb736015.aspx" target="_blank"&gt;getting started tutorial over at msdn&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Michèle Leroux Bustamante has a good post over on &lt;a href="http://www.dasblonde.net/2007/08/14/SystemSetupForNET30AndNET35.aspx" target="_blank"&gt;dasBlonde&lt;/a&gt; about getting a system setup for&lt;br /&gt;.NET 3.0 and .NET 3.5 including links for downloads for VS2005.&lt;br /&gt;&lt;br /&gt;On a more personal note, has anybody been getting tired dry eyes while working away on the computer? Apparently if you are staring at the centre of the screen then you are putting your eyes at unnecessary strain. In &lt;a href="http://weblogs.sqlteam.com/mladenp/archive/2007/08/19/Tired-eyes-Youre-looking-at-the-wrong-part-of-your.aspx" target="_blank"&gt;this blog entry&lt;/a&gt; the author describes how you should look at the monitor. I don't know if this is scientifically correct but if I work on my laptop which is below eye level and look down at the screen I do not feel as optically tired (is that correct???) as I do if I am looking at my flat screen.&lt;br /&gt;&lt;br /&gt;Finally this blog entry from &lt;a href="http://blogs.msdn.com/saraford/archive/2007/08/20/did-you-know-how-to-format-the-document-the-selected-text-or-just-the-current-line.aspx" target="_blank"&gt;Sarah Ford&lt;/a&gt; has a quick shortcut key combination for VS2005 to help reformat code. It also works on web markup which is realy handy for me as I tend to have tags out of line and basically all over the place.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9332777-4988728836174140769?l=capgpilk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://capgpilk.blogspot.com/feeds/4988728836174140769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9332777&amp;postID=4988728836174140769' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/4988728836174140769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/4988728836174140769'/><link rel='alternate' type='text/html' href='http://capgpilk.blogspot.com/2007/08/sketchpath-draconet-and-more.html' title='SketchPath, Draco.net and more'/><author><name>capgpilk</name><uri>http://www.blogger.com/profile/11552854697811430392</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9332777.post-6767123361886662106</id><published>2007-08-09T08:38:00.000-07:00</published><updated>2007-08-09T09:14:13.270-07:00</updated><title type='text'>New 22 inch widescreen</title><content type='html'>Well my old 19 inch CRT finally blew yesterday and I am now the proud owner of an iiyama 22inch widescreen (well in the office anyway). Takes a bit of getting used to, but the simple fact that there is virtually no reflection gives it the thumbs up straight away. Using VS 2005 with it is a dream.&lt;br /&gt;&lt;br /&gt;The rewrite is going well. I have managed to implement code in different and better ways, learning new methods as I go along.&lt;br /&gt;&lt;br /&gt;Speaking of VS 2005 here is a link to a blog entry that can help speed it up:-&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.thekua.com/atwork/?p=29"&gt;Speeding up Visual Studio 2005&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Reading through the transcript for &lt;a href="http://www.hanselminutes.com/"&gt;Hanselminutes&lt;/a&gt; show 72 I came across a reference to a Justice Gray who is planning on reading and comprehending an IT related book each week. It beggers belief how he can find time to do that, but I guess it is all down to planning. I have a few books on my reading list, and I must admit it takes me quite a while to get through each one. Perhaps if I organise myself better I could wizz through these and try my best at keeping up to date with everything that is happening in the world of development.&lt;br /&gt;&lt;br /&gt;After reading a few posts &lt;a href="http://www.jpboodhoo.com/blog/CommentView,guid,4dcfa3ac-096b-4f39-ba2f-276c404c8bc7.aspx"&gt;regarding mouseless computing&lt;/a&gt; I am trying my best to use my mouse less and rely on keyboard shortcuts instead. For one thing it may prolong the onset of RSI, but also I have found it quicker and easier to use keys for some things rather than reach out for the mouse. I do keep failing, especially when it comes to web browsing.&lt;br /&gt;&lt;br /&gt;Happy programming&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9332777-6767123361886662106?l=capgpilk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://capgpilk.blogspot.com/feeds/6767123361886662106/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9332777&amp;postID=6767123361886662106' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/6767123361886662106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/6767123361886662106'/><link rel='alternate' type='text/html' href='http://capgpilk.blogspot.com/2007/08/new-22-inch-widescreen.html' title='New 22 inch widescreen'/><author><name>capgpilk</name><uri>http://www.blogger.com/profile/11552854697811430392</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9332777.post-7567838877835297232</id><published>2007-07-07T08:24:00.000-07:00</published><updated>2007-07-07T08:36:23.242-07:00</updated><title type='text'>MCSE underway</title><content type='html'>I haven't blogged for a while. That is because I have finally knuckled down to studying for the MCSE upgrade exams. I have found a wealth of info on the web, mainly webcasts, but a few podcasts as well. Ideal for listening to while down the gym. The Microsoft website has viewable webcasts for a range of subjects, I have mainly been concentrating on &lt;a href="http://www.microsoft.com/events/podcasts/default.mspx#MicrosoftActiveDirectory"&gt;Active  Directory, DNS&lt;/a&gt; and &lt;a href="http://www.microsoft.com/events/EventDetails.aspx?CMTYSvcSource=MSCOMMedia&amp;amp;Params=%7eCMTYDataSvcParams%5e%7earg+Name%3d%22ID%22+Value%3d%221032321978%22%2f%5e%7earg+Name%3d%22ProviderID%22+Value%3d%22A6B43178-497C-4225-BA42-DF595171F04C%22%2f%5e%7earg+Name%3d%22lang%22+Value%3d%22en%22%2f%5e%7earg+Name%3d%22cr%22+Value%3d%22US%22%2f%5e%7esParams%5e%7e%2fsParams%5e%7e%2fCMTYDataSvcParams%5e"&gt;Group Policy&lt;/a&gt;. One light hearted resource I have come accross was &lt;a href="http://www.itidiots.com"&gt;ITIdiots.com&lt;/a&gt;, they are covering the MCSE course structure so have webcasts for DNS, DHCP and Group Policy. With watching all these, reading the course books and running through the Transcender test prep exams, there is little time left for a life.&lt;br /&gt;&lt;br /&gt;The powers upon high have decided to make some pretty drastic changes to one of my applications where I work, so that will mean a major rewrite. The SQL upgrade has been well and truly ditched for now. Ho hum.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9332777-7567838877835297232?l=capgpilk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://capgpilk.blogspot.com/feeds/7567838877835297232/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9332777&amp;postID=7567838877835297232' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/7567838877835297232'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/7567838877835297232'/><link rel='alternate' type='text/html' href='http://capgpilk.blogspot.com/2007/07/mcse-underway.html' title='MCSE underway'/><author><name>capgpilk</name><uri>http://www.blogger.com/profile/11552854697811430392</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9332777.post-8196391845481720620</id><published>2007-05-16T05:01:00.000-07:00</published><updated>2007-05-16T05:23:58.538-07:00</updated><title type='text'>In between projects</title><content type='html'>I am in the relaxing?? period of being in between projects. The next project I will be working on is the migration of two of our SQL 2000 systems over to W2003 and SQL2005. That should be fun. Until that gets going I am brushing up on all the new technologies that are arround or soon coming out, such as LINQ, Entity Framework, VS Orcas and Longhorn (Windows Server 2008). I wonder when that's being released??&lt;br /&gt;&lt;br /&gt;There are a few other mini projects I will be working on to get my development practises up to scratch. I work in a small IT dept and as you can proberbly guess some things we just don't do (yet). I have already implemented Source Safe 2005 and that is working out realy good. We are soon to implement a full change request/bug tracking system. I have also started using fxCop to get all code to a certain standard. The department manager is also implementing full project management using PRINCE2 techniques, so that will hopefully also improve things.&lt;br /&gt;&lt;br /&gt;So like I said, relaxing times. Only 5 books on my current reading list:-&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.amazon.co.uk/Microsoft-Server-2005-Integration-Services/dp/0672327813/ref=pd_bbs_sr_1/202-2889849-6873435?ie=UTF8&amp;s=books&amp;qid=1179317898&amp;sr=8-1"&gt;Sams - Microsoft SQL Server 2005 Integration Services&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.amazon.com/Beginning-SQL-Server-2005-Developers/dp/1590595882"&gt;Apress - Beginning SQL Server 2005 for Developers From Novice to Professional&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.amazon.co.uk/Self-Paced-Training-Exams-70-292-70-296/dp/0735619719/ref=sr_1_1/202-2889849-6873435?ie=UTF8&amp;s=books&amp;qid=1179318038&amp;sr=1-1"&gt;MS Press - MCSA/MCSE Self-Paced Training Kit: Upgrading Your Certification to Microsoft Windows Server 2003&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.amazon.co.uk/Planning-Implementing-Maintaining-Windows-Server/dp/1932266577/ref=sr_1_1/202-2889849-6873435?ie=UTF8&amp;s=books&amp;qid=1179318082&amp;sr=1-1"&gt;Syngress - Planning, Implementing and Maintaining a Windows Server 2003 Environment for an MCSE Certified on Windows 2000&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.amazon.com/Hitchhikers-Guide-Visual-Studio-Server/dp/0321243625/ref=sr_1_1/105-1026928-3336414?ie=UTF8&amp;s=books&amp;qid=1179318150&amp;sr=1-1"&gt;Addison Wesley - Hitchhikers Guide to Visual Studio and SQL Server&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9332777-8196391845481720620?l=capgpilk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://capgpilk.blogspot.com/feeds/8196391845481720620/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9332777&amp;postID=8196391845481720620' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/8196391845481720620'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/8196391845481720620'/><link rel='alternate' type='text/html' href='http://capgpilk.blogspot.com/2007/05/in-between-projects.html' title='In between projects'/><author><name>capgpilk</name><uri>http://www.blogger.com/profile/11552854697811430392</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9332777.post-3853998207616830056</id><published>2007-05-10T01:34:00.000-07:00</published><updated>2007-05-10T01:47:05.047-07:00</updated><title type='text'>MCSE 2003 or MCTS or both</title><content type='html'>A few years back (edit:actually it was 5, where has the time gone?) I achieved my MCSE on Windows 2000. Since then I haven't realy been involved in installing and administering Windows systems (except SQL 2000 and the odd web server). I have been getting deeper and deeper in to .net. My latest position combines administration and development, so I have decided to upgrade my qualification to MCSE 2003 and then try and get down the MCTS path. I used to think that in IT you are either on the admin side of things or the development side and it is a common term to say 'a jack of all trades is master of none'. However I have found my MCSE extremely handy when developing to know the goings on in W2000, W2003 and SQL Server. As MS have announced the retirement of the upgrade exams to W2003 I am attempting this first hopefully by the end of the summer.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9332777-3853998207616830056?l=capgpilk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://capgpilk.blogspot.com/feeds/3853998207616830056/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9332777&amp;postID=3853998207616830056' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/3853998207616830056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/3853998207616830056'/><link rel='alternate' type='text/html' href='http://capgpilk.blogspot.com/2007/05/mcse-2003-or-mcts-or-both.html' title='MCSE 2003 or MCTS or both'/><author><name>capgpilk</name><uri>http://www.blogger.com/profile/11552854697811430392</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9332777.post-4689192900587061239</id><published>2007-05-10T01:30:00.000-07:00</published><updated>2007-05-10T01:33:47.512-07:00</updated><title type='text'>RegEx</title><content type='html'>Regular expressions:&lt;br /&gt;&lt;br /&gt;Here are a link for regular expressions, they may come in handy some time.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://immike.net/blog/2007/04/06/the-absolute-bare-minimum-every-programmer-should-know-about-regular-expressions/"&gt;The absolute bare minimum every programmer should know about regular expressions&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9332777-4689192900587061239?l=capgpilk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://capgpilk.blogspot.com/feeds/4689192900587061239/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9332777&amp;postID=4689192900587061239' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/4689192900587061239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/4689192900587061239'/><link rel='alternate' type='text/html' href='http://capgpilk.blogspot.com/2007/05/regex.html' title='RegEx'/><author><name>capgpilk</name><uri>http://www.blogger.com/profile/11552854697811430392</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9332777.post-7311699690340257194</id><published>2007-05-04T06:13:00.000-07:00</published><updated>2007-05-04T06:23:54.448-07:00</updated><title type='text'>LINQ Links</title><content type='html'>Just a quick post. I found these links earlier for &lt;a href="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2007/05/04/9298.aspx"&gt;LINQ Videos&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9332777-7311699690340257194?l=capgpilk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://capgpilk.blogspot.com/feeds/7311699690340257194/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9332777&amp;postID=7311699690340257194' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/7311699690340257194'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/7311699690340257194'/><link rel='alternate' type='text/html' href='http://capgpilk.blogspot.com/2007/05/linq-links.html' title='LINQ Links'/><author><name>capgpilk</name><uri>http://www.blogger.com/profile/11552854697811430392</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9332777.post-116470769774164785</id><published>2006-11-28T01:53:00.000-08:00</published><updated>2006-11-28T01:54:57.743-08:00</updated><title type='text'>Encrypt/Decrypt web.config</title><content type='html'>To encrypt the appSettings section of web.config&lt;br /&gt;&lt;br /&gt;aspnet_regiis -pe "appSettings" -site "YourWebsite" -app "/"&lt;br /&gt;&lt;br /&gt;and to decrypt&lt;br /&gt;&lt;br /&gt;aspnet_regiis -pd "appSettings" -site "YourWebsite" -app "/"&lt;br /&gt;&lt;br /&gt;You can encrypt any portion of the web.config file.&lt;br /&gt;&lt;br /&gt;Simple&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9332777-116470769774164785?l=capgpilk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://capgpilk.blogspot.com/feeds/116470769774164785/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9332777&amp;postID=116470769774164785' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/116470769774164785'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/116470769774164785'/><link rel='alternate' type='text/html' href='http://capgpilk.blogspot.com/2006/11/encryptdecrypt-webconfig.html' title='Encrypt/Decrypt web.config'/><author><name>capgpilk</name><uri>http://www.blogger.com/profile/11552854697811430392</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9332777.post-116470740727349868</id><published>2006-11-28T01:45:00.000-08:00</published><updated>2006-11-28T01:56:26.816-08:00</updated><title type='text'>Tag Cloud</title><content type='html'>Scott Mitchell has an &lt;a href="http://aspnet.4guysfromrolla.com/articles/102506-1.aspx"  target="_blank"&gt;article&lt;/a&gt; over on the &lt;a href="http://aspnet.4guysfromrolla.com" target="_blank"&gt;4GuysFromRolla&lt;/a&gt; site about creating a tag cloud, I have seen these on several sites such as &lt;a href="http://weblogs.asp.net" target="_blank"&gt;weblogs.asp.net&lt;/a&gt;. I never new they where called tag clouds so that is something I have leant already.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9332777-116470740727349868?l=capgpilk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://capgpilk.blogspot.com/feeds/116470740727349868/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9332777&amp;postID=116470740727349868' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/116470740727349868'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/116470740727349868'/><link rel='alternate' type='text/html' href='http://capgpilk.blogspot.com/2006/11/tag-cloud.html' title='Tag Cloud'/><author><name>capgpilk</name><uri>http://www.blogger.com/profile/11552854697811430392</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9332777.post-114814901381649885</id><published>2006-05-20T11:12:00.000-07:00</published><updated>2006-05-20T11:16:53.836-07:00</updated><title type='text'>Changing default browser in VS 2005</title><content type='html'>If you want to change the default browser when developing web applications with Visual Studio 2005, then simply right click the website in Solution Explorer and choose the Browse with... option. Choose what browser you want, if it isn't listed there click on the Add button and browse for the .exe. You can then set this new browser as the default.&lt;br /&gt;&lt;br /&gt;Thats it for now tara.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9332777-114814901381649885?l=capgpilk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://capgpilk.blogspot.com/feeds/114814901381649885/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9332777&amp;postID=114814901381649885' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/114814901381649885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/114814901381649885'/><link rel='alternate' type='text/html' href='http://capgpilk.blogspot.com/2006/05/changing-default-browser-in-vs-2005.html' title='Changing default browser in VS 2005'/><author><name>capgpilk</name><uri>http://www.blogger.com/profile/11552854697811430392</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9332777.post-114581612249731183</id><published>2006-04-23T11:14:00.000-07:00</published><updated>2006-04-23T11:30:31.423-07:00</updated><title type='text'>Problem with Master Pages in ASP.Net 2.0</title><content type='html'>I have come accross a major problem in master pages in the new asp.net 2.0. Here is a section of my code.&lt;br /&gt;&lt;br /&gt;    &lt;span style="color: rgb(0, 0, 153);"&gt;Dim &lt;/span&gt;myMaster &lt;span style="color: rgb(0, 0, 153);"&gt;As MasterPage&lt;/span&gt; = &lt;span style="color: rgb(0, 0, 153);"&gt;Page.Master&lt;/span&gt;&lt;br /&gt;    &lt;span style="color: rgb(0, 0, 153);"&gt;Dim &lt;/span&gt;myControl &lt;span style="color: rgb(0, 0, 153);"&gt;As Control&lt;/span&gt; = &lt;span style="color: rgb(0, 0, 153);"&gt;myMaster.FindControl&lt;/span&gt;(&lt;span style="color: rgb(153, 51, 0);"&gt;"ReportMenu"&lt;/span&gt;)&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;     Dim&lt;/span&gt; myControlType &lt;span style="color: rgb(0, 0, 153);"&gt;As Type&lt;/span&gt; = &lt;span style="color: rgb(0, 0, 153);"&gt;myControl.GetType&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;     Dim&lt;/span&gt; mtype &lt;span style="color: rgb(0, 0, 153);"&gt;As Type&lt;/span&gt; = &lt;span style="color: rgb(0, 0, 153);"&gt;myControl.GetType&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;     Dim&lt;/span&gt; minfo &lt;span style="color: rgb(0, 0, 153);"&gt;As MethodInfo&lt;/span&gt; = &lt;span style="color: rgb(0, 0, 153);"&gt;mtype.GetMethod&lt;/span&gt;(&lt;span style="color: rgb(153, 51, 0);"&gt;"Populate"&lt;/span&gt;)&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;     Dim&lt;/span&gt; myparamarray() &lt;span style="color: rgb(0, 0, 153);"&gt;As Object&lt;/span&gt; = {myArray}&lt;br /&gt;    minfo.Invoke(myControl, myparamarray)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This code simply locates a control in my web page. This page happens to belong to a master page, so while searching for the control it has to move down through the structure - Master - Page - Control. When the control 'ReportMenu' is located, it uses reflection to invoke the Populate method in that control. Working in the VS 2005 environment this all works fine. However moving over to a pre-deployment server this error occurs.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Unable to cast object of type 'ASP.masterreporting_master' to type 'MasterPage'.&lt;br /&gt;&lt;br /&gt;The culprit line is.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Dim &lt;/span&gt;myMaster &lt;span style="color: rgb(0, 0, 153);"&gt;As MasterPage&lt;/span&gt; = &lt;span style="color: rgb(0, 0, 153);"&gt;Page.Master&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;After a quick search online I came accross this link.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://visualbasic.ittoolbox.com/blogs/featuredentry.asp?i=7878"&gt;http://visualbasic.ittoolbox.com/blogs/featuredentry.asp?i=7878&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The web.config file has an element&lt;br /&gt;&lt;br /&gt;&amp;lt;compilation debug="true" strict="false" explicit="true"&gt;&lt;br /&gt;&lt;br /&gt;By default, batch compilation is set to true, so add the attribute batch="false" to this element. There is apparently a fix for this issue according to Scott Guthrie in the post mentioned above.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9332777-114581612249731183?l=capgpilk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://capgpilk.blogspot.com/feeds/114581612249731183/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9332777&amp;postID=114581612249731183' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/114581612249731183'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/114581612249731183'/><link rel='alternate' type='text/html' href='http://capgpilk.blogspot.com/2006/04/problem-with-master-pages-in-aspnet-20.html' title='Problem with Master Pages in ASP.Net 2.0'/><author><name>capgpilk</name><uri>http://www.blogger.com/profile/11552854697811430392</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9332777.post-114072331843727756</id><published>2006-02-23T11:29:00.000-08:00</published><updated>2006-02-23T11:35:18.456-08:00</updated><title type='text'>Great new job</title><content type='html'>Well I am settling in to my new job. Where I now work they have an MSDN subscription, so I have got access to lots of new MS goodies.&lt;br /&gt;&lt;br /&gt;My main job is software development using vb.net, accessing a number of back end SQL Servers. I have just finished a project that ties in to an in house system and transfers data to and from GPRS handhelds. Pretty cool stuff. I have used and re-used lots of the same code I wrote in my previous position, some of it I have posted on &lt;a href="http://www.thedotnetdiary.co.uk"&gt;thedotnetdiary&lt;/a&gt;. There is so much I need to update on that site. When I do I will blog about it here.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9332777-114072331843727756?l=capgpilk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://capgpilk.blogspot.com/feeds/114072331843727756/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9332777&amp;postID=114072331843727756' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/114072331843727756'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/114072331843727756'/><link rel='alternate' type='text/html' href='http://capgpilk.blogspot.com/2006/02/great-new-job.html' title='Great new job'/><author><name>capgpilk</name><uri>http://www.blogger.com/profile/11552854697811430392</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9332777.post-113260751125468584</id><published>2005-11-21T13:04:00.000-08:00</published><updated>2005-11-21T13:16:50.013-08:00</updated><title type='text'>DateFormat amongst other things</title><content type='html'>I have uploaded a simple DateFormat control to thedotnetdiary website. All it really does is makes dates look nicer. For example if you have a date such as 01 September 2001, then it will format it as 1&lt;sup&gt;st&lt;/sup&gt; September 2001. Simple as that. It is something I implement on a few projects I have been involved with and have finally written the control. The &lt;a href="http://www.thedotnetdiary.co.uk/Files/DateFormat/FormatDate.zip"&gt;zip file can be found here&lt;/a&gt;. To implement it using c#, do the following.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;using&lt;/span&gt; &lt;/span&gt;DNDDateFormat;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;///&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;///&lt;/span&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;the rest of your aspx page code&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;///&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;DNDDateFormat.FormatDate myDate2 = &lt;span style="color: rgb(51, 51, 255);"&gt;new&lt;/span&gt; DNDDateFormat.FormatDate();&lt;br /&gt;Response.Write(myDate2.SortDate(DateTime.Now));&lt;br /&gt;&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;&lt;br /&gt;Its as simple as that.&lt;br /&gt;&lt;br /&gt;I have now secured a new job doing more vb.net and SQL development over web development (although that will be a project in itself at some point). So I am now spending most of my time documenting my systems so somebody else can come in and maintain them. Once I settle in to my new job, I will post more details of what I am getting up to.&lt;br /&gt;&lt;br /&gt;I have been looking in to the new VS2005, so far I am very impressed, I especially like the code snippets utility and will definetly be using that to a great extent.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9332777-113260751125468584?l=capgpilk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://capgpilk.blogspot.com/feeds/113260751125468584/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9332777&amp;postID=113260751125468584' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/113260751125468584'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/113260751125468584'/><link rel='alternate' type='text/html' href='http://capgpilk.blogspot.com/2005/11/dateformat-amongst-other-things.html' title='DateFormat amongst other things'/><author><name>capgpilk</name><uri>http://www.blogger.com/profile/11552854697811430392</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9332777.post-112912075370113938</id><published>2005-10-12T05:32:00.000-07:00</published><updated>2005-10-12T05:47:05.256-07:00</updated><title type='text'>File upload max size</title><content type='html'>Have you ever developed a file upload tool? Well if you have, you will proberbly come accross a limit in the size of file you can upload. This limit can be configured in two places, the machine.config or web.config.&lt;br /&gt;&lt;br /&gt;In machine.config, change the maxRequestLength attribute of the &amp;lt;httpRuntime&amp;gt; section. By default it is around 4Meg. The value is in kilobytes.&lt;br /&gt;&lt;br /&gt;Alternativly if you have an admin section and you want a different limit to upload for admins, change the web.config file within the admin directory (you do have an admin directory don't you?)&lt;br /&gt;&lt;br /&gt;Again it is the maxRequestLength attribute of &amp;lt;httpRuntime&amp;gt; and needs to be within the &amp;lt;system.web&amp;gt; section.&lt;br /&gt;&lt;br /&gt;I hope this helps someone.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9332777-112912075370113938?l=capgpilk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://capgpilk.blogspot.com/feeds/112912075370113938/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9332777&amp;postID=112912075370113938' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/112912075370113938'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/112912075370113938'/><link rel='alternate' type='text/html' href='http://capgpilk.blogspot.com/2005/10/file-upload-max-size.html' title='File upload max size'/><author><name>capgpilk</name><uri>http://www.blogger.com/profile/11552854697811430392</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9332777.post-112320053464934027</id><published>2005-08-04T17:02:00.000-07:00</published><updated>2005-08-04T17:08:54.656-07:00</updated><title type='text'>Editing HTML on a .net web page</title><content type='html'>Recently I have been working on a project that requires editing of HTML through a content management system. Initially I used a component call EasyWebEdit, but as more and more people are switching to Firefox I needed a component that supported it. I chose a component called FCKEditor. I have just &lt;a href="http://www.thedotnetdiary.co.uk/default.aspx?id=77"&gt;published an article &lt;/a&gt;on &lt;a href="http://www.thedotnetdiary.co.uk/Default.aspx?id=19"&gt;The DotNetDiary &lt;/a&gt;quickly explaining what you need to do to get it up and running.&lt;br /&gt;&lt;br /&gt;I am also working on a couple of other articles for my site, so stick arround there may be something of interest to you.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9332777-112320053464934027?l=capgpilk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://capgpilk.blogspot.com/feeds/112320053464934027/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9332777&amp;postID=112320053464934027' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/112320053464934027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/112320053464934027'/><link rel='alternate' type='text/html' href='http://capgpilk.blogspot.com/2005/08/editing-html-on-net-web-page.html' title='Editing HTML on a .net web page'/><author><name>capgpilk</name><uri>http://www.blogger.com/profile/11552854697811430392</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9332777.post-111580037751706811</id><published>2005-05-11T01:26:00.000-07:00</published><updated>2005-05-11T01:32:57.526-07:00</updated><title type='text'>Workgroup Diary Application...cool!!!</title><content type='html'>I have been working on a cool app just recently. Basically it reads information from Outlook, calls a webservice on our server and dumps the data in to the SQL Server back end. Then there is a calendar application which then displays the details in a neat fasion. It is the first real experiment I have done with web services and to be honest I am very pleased with it. I am still at the testing phase, but will hopefully post some code here soon. The calendar web application uses a cool control developed by Mike Ellison and can be found over at &lt;a href="http://www.codeproject.com/aspnet/MellDataCalendar.asp"&gt;Code Project&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Still working on my DotNetDiary site, and to be honest, I am finding it difficult to find the time to do it. I am going to look in to those Microsoft starter kits to see if they are any help. I will report back any findings.&lt;br /&gt;&lt;br /&gt;One of the projects I will be working on soon is a Virtual Learning Environment which runs on asp.net. I am not intending to build one from scratch, but perhaps implement a third party tool. Hmmm!&lt;br /&gt;&lt;br /&gt;I am also working arround a problem I have with the CMS for my site at work. It uses a cool component called &lt;a href="http://www.easywebedit.net"&gt;EasyWebEdit&lt;/a&gt;. However as I am now using Firefox as my browser, it doesn't render correctly. I cannot use IE as for some reason no matter what I do I cannot get it to access the Internet. Anyway to cut a long story short, I will be looking in to word processor type web editors and compare them to a bespoke version.&lt;br /&gt;&lt;br /&gt;I am off on my Jollies next week, so I will not be blogging for a while. Not that I regularly do anyway.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9332777-111580037751706811?l=capgpilk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://capgpilk.blogspot.com/feeds/111580037751706811/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9332777&amp;postID=111580037751706811' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/111580037751706811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/111580037751706811'/><link rel='alternate' type='text/html' href='http://capgpilk.blogspot.com/2005/05/workgroup-diary-applicationcool.html' title='Workgroup Diary Application...cool!!!'/><author><name>capgpilk</name><uri>http://www.blogger.com/profile/11552854697811430392</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9332777.post-110977660745676380</id><published>2005-03-02T06:58:00.000-08:00</published><updated>2005-03-02T07:21:54.190-08:00</updated><title type='text'>Slowwwwww website</title><content type='html'>Firstly I would like to say congrats to the &lt;a href="http://www.dotnetrocks.com/" target="_blank"&gt;DotNet Rocks&lt;/a&gt; team on reaching their 100th show. Yeah I know I was a couple of weeks ago, but I have only just got arround to listening to it. Very funny clips from various .net people such as Don Box, Dino Esposito and others.&lt;br /&gt;&lt;br /&gt;Have you ever had a web site up and running only to have it be slow on the first request??? Well as you probably know, first request can be slower due to the .net compiler doing its' job. I run a site which seems to have a slow response after a while from the first visit. I don't know the complexities of the processes going on, but I have tried cacheing. Well anyway I have written this small console app which gets called every now and then from the standard Windows Scheduler. It simply reads a text file storing URLs' and requests them.&lt;br /&gt;&lt;br /&gt;This is the code.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Imports System&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Imports System.IO&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Imports System.Net&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Imports System.Text&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Module Module1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;  Sub Main()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;      Dim objReaderToCount As New StreamReader("URLFile.txt")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;      Dim objReader As New StreamReader("URLFile.txt")&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;      Dim p As Integer&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;      Dim strCount As String&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;      p = 0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;      While objReaderToCount.Peek() &gt; -1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;          strCount = objReaderToCount.ReadLine&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;          p = p + 1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;      End While&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;      objReaderToCount.Close()&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;      Dim arrURL(p) As String&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;      Dim I As Integer&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;      Dim strReadLine As String&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;      While objReader.Peek() &gt; -1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;          For I = 1 To p&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;              strReadLine = objReader.ReadLine&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;              Console.WriteLine(strReadLine)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;              arrURL(I) = strReadLine&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;          Next&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;      End While&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;      objReader.Close()&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;      Dim intI As Integer&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;      For intI = 1 To p&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;          Dim Request(intI) As HttpWebRequest&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;          Try&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;              Request(intI) = WebRequest.Create(arrURL(intI))&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;              Dim Response(intI) As HttpWebResponse&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;              Response(intI) = Request(intI).GetResponse()&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;              Dim resStream(intI) As Stream&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;              resStream(intI) = Response(intI).GetResponseStream()&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;              Console.WriteLine("Web Request..." + arrURL(intI))&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;          Catch ex As Exception&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;              Console.WriteLine("An error occurred:")&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;          End Try&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;      Next intI&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;  End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;End Module&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;For this to work, you need a file called URLFile.txt in the same directory to read from.&lt;br /&gt;&lt;br /&gt;Sorry for the lack of comments, bad habit I know. Well basically it reads each line from URLFile.txt does a web request using WebRequest.Create() and if it gets a response, writes it out to the console. The Try...Catch section handles any exceptions such as bad URL's.&lt;br /&gt;&lt;br /&gt;You can compile this using the vbc like this:-&lt;br /&gt;&lt;br /&gt;vbc /t:library /r:System.dll WebRequestAuto.exe&lt;br /&gt;&lt;br /&gt;When I finally get my web site up and running, I will probs repost this code with the resulting .exe (with comments perhaps)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9332777-110977660745676380?l=capgpilk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://capgpilk.blogspot.com/feeds/110977660745676380/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9332777&amp;postID=110977660745676380' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/110977660745676380'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/110977660745676380'/><link rel='alternate' type='text/html' href='http://capgpilk.blogspot.com/2005/03/slowwwwww-website.html' title='Slowwwwww website'/><author><name>capgpilk</name><uri>http://www.blogger.com/profile/11552854697811430392</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9332777.post-110873317506834914</id><published>2005-02-18T05:14:00.000-08:00</published><updated>2005-02-18T05:26:15.070-08:00</updated><title type='text'>Where we are heading!!!</title><content type='html'>There is a good article at ITArchitect describing the next stages on the .net journey. Find it here at&lt;a href="http://www.itarchitect.co.uk/articles/display.asp?id=108" target="_blank"&gt; http://www.itarchitect.co.uk/articles/display.asp?id=108&lt;/a&gt;.  The final outcome (???) is Windows Longhorn via .net V2.0, Avalon, Indigo and of course Whidbey (does anybody at ms get payed to think these names up?). Must admit, can't wait to get my grubby hands on VS 2005. I have been playing arround with Visual Web Dev 2005 Express, it's pretty cool, but at the moment I am of course only using 1.1 in deployment projects.&lt;br /&gt;&lt;br /&gt;On another front, I have been using Gemini bug tracking tool to keep track of all those pesky little blighters that can hamper development. Since installing it, I have already started decreasing my bug-list. It can be downloaded from &lt;a href="http://www.countersoft.com" target="_blank"&gt;http://www.countersoft.com&lt;/a&gt;. For a one person liscence, it is free, yahoooo!!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9332777-110873317506834914?l=capgpilk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://capgpilk.blogspot.com/feeds/110873317506834914/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9332777&amp;postID=110873317506834914' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/110873317506834914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/110873317506834914'/><link rel='alternate' type='text/html' href='http://capgpilk.blogspot.com/2005/02/where-we-are-heading.html' title='Where we are heading!!!'/><author><name>capgpilk</name><uri>http://www.blogger.com/profile/11552854697811430392</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9332777.post-110796266667225940</id><published>2005-02-09T07:17:00.000-08:00</published><updated>2005-02-09T07:24:26.746-08:00</updated><title type='text'>Phew another mini project complete</title><content type='html'>&lt;div style="text-align: justify;"&gt;I have just finished work on another website for a conference we are organising. It's only a small site, but sometimes even the smallest sites can eat up your time. I am hoping to get cracking on writing the new dotnetdiary site like right now. I have all the tutorials from the pre-hacked site, so at least I have something to build on. I have a couple of downloads to add aswell which some of you may be interested in.&lt;br /&gt;&lt;br /&gt;So MS have launched a new search tool. I tried it the other day by putting my name in and seeing what was out there, well it turned up an online course in Astrophysics which I created some years ago for my BSc.&lt;br /&gt;&lt;br /&gt;I am currently doing a Masters in Computing and was thinking of researching search methods for the web. Early days, but I am starting to gather info already.&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/9332777-110796266667225940?l=capgpilk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://capgpilk.blogspot.com/feeds/110796266667225940/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9332777&amp;postID=110796266667225940' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/110796266667225940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/110796266667225940'/><link rel='alternate' type='text/html' href='http://capgpilk.blogspot.com/2005/02/phew-another-mini-project-complete.html' title='Phew another mini project complete'/><author><name>capgpilk</name><uri>http://www.blogger.com/profile/11552854697811430392</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9332777.post-110604379376079453</id><published>2005-01-18T02:12:00.000-08:00</published><updated>2005-01-18T02:23:13.760-08:00</updated><title type='text'>I know, I know...</title><content type='html'>Yes it has been a while since my last blog, but you know what its like. Working on a lot of things both in work and out at the moment. It's not long since I moved house, so I am busy working on that getting it up to scratch. I have had to postpone development on the dotnetdiary site for a while. In work I am still working on adding metadata to resources stored in SQL Server. It is a bit of a nightmare because I have to extract resources from many places add the meta data using RDNLTSN Application Profile and then combine the data in to SQL Server. I then have to pump out OAI compliant XML to the web. I am also writing a piece on MathML for one of our publications, so I am busy researching that, as well as attending college ( I am finally doing a Masters in Computing). Oh what else, oh yeah a couple of book reviews. And eating, drinking and basically having a life.&lt;br /&gt;&lt;br /&gt;Sorry for going on so much. I realised I haven't exactly explained what it is I do. Basically I am an Astrophysicist working as a web developer/programmer for a University physical sciences department whose main technologies are .Net. I get involved with asp.net, vb.net, SQL Server, Windows 2003 Server, XML and some other technologies.&lt;br /&gt;&lt;br /&gt;The site can be accessed here:- &lt;a href="http://www.physsci.heacademy.ac.uk"&gt;www.physsci.heacademy.ac.uk&lt;/a&gt;&lt;br /&gt;&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/9332777-110604379376079453?l=capgpilk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://capgpilk.blogspot.com/feeds/110604379376079453/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9332777&amp;postID=110604379376079453' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/110604379376079453'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/110604379376079453'/><link rel='alternate' type='text/html' href='http://capgpilk.blogspot.com/2005/01/i-know-i-know.html' title='I know, I know...'/><author><name>capgpilk</name><uri>http://www.blogger.com/profile/11552854697811430392</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9332777.post-110261027516749699</id><published>2004-12-09T08:27:00.000-08:00</published><updated>2004-12-09T08:37:55.166-08:00</updated><title type='text'>Visual Studio Web Developer</title><content type='html'>Just a quick one here. As I am re-writing &lt;a href="http://www.thedotnetdiary.co.uk" target="_blank"&gt;thedotnetdiary.co.uk&lt;/a&gt; I have opted to use the beta of Visual Web Developer 2005 Express Edition. My first impression has to be a big thumbs up. MS have judged the area spot on. It lays somewhere between Web Matrix and the full Visual Studio. It uses .net v2.0, so you have to make sure that you do not use anything 1.1 cannot handle when going in to production. One thing I realy like is you have a choice if you wish to use code-behind or not. The Toolbox sweeps in and out like VS and you can pin it down. That is one area I thought Web Matrix lost out on. Oh and there is Intellisense and autocomplete. Go take a look. The URL for more info is &lt;a href="http://lab.msdn.microsoft.com/express/" target="_blank"&gt;http://lab.msdn.microsoft.com/express/&lt;/a&gt;.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9332777-110261027516749699?l=capgpilk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://capgpilk.blogspot.com/feeds/110261027516749699/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9332777&amp;postID=110261027516749699' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/110261027516749699'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/110261027516749699'/><link rel='alternate' type='text/html' href='http://capgpilk.blogspot.com/2004/12/visual-studio-web-developer.html' title='Visual Studio Web Developer'/><author><name>capgpilk</name><uri>http://www.blogger.com/profile/11552854697811430392</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9332777.post-110182782953085632</id><published>2004-11-30T07:09:00.000-08:00</published><updated>2004-11-30T07:17:09.530-08:00</updated><title type='text'>Lycos/Codezone</title><content type='html'>Two things to report today. Firstly congrats to Lycos for releasing their anti-spam screeansaver. If you don't know anything about it &lt;a href="http://www.lycos.co.uk"&gt;go here for a look&lt;/a&gt;. It's about time someone tried taking on the spammers.&lt;br /&gt;&lt;br /&gt;Secondly, I just stumbled across a UK project called &lt;a href="http://www.codezone.org.uk"&gt;Codezone&lt;/a&gt;. It's a MS backed project, don't know too much about it, but it lists different resources about .net and is UK based (albeit based on a US project). Go take a look. I will certainly be posting some stuff there. Doug Seven heads the US version, so it has a dotnetJunkie at its helm which has to be good news.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9332777-110182782953085632?l=capgpilk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://capgpilk.blogspot.com/feeds/110182782953085632/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9332777&amp;postID=110182782953085632' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/110182782953085632'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/110182782953085632'/><link rel='alternate' type='text/html' href='http://capgpilk.blogspot.com/2004/11/lycoscodezone.html' title='Lycos/Codezone'/><author><name>capgpilk</name><uri>http://www.blogger.com/profile/11552854697811430392</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9332777.post-110147002450901855</id><published>2004-11-26T03:48:00.000-08:00</published><updated>2004-11-26T03:53:44.510-08:00</updated><title type='text'>Events</title><content type='html'>As I am researching content for &lt;a href="http://www.thedotnetdiary.co.uk"&gt;www.thedotnetdiary.co.uk&lt;/a&gt; I have come across Devweek 2005 which is on the 21st-25 Feb 2005. I would love to go to something like that, but with a price tag of arround £1000 there is no chance I could get my dept to fund it. I know MS do small regional events that are either free or very minimal cost, does anyone know of any .net events that are free. If you know of any let me know here &lt;a href="mailto:administrator@thedotnetdiary.co.uk"&gt;administrator@thedotnetdiary.co.uk&lt;/a&gt; .&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9332777-110147002450901855?l=capgpilk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://capgpilk.blogspot.com/feeds/110147002450901855/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9332777&amp;postID=110147002450901855' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/110147002450901855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/110147002450901855'/><link rel='alternate' type='text/html' href='http://capgpilk.blogspot.com/2004/11/events.html' title='Events'/><author><name>capgpilk</name><uri>http://www.blogger.com/profile/11552854697811430392</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9332777.post-110146871587764771</id><published>2004-11-26T03:27:00.000-08:00</published><updated>2004-11-26T03:31:55.876-08:00</updated><title type='text'>Go Blogger Go</title><content type='html'>Well after sutch a long time pondering over blogging, I have finally set one up. My website &lt;a href="http://www.thedotnetdiary.co.uk"&gt;www.thedotnetdiary.co.uk&lt;/a&gt; which was where I used to put my blogg messages was hacked last month, so as I am rewriting that, I may as well sepperate the blogging stuff and my other .net stuff.&lt;br /&gt;&lt;br /&gt;Thedotnetdiary will be back soon. I am currently restructuring it with Visual Studio, more on that soon.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9332777-110146871587764771?l=capgpilk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://capgpilk.blogspot.com/feeds/110146871587764771/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9332777&amp;postID=110146871587764771' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/110146871587764771'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9332777/posts/default/110146871587764771'/><link rel='alternate' type='text/html' href='http://capgpilk.blogspot.com/2004/11/go-blogger-go.html' title='Go Blogger Go'/><author><name>capgpilk</name><uri>http://www.blogger.com/profile/11552854697811430392</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
