I’ve finally deployed the DotNetNuke site I’ve been working on. After deployment is when the most obvious things pop up.

For instance, in DotNetNuke when you search for something in the site it will return a list of links to what it finds. What it won’t do is display something friendly like “No Search Results Found” if it doesn’t find anything. Dumb and not very user friendly.

I did find what I thought would be the solution at ecktwo, but it didn’t work in Firefox due to the


which doesn’t work in Firefox within a table, which is what the Search Results are generated using the ASP.NET grid view. So, I thought I’d take a stab at building something that worked for both IE and Firefox.

Make a copy of your admin\Search\SearchResults.ascx file and then open the file in notepad. Apply the following code that I’ve highlighted in red:

<%@ Control Language=”vb” AutoEventWireup=”false” Explicit=”True” Inherits=”DotNetNuke.Modules.SearchResults.SearchResults” CodeFile=”SearchResults.ascx.vb” %>

<asp:Datagrid id=”dgResults” runat=”server” AutoGenerateColumns=”False” AllowPaging=”True” BorderStyle=”None”
PagerStyle-CssClass=”NormalBold” ShowHeader=”False” CellPadding=”4″ GridLines=”None”>
<asp:Label id=lblNo runat=”server” Text='<%# DataBinder.Eval(Container, “ItemIndex”) + 1 %>’ CssClass=”SubHead”>
<asp:HyperLink id=”lnkTitle” runat=”server” Name=”result” CssClass=”SubHead” NavigateUrl='<%# FormatURL(DataBinder.Eval(Container.DataItem,”TabId”),
DataBinder.Eval(Container.DataItem,”Guid”)) %>’ Text='<%# DataBinder.Eval(Container.DataItem, “Title”) %>’>
<asp:Label id=”lblRelevance” runat=”server” CssClass=”Normal” Text='<%# FormatRelevance(DataBinder.Eval(Container.DataItem, “Relevance”)) %>’ >
<asp:Label id=”lblSummary” runat=”server” CssClass=”Normal” Text='<%# DataBinder.Eval(Container.DataItem, “Description”) + “<br>” %>’ Visible=”<%# ShowDescription() %>”>
<asp:HyperLink id=”lnkLink” runat=”server” CssClass=”CommandButton” NavigateUrl='<%# FormatURL(DataBinder.Eval(Container.DataItem,”TabId”),
DataBinder.Eval(Container.DataItem,”Guid”)) %>’ Text='<%# FormatURL(DataBinder.Eval(Container.DataItem,”TabId”),
DataBinder.Eval(Container.DataItem,”Guid”)) %>’>
<asp:Label id=”lblPubDate” runat=”server” CssClass=”Normal” Text='<%# FormatDate(DataBinder.Eval(Container.DataItem, “PubDate”)) %>’>
<PagerStyle CssClass=”NormalBold” Mode=”NumericPages”></PagerStyle>

<div id=”NoResults”>
<h3 class=”red” style=”text-align:center”>No Search Results Found</h3>
<script language =”Javascript”>
var search;
search = document.getElementsByName(“result”);

if (search.length == 0) {
else {

Be sure to add the Name=”result” snippet to the asp:Hyperlink in the code above. It’s easy to miss.

Save that and you should now have a spiffy new message displayed when no results are found. Use whatever CSS you want to style the message.

Looking through the site logs today, I noticed some of the terms/phrases that have led people to my little slice of the Internet. In an attempt to “give them what they want” I’ll pick a few and provide the answers. Here we go:

getting a silver surfer quarter: My guess is ebay is the only way this will happen. With the US Mint putting the smack-down on 20th Century Fox and the Franklin Mint for distributing these babies, they’re going to be even more rare. If you really, really want one, just print the image below and glue it to a California state quarter.

Silver Surfer Quarter Image - Print and Glue to Your Quarter

why do ben and johnny switch powers? I’m not sure about this, because I haven’t seen the movie, but the preview leads you to believe that after Johnny is touched by the Surfer, his molecules become unstable (in a nod to the comic fact that the FF’s costumes are made from unstable molecules). When he is touched by another member of the FF, they swap powers.

dc comic water wizard photo: The Water Wizard is actually a Marvel villain, so searching for DC Water Wizard might not get you much. Perhaps you were thinking of the Weather Wizard, who is a DC comics villain and enemy of the Flash. Anyway, here’s a picture of the Water Wizard. Get all his info in the database.

Marvel Comics Water Wizard

harvey birdman font: If I recall correctly, the closest I came to matching the Harvey Birdman: Attorney at Law font was with the dafont.com Dynomite Font.

Demo of the Dynomite (Harvey Birdman) Font.

and finally, saving the best for last…

what sinister secrets are being hidden in winnie the pooh: I don’t know, but if anyone finds out, I too, would also be interested in knowing.