Trout Fishery Listings

May 29th, 2008 Posted in SEO, web design | No Comments »

Its been a while since I last posted…..I have been really busy!

One thing I have been working on is the latest project for my colleague, James Farrer, a Trout Fisheries directory. Now, although the subject of Trout fishing is not the most enthralling (at least for me), I have been trying to assist in the area of SEO (Search Engine Optimisation).

James is using quite a few ASP.NET controls on his pages, including Collapsable Panels, Link Buttons and some of the AJAX extenders for pop up links. None of these are very search engine friendly.

So we are currently working to increase the indexability of his web site by using pure html links and QueryStrings instead of the horrible JavaScript links produced when using LinkButtons and other controls. I know……I Know…..QueryStrings aren’t very search engine friendly either! This is the first stage. The next is to introduce some URL re-writing so that we have some friendly URLs to link to as well.

There is alot more that can be done to make this site more ’spiderable’ and I will post again when we are further on. Also, do check the site out as it does use GoogleMaps and AJAX in quite a nice fashion.

Trout Fisheries in England

Technorati Tags: ,

Tags: ,

Expression Web 2 and Expression Studio NOT Available on MSDN Downloads

May 9th, 2008 Posted in Expression Web, msdn | 1 Comment »

UPDATE: Apparently, the Expression Studio is available, but you need to go to the Top MSDN Downloads page. Here is the link to the top downloads page. Plus it turns out that I clearly was not awake this morning when I made this post originally as the blog post I link to below is talking about Expression Web 1 and is from over a year ago! Doh!

I was very pleased to see that Expression Web 2 / Expression Studio was available on MSDN Downloads when I read this blog post this morning.

However, my mood was short lived as it appears that the newly Expression Studio, featuring Expression Web 2, is not available to MSDN Subscribers, with no clear date set as to if or when it will be.

I contacted MSDN Support via online chat and I was told that they had received other requests along the same lines and they simply said that a decision would be made and then the classic line of “Thank you for contacting MSDN today, is there anything else I can help you with?”.

There is some hope though, Expression Studio is now an option within the downloads menu, but alas this group is currently empty.  Lets hope the downloads are simply delayed and the listing is not a mistake altogether.

I for one hope gets this resolved soon and we can all download the goodness that is Expression Studio!

Technorati Tags: , ,

Tags: , ,

Expression Web 2 Released and new Expression web site!

May 8th, 2008 Posted in Expression Web | No Comments »

Not sure how this one passed me by! 

A couple of days ago the new version of the Expression tools from Microsoft, including Expression Web 2, were released.  This was also accompanied by a brand new Expression Studio web site where you can get hold of free trials for the Expression applications.

Check out the Expression 2 web site here.

ASP.NET 3.5 Dynamic Data Tutorial Series - Part 1 - What is Dynamic Data and creating a basic dynamic data web site.

May 7th, 2008 Posted in .Net, Tutorials | 5 Comments »

Last week I attended the MSDN Roadshow 2008 (you can read my write up of the event along with some useful links here), and one of the topics presented on the day were the upcoming ASP.NET 3.5 Extensions.  Mike Ormond did an excellent presentation on the upcoming release including a hands on demo using some of the preview releases currently available.

In this tutorial series I am going to focus on the Dynamic Data controls within the extensions and try and give some guidance on what Dynamic Data is, what it can do for you and how to do it.

In this post, Part 1, I am going to discuss what Dynamic Data is and how you can very quickly create something functional.  In future posts I will look at some of the more advanced topics and techniques available.

This is my first tutorial series, so please do post any comments you have (good or bad :))!

What is Dynamic Data?

Dynamic Data is extremely cool.  In short, it allows a developer to create a data driven web application that allows you view data within a database, insert, update and delete records, all rounded off with automated validation to go with it.  “Great…but I can already do that”, I hear you say, well that’s the best bit, the whole process of getting a web application, with master / detail web forms and full editing capabilities, up and running only takes a couple of minutes!

Once created, the resulting application can be customised very easily in order to display data to suit your needs, modify the way in which input occurs , for example, wherever the user inserts or edits a date field, you might want to have a Microsoft .Net Calendar Control instead of having them type the date in manually. You can also set logic on your database fields from within the application.  For example, you might want to add a range to an integer field or check for a pattern within a string using regular expressions.  Again, this is all possibly and relatively simple to accomplish.

Ok, so you know what Dynamic Data is now, so lets have a look at what you need to create a Dynamic Data web site and follow this tutorial.

 

Downloading the preview and getting the right tools

Firstly, for this tutorial you are going to need a copy of either Visual Studio 2008, or Visual Web Developer Express 2008.  Visual Studio Web Developer Express 2008 is a free IDE from Microsoft for developers to use, if you don’t have a copy of Visual Studio then I would definitely suggest checking out the Express edition web site here.

Next you need to download and install the ASP.NET 3.5 Extensions from here.  This package contains different parts that make up the extensions, so of which are now outdated, so you will also need to download the latest release of the ASP.NET Dynamic Data controls from here.

Of course, as we are going to create a data driven web site, you need a database. If you don’t already have it, go and download a copy of SQL Server 2005 Express Edition from here.  You can use any database with this tutorial, but I am using the Adventure Works sample database for SQL Server 2005 available from here (it is the top link that you will need, AdventureWorksDb.msi).

I won’t go into setting up your sample database here, or installing / configuring SQL Server and Visual Studio.  If you need any help though, the web is awash with assistance, just do a Google search and you’re sure to find a tutorial / tips site to help you.  Obviously, there is supporting documentation for everything as well.

 

Building your first Dynamic Data Web Site

1.  Open Visual Studio / Visual Web Developer.  By now you should have all of the necessary preview extensions & controls installed.  Select File -> New Web Site.  Now that you have installed the Dynamic Data preview installed you will notice that there is now a couple of new project templates available for you to use and for this example we are going to use the Dynamic Data Web Application template as shown below.

dynamic_data_web_app_proj_template

 

dbconnection2.  Now we need to establish a connection to the database.  To do this, click on View -> Server Explorer. Once the Server Explorer tab is open, right click within it and select New Connection.

You should then see a connection settings window shown to the right.

Enter your database server details here and select the database you wish to work with.

 

 

 

 

 

 

 

3.  Now that we have configured our database connection, we should now be able to see our database listed within the server explorer and you should have a tree view of your database where you can see your tables, views, stored procs etc.Now, we have to define our data model.  Sound scary? Well don’t worry, because this is painfully easy as well.Within your Solution Explorer, right click on the project name and select Add New Item…

You will notice that you will now be able to select a “LINQ to SQL Classes” item.  

linq2sqlitem

Add one of these items and you will be asked if you want to create an APP_CODE folder, say YES to this as this is required for your data model.

 

4.  Once Visual Studio / Visual Web Developer has finished creating the new LINQ to SQL Classes item, you will be presented with a blank window for the new item (.dbml file).  To create your model, simply drag the tables you want in your web site from your database in Server Explorer into this window like below.  You will notice that will even persist the table relationships already setup with your database.

dragtables

I have chosen to drag the tables associated with Person information into my model.When you are happy with your selection, save this dbml file.

 

5.  The one last thing we need to do before our new data driven web application will work is to edit a line in our configuration file.  The security minded people at Microsoft have switched off the automatic creation of all table ’scaffolding’ by default and we need to enable it.  We are going to enable it for all tables in the model, but in a real world situation you would enable it only for tables you actually wanted to expose though this method.Open your Web.Config file and amend the following line to read as true like below.

    <dynamicData dataContextType=“” enableTemplates=“true”>

6.  Now run your web application and hopefully, you should have a functional web application that allows you to View, Insert, Edit and Delete information within your database, like the one below.

workingapp

 

What’s Next

Now that you have your working application, have a good look around.  In the next part of this series, we will look at the application itself and what you have got right out of the box and point out a few things that you might not have noticed.

Technorati Tags: , ,

Tags: , ,

MSDN Roadshow 2008 Review and Useful Links

May 7th, 2008 Posted in .Net, C#, Silverlight, msdn | 2 Comments »

Ok, so a few weeks ago I posted about my plans to attend the MSDN Roadshow 2008 in Manchester and I said that I would post about the event once I had attended.  So as promised here is that very post along with some useful links;

Firstly, the venue for this years event was excellent.  The Odeon in Manchester City Centre in the Printworks is quite simply huge.  Luckily there were escalators for those of use who were to lazy to climb all of the stairs.

Once you reached the third floor, we were greeted by poster boxes with MSDN posters inside with some nice quotes, such as "There’s No Place Like 127.0.0.1" and "I’ll make him a program he can’t refuse", which was a nice touch I thought. :) Made the whole thing feel like more of an event rather than just a meeting.

In the corridor outside of the actual conference room were the usual stands familiar to those who have attended a Roadshow before, such as the registration table, a stand with discount books from the guys over at Computer Manuals selling discounted books on a variety of subjects from Expression to LINQ and of course, every developers favourite stand, the SWAG stand, with free goodies like the updated Developers Highway Code (which is available for download and I have included a link in the useful links later in this post).  We did all get a free software pack when we left, but more on that shortly.

In addition to the usual stands this year though, we were treated to a couple of really interesting tables showing off the XNA Framework on a dev Xbox 360 and the new Microsoft Robotics studio.  I have to say, some of the games produced with the XNA framework for the 360 were pretty impressive and most of them are available as starter kits from Microsoft if you’re interested.  I will include some links for both of these areas at the end of this post.

IMAG0038The conference room itself was actually a cinema room (surprisingly being at the Odeon :)), which was fantastic.  This meant most people got comfortable seats to enjoy the show and those all important cup holders! I arrived slightly late, and so didn’t manage to get a seat, however, the nice Roadshow staff got me a seat and put me right at the side of the stage and I got a ringside seat which was great.  As you can see from the picture to the right (apologies for the quality, somehow I managed to set my camera phones’ resolution unusually low by mistake) of MSDNs Mike Ormond presenting, the slide being on a cinema screen really helped, as they were always clear and nobody was struggling to see anything.

The presentations themselves were, as always, of an excellent quality, with the speakers conveying their expert knowledge in their respective topics clearly and concisely.  I particularly enjoyed Mike Ormonds’ talk on the ASP.NET 3.5 Extensions, especially the new Dynamic Data capabilities (which I am hopefully going to be posting a small tutorial series about shortly. If you’re interested, add this blog to you’re favourites or subscribe to my RSS Feed).

The refreshments this year were good, a choice between ham, cheese and chicken sandwiches, along with crisps and soft drinks for lunch.  Very nice Coffee during the breaks and even popcorn or Ben and Jerrys ice cream in the afternoon!

As I have already mentioned, if you handed in your feedback form and your pass before you left you were treated to a nice software pack, which didn’t disappoint.  Contained within the set were promotional copies of Windows Server 2008 32bit and 64bit editions, SQL Server 2008 Preview along with a voucher to get a development copy when it is released, and my personal favourite, a full copy of Visual Studio 2008.

All in all, an excellent day, well put together and very well received!

One last note, the MSDN Roadshow’s are an invaluable free event from Microsoft giving excellent technical and hands-on insight into the latest techniques and strategies for developers.  Every year they seem to sell out really fast, so my one message to you for next year is….REGISTER EARLY!

Now as promised, some useful links regarding the days speakers, events and topics;

Presentation Slides

Definitely worth a look through…..

  • ADO.NEXT – Entity Framework & Data Services (PPTX)
  • ASP.NEXT – The ASP.NET 3.5 Extensions (PPTX)
  • Building Rich Internet UI with Silverlight 2 (PPTX)
  • Getting the most from the Visual Studio Team Suite Toolbox (PPTX)


    Speakers Blog’s

    I cannot recommend subscribing to these blogs enough.  I read them regularly and the writers never fail to deliver worthwhile and timely posts regarding the latest in Microsoft technology.

  • Mike Ormond’s blog
  • Daniel Moth’s blog
  • Mike Taulty’s blog
  • Neil Kidd’s team blog


    Sites regarding specific topics of this years Roadshow

    These are some links referencing the actual subjects and technology discussed during this years roadshow.

  • Dynamic Data
  • ASP.NET MVC Preview 2
  • MSDN UK screencasts on ADO.NET
  • ASP.NET 3.5 Extensions Preview
  • Excellent blog post from Mike Ormond with more great links for ASP.NET 3.5 Extensions
  • Silverlight
  • Xbox 360 XNA Game Framework and Microsoft Robotics Studio and the Developer Highway Code

    As promised, a couple of links to the areas that were the subject of two impressive stands this years event.

  • Microsoft XNA (with links for both casual and professional games development)
  • Microsoft Robotics Developer Center
  • Microsoft Developer Highway Code Download
  • Technorati Tags: , , , , , , ,

    Tags: , , , , , , ,

    Windows Live Writer and WordPress Error - Invalid response document returned from XmlRcp Server….SOLUTION

    May 6th, 2008 Posted in WordPress | No Comments »

    Today, I upgraded to WordPress 2.5.1, which I am glad to say was really simple.  Along with this, one of my colleagues suggested I try Windows Live Writer as a blogging tool to post to this blog, so I installed it.

    When you first open Windows Live Writer it has to query your blog via the xmlrpc.php file in the WordPress root directory.  However, when I tried this I kept receiving the following error;

    “Invalid response document returned from the XmlRcp sever”

    After a bit of digging around the WordPress files and folders, here is how I fixed it;

    1. Open your favourite text editor (I like Notepad++ because it also shows me characters that some editors can hide).

    2. Open the following four files and check for extra characters after the closing PHP tag (which looks like “?>”).  If you find ANY blank spaces or blank lines after this closing tag, delete them.

    • wp-blog-header.php
    • wp-config.php
    • wp-settings.php
    • xmlrcp.php

    3. Save your files and upload them to your server.

    4. Try Windows Live Writer again and hopefully enjoy using it :)

    Technorati Tags: ,

    Tags: ,

    Windows Installer XML (WIX) - Open Source from Microsoft

    April 1st, 2008 Posted in WIX | No Comments »

    To those of you who already know of WIX (Windows Installer XML), it will be old news. But, for those of you who don’t, I thought I would introduce you to it.

    Windows Installer XML was released some time ago to the open source community by Microsoft. It allows for the creation of Windows Installer Packages (i.e. MSI files) from XML files. This means by using the toolset within your build process, you can integrate the creation of custom installer packages into your build easily.

    The packages created by WIX can be fairly complex, allowing for custom actions to be embedded within the MSI, including tasks such as installing Windows Services. Also, it should be noted that Microsoft are now using WIX internally themselves, for example, the installer packages for Microsoft Office 2007 were written with WIX.

    WIX is currently at version 2.0 and is stable, with WIX 3.0 in development. There has recently been some talk that the project is dead, however, the team behind WIX have definitively stated that this is not the case and the WIX project is very much alive. I have been using WIX within my role at Experian to automate the build and deployment of our software, with great sucess. I have written a generator app that utilitzes the toolset to generate all the MSI files for our software and then packages them all up into one wrapper application for deployment.

    Anyway, I would seriously recommend having a look at WIX. I have included a couple of links below to get you started;

    WIX on SourceForge - This, as the name suggests, is the home of the WIX project on SourceForge. This contains links to the latest binaries, news and mailing lists for users and WIX project developers.

    WIX Tutorial - An excellent introduction to using WIX with lots of examples and instructions to help you wade through the toolset (I think this tutorial is up to date for version 2.0 but I may be wrong).

    Introduction to WIX - A short article introducing WIX and some basic concepts and usage. This is an old article from 2004, but may still be useful reading for the new users out there.

    Technorati Tags: ,

    Tags: ,

    Do I need a blog for my business?

    March 31st, 2008 Posted in WordPress | 1 Comment »

    I was asked this question this week by one of my clients for whom I produce a couple of web sites for that have been growing steadily for a couple of years. So, I thought I would post about this question from a general point of view;

    So, do you need one?

    Before, you we can answer this question, we need to look at the advantages of having a blog.

    - Blogs are an excellent way of getting up to date news out to your potential and existing clients. If you provide up-to-date and useful information on your blog, then you are likely to get more readers. With a good blog, you can be seen as the expert in your particular field to whom people look to for advice. If that blog is connected to your business, then this will inspire confidence in you and your product / service, which will hopefully lead to more sales / leads.

    - As blogs, in general, are updated regularly, people are more likely to revisit your blog to check for new posts as opposed to checking your web site. For the more tech-savvy web user, blogs usually also provide what is called an RSS Feed. RSS Feeds are used by programs such as FeedReader, which allow users to ‘favourite’ your blog and get notified when you post something new, giving you a permentant link with your readers.

    - Search Engines love Blogs! As the primary goal of search engines like Google is to provide relevant and up-to-date results, blogs, by their very nature, rank well when compared with a static web site. To give you an example, I just posted an item about updating my blog called “WordPress 2.5 Upgrade Complete”. Within 5 minutes (I kid you not), I did a search on Google to see what other people were saying on the matter, and I was already ranked 3rd on Google UK when I searched for “WordPress 2.5 Upgrade”. So, having a blog, where your competitiors do not might allow you to connect with a potential client before your compeition do!

    Therefore, in answer to the question “Do I need a blog for my business?”, I suppose the answer is yes, because of the many benefits created from having a blog.

    Ok, so now you know why you need a blog, what about a few tips for actually writing one;

    - Most bloggers use a blog called WordPress (including myself with this blog). If you are new to the whole blogging / web design scene, you can sign up for a free blog at www.wordpress.org. There are many helpful articles on the WordPress web site and all over the internet to assist you in getting started. Alternativiely, you can ask your web designer (or me if you don’t have one :)) to set one up for you.

    - You need material to post on your blog. If you have nothing relevant to say, then don’t say anything at all. If you post something that is meaningless just for the sake of it then users will lose interest and will leave (and probably never come back). Plus, if you never post anything new, then the search engines won’t be listing any new posts and you won’t be taking advantage of the extra search engine coverage you might recieve.

    - A blog must be updated (providing you have something useful to say as per my previous point :p)! There is nothing that looks worse than looking at a business blog and realising that it hasn’t been updated since September 2006. In this case a blog might do more harm for your business image than it will good.

    - Wiriting material for your blog takes time, if you do not have time to carry out the task of writing a blog, you could consider using the services of a Ghost Blogger, who can take the time to write relevant and well written articles for you. A useful guide for hiring a ghost blogger can be found here.

    If you have any other questions about blogging, please email me or leave a comment at the bottom of this post and I will be happy to help.

    Happy blogging! :)

    Technorati Tags: , , ,

    Tags: , , ,

    WordPress 2.5 Upgrade Complete

    March 31st, 2008 Posted in WordPress | No Comments »

    Hi all,

    I know I haven’t posted for a couple of weeks now, but I have been really busy!

    Just a quick post to say that I have just upgraded WordPress 2.3 to WordPress 2.5. This was my first upgrade with WordPress and I must admit, I am very impressed. The upgrade was seamless! :)

    Just deleted everything but my wp-content folder, uploaded all of the new binaries from WordPress 2.5, logged in and clicked upgrade. Thats it….Done!

    The only other thing I had to do was update my plugins, but this was as easy as clicking “Upgrade Automatically” and it did all the updating in place for me.

    And, for those of you who are wondering about the new admin panel? Well, this is my first post….but from what I can see, it is extremely well designed and very intuitive. I have found no problems navigating around to find my plugins or writing this blog entry.

    If I find anything more that I think is worth a post I will do so.

    All in all though…hats off to the WordPress team!

    Technorati Tags:

    Tags:

    Internet Explorer 8 Beta Problems

    March 16th, 2008 Posted in Betas, Internet Explorer | 1 Comment »

    Usually, I am always pretty keen to start using beta software when it becomes available, and I suppose that this is why I currently have the Firefox 3 beta (which I am writing this from at the moment), Expression Web 2 Beta and the subject of this post, the Internet Explorer 8 beta.

    With previous IE betas I have always tried to put up with any small issues with the software until final release, because the gains have always out-weighed the problems (for me at least), for example, the tabbed browsing in IE 7. This time though, I am having to throw in the towel with the Internet Explorer 8 beta, at least for now. Since I installed a few days ago, the small but annoying problems started to surface. They started with two tabs opening when you only requested one. Ok, so you have to close an extra tab, I can deal with that.

    But, unfortunantely, since then it has only gotten worse. I am now experiencing an increasing number of JavaScript errors on numerous different sites and the full app is crashing at least once every 10-15 minutes (I am using Firefox 3 now, because IE 8 crashed 5 times in as many minutes!).

    Now, don’t get me wrong, I know this is beta software and I have no problem with the fact that it has issues, of course it has issues. But I cannot help thinking that Microsoft have simply rushed this release of Internet Explorer to keep up with the ever-present threat of Firefox?

    Anyway, maybe it is just my laptop config, maybe it is in fact just me. As I don’t know anybody else using it at the moment, I haven’t had any other comments yet.

    Have you tried the Internet Explorer 8 Beta? If you have, leave a comment and lets get a list together (positive and negative) of user experiences.

    Technorati Tags: , , ,

    Tags: , , ,