Feb 15 2009

Megamenu Google penalization

Classified in: Google, SEOpaomic at 3:19 pm

I had a website about Umbria (a region of Italy). It ranked well for tourism-related keywords and had a good number of daily visits. Suddently, visit dropped to 1/10, and they continued to drop. Of course, I mean visits from Google. After some searching and talks with friends, I tought it could be a megamenu penalization. This penalization usually happens when you have large menus shared by all the website pages. I tried to remove the menu, making it different for different cities in the reagion, and after a cuople of days the visits went back (almost) to their original status. Did you ever have a similar penalization?

Tags:

Feb 12 2009

ASP.NET empty Repeater problem

Classified in: ASP.NETpaomic at 4:17 pm

I was looking for a way to solve the problme of the repeater Control in ASP.NET, which does not offer a functionality like the Empty Data Template of the GridView control or other controls. A solution would be to inherit the Repeater control and create an EmptyTemplate element, as in this post. After some searches I fount this interesting post. The author uses the HeaderTemplate and checks the DataItem count, if it is 0 it shows some text (in the example, it shows a tabel row, but you could easuly do the same with a div or span), otherwise it is hidden. Just what I was looking for! This is the code to use:

<asp:Repeater ID=”repeater” runat=”server”

DataSourceID=”mydatasource” >

<HeaderTemplate>
<span id=”span1″ runat=”server” visible=’<%# ((ICollection)repeater.DataSource).Count == 0 ? true : false %>’>
No data found.
</span>
</HeaderTemplate>

Here repeater is the Id of the Repeater Control.

Tags:

Feb 10 2009

Lytebox closes after first opening

Classified in: Javascriptpaomic at 4:47 pm

It happened to me that using Lytebox (http://www.dolem.com/lytebox/) the frame closed immediately as soon as you clicked on the link the first time. If you clicked again it worked. It happened under Firefox. After some googling, I found out that if you remove all the javascript in the linked file, it works fine. Try this solution and good luck!

Tags: