Thursday, September 4, 2008

Rewrote the Random Image Web Part

I did a quick rewrite of the Random Image Web Part today.  It now no longer relies on the Smart Part, but is a stand-alone web part.  It was a surprisingly easy change to make.  In the end I only needed to add 1 line of code, and change 1 line of code.  I've put this new version up on CodePlex here: http://www.codeplex.com/randomimage2

I was originally going to keep both versions under the same project, but decided it would be confusing keeping the two version separate.  Since the two versions are so similar, I'm going to try to keep their released versions synchronized.  

2 comments:

Unknown said...

Do i need the webpart file, there is only a dll on the codeplex project?

Andrew Kennel said...

The DLL file is all you need.
You will need to copy this file into your server's GAC. (Just copy it to c:\windows\assembly)
You'll also need to add an entry to the SafeControls list in your web.config. There's instructions on the CodePlex site.