Archive for April, 2009

Implementing a favourite icon (favicon) in ASP.NET

Wednesday, April 22nd, 2009

When the thought of adding a favicon, or rather, a favourite icon to your website appears on your todo list, you instantly think it’s a quick, easy 5 minute job. In most scenario’s, it is, however adding a favicon to an asp.net website can be a whole different kettle of fish.

Sure, the principles are the same, you add a basic tag to the header of your page, usually within a master template, and you make sure you have a nice looking 16×16 favicon.ico file located in your web root. Depending on your site configuration though, you might be about to embark on an absolute nightmare of a journey. That is, of course, unless you are reading this handy tip.

If you add the HTML for a favicon and start to test in your favourite web browser (assuming that’s not Internet Explorer 7…), you’ll notice the favicon (should) work flawlessly, and hopefully looks pretty nice too. But, you may find, when you check your favicon in Internet Explorer 7, you’re presented with the default, boring IE icon in your address bar, and no favicon!

After a few hours of Googling and scratching your head, making several tweaks to your code, tweaking your icon, a broken ‘F5′ key, and wondering what the problem is, you’ll probably begin to think it’s just Internet Explorer being funny and deciding not to play nice. In a way, thats true, but there is a way to resolve it.

Your ASP.NET website should have a ‘web.config’ file in your web root, containing various different configuration entries. One particular entry is:

<staticContent>
            <clientCache cacheControlMode="" />
</staticContent>

If ‘cacheControlMode’ is set to ‘DisableCache’, then this could very well be the reason that your favicon does not display correctly in Internet Explorer 7. In our case, this setting was preventing IE7 from placing our favicon into its own cache, and thus did not show correctly.

As a workaround, we have used the following three lines of code to allow IE7 to cache content (and the favicon):


<staticContent>
            <clientCache cacheControlMode="NoControl" />
</staticContent>

The end result is a perfectly working favicon in Internet Explorer 7, and all other major browsers.

Unfortunately there does not seem to be much documentation on this from our time spent Googling the issue, so we hope this is of some use to any other web developers experiencing the same issue as us.

Share

Showcase your talents

Tuesday, April 14th, 2009

Now with the new and improved personal profile you can take the opportunity to promote yourself with Doxmart. The new look site gives you a keyword sketch so others can quickly find out what you offer and how you can help. The newsflash feature lets you promote a specific opportunity or service therefore sharing significant information with others.

Even better, you can let others know what you are really good so they can immediately assess the links they might wish to make and how you could work together to solve problems and achieve goals. Check out your new profile page!

Also, to remind you about our policy change…
Having listened to member feedback, we recognised that a change in our policy was necessary in order to make it easier to help you search and find others who can help you or who will benefit from your expertise. So as from 8th April 2009, the Doxmart search engines now reference your name and, if applicable, your organisation name, in addition to your screen name. This means that your name is now publicly visible and it will no longer be possible to make this data private. Please get in touch if you have any questions about this policy change.

Share

Publish your knowledge

Tuesday, April 14th, 2009

The enhanced Doxmart site includes improvements to the upload documents function which has been simplified and is quicker is use. This means that in a few easy steps you can effortlessly publish your knowledge, make it available to others and make money at the same time.

What is more you also currently benefit from free hosting so it costs you nothing to share your expertise and let others know what you are really good at. To take advantage of free hosting and publish your documents, visit the Document Upload Wizard.

Remember when you have uploaded your documents you can include additional information to make them more attractive to buyers by using the Edit facility. This also allows you to set the price. Once this is done you then publish them to the Doxmart marketplace by making them available for sale. You can view your document details and also check out how they will look when viewed by others from your Document Portfolio section of your My Doxmart.

Your My Doxmart page will keep you up to date with  how many documents you have uploaded and hosted on Doxmart, the feedback you have received and the amount of sales revenue you have available to cash out or spend.

Also it won’t cost you anything to publish your documents because as a current or new member registering with Doxmart you automatically receive six months FREE hosting for any documents uploaded.

Please Note: six months free hosting commences from the date the document is made available for sale.

Share