SharePoint, XBOX, .NET, Technology - What I am reading

    [Home] [Recent] [Site Map]

   

Displaying Random Images in an ASP.NET Web Page

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 >


>>Source Link
>>Blog: 4GuysFromRolla.com Headlines
>>Publish Date: 10/8/2007 10:20:24 PM
>>Keywords: images web

Related Posts
>>Déployer des images, et des logos communs à vos sites MOSS #
    Pour donner un look plus professionnel à une application web il est souvent nécessaire de déployer un logo propre à l"activité ou la société pour laquelle vous développez votre site MOSS. Pour mettre
>>WebLogic 10 is here #
    BEA WebLogic 10 has been released. I am particularly impressed with the enhancements to the Web Services stack which includes: -WS-Security 1.1 -WS-Secure Conversations -SAML Token Profile -Binary (MT
>>Taking a detailed look at Windows Vista DVD hologram #
    An astute Windows user was intrigued by the holographic image on the face of the Windows Vista Business DVD and decided to take a much closer look, discovering in the margin a microscopic photograph o
>>Virtual PC 2007 Available for Download #
    Virtual PC 2007 has been released to the web and is available for free download here.No major changes in this version - the most significant ones are (1) Support for Vista Images(2) Better performan
>>The Publishing Portal Template #
    So when I selected a template for my new site collection, I selected the Publishing Portal teamplate from the Enterprise tab. And the publishing portal is very nice, it"s alot prettier than the collab
>>[Ajax] Progress Indicator Images #
    Need a neat looking progress indicator image for your ajax site? Head over to http://swik.net/Ajax/Ajax+Images and have a look at the images there. All the images are in the public domain. Share this
>>New Website Look #
    I"ve reworked my web site. It was looking a bit more like the uniform of a NASCAR driver than a web site, so I reworked the layout to make it cleaner. I admittedly stole many of my ideas from other we
>>New Website Look #
    I"ve reworked my web site. It was looking a bit more like the uniform of a NASCAR driver than a web site, so I reworked the layout to make it cleaner. I admittedly stole many of my ideas from other we
>>Webtrends licence flaw #
    Webtrends is one good package to analyze your web applications in all sorts of scenarios. However, recently I got in trouble with their licensing policy. In different projects, I used to generate dyna
>>Live Product Search: More Images, More Relevant #
    The team just released changes to Live Product Search that boost customer-perceived relevance by increasing the number of query results with images. Details are on http://blogs.msdn.com/livesearch/arc

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