wduffy.co.uk
William Duffy | About Me
http://www.wduffy.co.uk/blog/about-me
Glasgow Based C# ASP.NET Web Developer. 8217;m a freelance ASP.NET Web Developer from Greenock, near Glasgow. I have a wonderful fiancee and a little girl who I love to spend time with as much as possible. I have over 15 years experience building websites and web applications. What makes me unique is that I can both design and develop to a high standard. Focussing on simple, intuitive, user friendly interfaces. After years of study and gaining an Honours Degree in Media Technology I began working with so...
wduffy.co.uk
William Duffy | Archive for MVC
http://www.wduffy.co.uk/blog/category/asp-net-mvc
Glasgow Based C# ASP.NET Web Developer. Post archive for ‘MVC’. Using Application Error in ASP.NET MVC’s global.asax to Handle Errors. Jul 1, 2011 • ( 7. Alternating Row Colours in MVC Views. Nov 8, 2010 • ( 8. May 31, 2010 • ( 3. SPNET MVC’s HTML helpers are fast and efficient for rendering elements using your model. One of these is the HTML.PasswordFor method, which has a little gotcha that many people get caught out with. The HTML.PasswordFor method will render a password input t...Ne of the most comm...
wduffy.co.uk
Using Application_Error in ASP.NET MVC’s global.asax to Handle Errors | William Duffy
http://www.wduffy.co.uk/blog/using-application_error-in-asp-net-mvcs-global-asax-to-handle-errors
Glasgow Based C# ASP.NET Web Developer. Using Application Error in ASP.NET MVC’s global.asax to Handle Errors. Jul 1, 2011 • ( 7. SPNET MVC’s controllers have great error handling capabilities and can be easily extended to cater for application specific requirements. However, many developer don’t want to manage errors at a controller level and would rather manage 99 percent of errors from a single location. This allows for a single point of error logging, notification and handling. Log the error (I’...
wduffy.co.uk
Modifing XML values in XSLT documents | William Duffy
http://www.wduffy.co.uk/blog/modifing-xml-values-in-xslt-documents
Glasgow Based C# ASP.NET Web Developer. Modifing XML values in XSLT documents. Nov 5, 2010 • ( 0. Ver wondered how to perform manipulations of XML values in an XSLT document? For example, if you were consuming an RSS feed which had description values greater than 500 characters in length, but you only wanted to display the first 50 characters before leading the user through to the full post. Lets elaborate on the RSS example. Imagine you were consuming a feed which looked similar to the following. The XS...
wduffy.co.uk
William Duffy | Archive for SQL Server
http://www.wduffy.co.uk/blog/category/sql-server
Glasgow Based C# ASP.NET Web Developer. Post archive for ‘SQL Server’. Order by day column using SQL. Jan 18, 2010 • ( 2. F you’ve ever had to sort a SQL query’s resultset using an “order by” clause on a “day of the week” column then you will know it can be very easy, or very tricky, depending on the format that the day is stored in the database. If you stored the day of the week in [.]. Sql Server 2008 – Saving changes is not permitted. Apr 29, 2009 • ( 3. Apr 25, 2009 • ( 1. 2016, William Duffy.
wduffy.co.uk
William Duffy | Archive for XML
http://www.wduffy.co.uk/blog/category/xml
Glasgow Based C# ASP.NET Web Developer. Post archive for ‘XML’. Modifing XML values in XSLT documents. Nov 5, 2010 • ( 0. Ver wondered how to perform manipulations of XML values in an XSLT document? For example, if you were consuming an RSS feed which had description values greater than 500 characters in length, but you only wanted to display the first 50 characters before leading the user through to the full post. The solution is XPath [.]. 2016, William Duffy.
wduffy.co.uk
William Duffy | Archive for Ranting
http://www.wduffy.co.uk/blog/category/general-ranting
Glasgow Based C# ASP.NET Web Developer. Post archive for ‘Ranting’. MacBook Pro hash key in windows. Jan 13, 2010 • ( 1. An’t find the # hash key # on the keyboard of your MacBook Pro running Windows? I spent ages scratching my head on this one but it is there, it’s just hidden away from sight. Simply hold ctrl, alt and press 3 to get a nice little hash character onto your screen. Simples! 400 Bad request in Firefox, fine in IE. Nov 12, 2009 • ( 0. Jun 23, 2009 • ( 7. Me in the Simpsons. 8217;ve always w...
wduffy.co.uk
Alternating Row Colours in MVC Views | William Duffy
http://www.wduffy.co.uk/blog/alternating-row-colours-in-mvc-views
Glasgow Based C# ASP.NET Web Developer. Alternating Row Colours in MVC Views. Nov 8, 2010 • ( 8. Lternating row colours on tabular data is one of the most common data visualisation styles a web developer has to implement. Almost every project I have built required tabular data, and alternating row colours were key to the clean, easily readable presentation of that data. IList list, object. Var c in Model.Contacts ). I have put the extension method into the System.Collection namespace so that I only h...
wduffy.co.uk
William Duffy | Archive for jQuery
http://www.wduffy.co.uk/blog/category/jquery
Glasgow Based C# ASP.NET Web Developer. Post archive for ‘jQuery’. Tracking Google Goals With No URL Using jQuery. Aug 10, 2010 • ( 2. Oogle Goals make it extremely easy to track successful interaction with your website by setting a goal based on the serving of a URL to the client. However, what if a goal is a user clicking on a mailto email link, or clicking download to receive a pdf of your brochure? Neither of these resources [.]. Keep element in view while scrolling using jQuery. 2016, William Duffy.
wduffy.co.uk
Clearing ASP.NET Cache | William Duffy
http://www.wduffy.co.uk/blog/clearing-asp-net-cache
Glasgow Based C# ASP.NET Web Developer. Clearing ASP.NET Cache. Apr 12, 2011 • ( 1. SPNET’s caching system is invaluable for speeding up your website and reducing your server/database load. However, sometimes you will find a need to manually clear the cache and allow it to rebuild with fresh data. As simple as this seems it can prove trickier than you would expect. HttpContext context ). Tagged as ASP.NET. Categorized as ASP.NET. January 13th, 2012 at 3:11 pm. 8220;Why isn’t that working…? Manyou are GRE...