As web developers, we most often focus on backend web developer, buring our noses in defining and implementing the business logic, building CRUDs, and designing reports. Rarely are we concerned about maintaining the appearance and style of the website. For developers working in medium- to large-sized companies, this poses no problem as there are graphic designers whose job it is to design a slick layout and periodically update it in order to keep the site from becoming stale. In smaller companies, however, oftentimes the web developer writing the backend code is also the one responsible for maintaining the frontend.
One easy and cost-effective way of keeping a site from becoming stale is to display different images on a page each time it is visited. Many corporate websites use this technique on their homepages. For example, the homepage might have a picture of a facility or employees in the upper right hand corner. Rather than showing a single, static picture, each time the homepage is visited a randomly selected image is displayed.
There are a couple of ways to display random images, and this article will look at two different approaches. The first
technique covered in this article is to simply display a randomly selected image file from a directory of files. This
simplistic approach is easy to implement but is limited in a number of ways. We"ll also look at a more professional
approach that utilizes a free, open-source ContentRotator control I created back in September 2005. With the my ContentRotator
control where you can specify what images, exactly, are candidates for being displayed as well as how likely a particular
image should be selected relative to the other images in the image set. Read on to learn more!
Read More >
Related Posts:
>>Hosting ASP.NET Applications in Medium Trust
>>An Extensive Examination of Web Services: Part 11
>>Accessing and Updating Data in ASP.NET 2.0: Deleting Data
>>Building a User Control that Displays RSS Feeds Using a DataList and an XmlDataSource Control
>>Personalizing RSS Feeds with ASP.NET 2.0
>>Rolling Your Own Website Administration Tool - Part 2
>>Rolling Your Own Website Administration Tool - Part 1
>>Debugging SQL Server 2005 Stored Procedures in Visual Studio
>>Deploying a Local Database to a Remote Web Host
>>Accessing and Updating Data in ASP.NET 2.0: Inserting Data
>>Maintaining a Log of Database Changes - Part 2
>>Accessing and Updating Data in ASP.NET 2.0: Programmatically Accessing Data using the Data Source Controls
Month Archives:
Top Tags:
social software social networking .NET mashable Sharepoint ASP.NET Web 2.0 Web2.0 Startups Community News Search Marketplace General Software Development AJAX Windows Vista Microsoft Visual Studio myspace People Powered! YouTube Silverlight Vista Featured News MOSS C# Events Google WPF MOSS 2007 Office 2007 Web
@2007 All rights Reserved |