Monday, 28 January 2013

"... and what version of the web application are you running, sir?"



A common, and important, requirement of implementing web applications is to version them. Very often the customer themselves care little for the version, but to the QA and Development teams that support them, it is extremely important. Particularly where version control is employed (a fundamental basic principal of good development) and branches of the application must be developed, whilst continuing to maintain the main code trunk, or where multiple versions of the software are available. 

This post will show you how to detail the names and versions of assemblies that the web app is using in ASP.NET MVC3. 

Basic Requirement

At its most basic form the version of the web app itself should be present somewhere for the user to see, such as the About page. This allows them to report a potential bug and the version of the app it has occured in.

Start Visual Studio 2012 and create a new ASP.NET MVC3 Web Application named MyMVCApplication. The default application structure provides various Controllers and Views. As we want to add the version information to the about page, locate the About() method in the HomeController and add the following code:



The controller identifies the name and location of the current applications assembly, extracts the name and version and places the details in the ViewBag ready for the View to display.

The About View needs to display the Assembly and Version stored in the ViewBag:


Now build and run the application, navigate to the About page and, voila, the current version is displayed.



Improvements

We're using ASP.NET MVC3 here, so we know that this isn't the only assembly being used! The Views are using Razor to output the content of the ViewBag for a start - and Razor resides in its own assembly: System.Web.Razor. It might be useful to list all the assemblies used by the web app in the About page. After all, the more information relating to the version and a reported bug, the simpler it is to locate and fix.
So, lets take the example above a little further to display all the assemblies.

The About controller will need tweaking to discover all the assemblies used and to store the name and version ready for display on the View. We'll define a string dictionary to store the name and version of each assembly as a key value pair, store the dictionary in the ViewBag and call the View.


The About view must also cater for multiple assemblies. We'll simply iterate over the ViewBags' Assemblies property, and output the name (key) and version (value) onto the page.



Build and run the application, navigate to the About page and, voila, all the assemblies currently used in the web app are displayed.



Written by Dan Hacker, Software Developer, DSCallards

For more information, visit www.dscallards.com.



Thursday, 17 January 2013

How to Encourage Your Company to Write Blogs?


We’re all being told that 'Content is King'.  Bill Gates said in 1996, “Content is where I expect much of the real money will be made on the Internet, just as it was in broadcasting”. 
 

Every business has to produce business blogs to create entry points for business websites, increase exposure and build relationships with consumers, increase brand loyalty and get on the radar screen of influencers. 
 

Business blogging is very much a long-term marketing strategy.  It can help us to build our all-important brand, boost word-of-mouth marketing, and grow our business for years to come. It's this type of organic growth based on relationships and trust with our audience that leads to brand loyalty and a business that can withstand macro- and micro-environmental problems for years to come.  (More).


The bottom line is, if we aren’t talking to our target audience, another business will be. 


But the problem faced by every single Marketer in the year 2013 is "how do I encourage my colleagues to write blogs and provide that all important original content?"


I work for DSCallards.  We are a group of highly intelligent software developers and Business Intelligence consultants.  Between us, we hold a wealth of invaluable knowledge and experience on a plethora of subject areas.  The problem I’m faced with, however, is how do I get this knowledge onto paper and maximise its value to provide DSCallards with that all important competitive edge?


The answer is surprisingly simple!


At our September 2012 Company Day I presented my ‘Feeding the Social Beast’ challenge to my colleagues and tried to get their buy-in by explaining how by working together as a team we really could use this knowledge to drive our business forward.   

We also launched the 'DSCallards Blogometer' and I began my quest on nurturing my peers to let go of their little gems of knowledge and share them with the world wide web.


Once I’d published the articles on our company blog, I then systematically tweeted the content and included it in company e-newsletters.  We have a screen in our reception and I regularly updated the chart to show the company who the leaders were.  The board caused lots of buzz and fun around the office and everyone was keen to see the updates.






The response was incredible!  We increased hits to our blogsite from a mediocre 200 a month to over 2,000.  What’s more, it keeps rising!  We know that this is a long-term marketing strategy that we all have to work hard at, but the results really do speak for themselves.


We’re now into our second ‘DSCallards Blogothon’.  It started today and so far I’ve received three excellent blogs from our Sales and Development teams.  I’ve extended this quarter’s competition to include an inter-departmental prize as well as an individual running total.


This seems to be well received, so watch this space and I’ll let you know in a couple of months how it progresses and how it helps in our quest to become thought leaders in our chosen markets.

Written by:  Adriane Gillies, Marketing Manager, DSCallards

Visit our blog here.