Que tal Fher..

, solo un recomendación..
No te sería mas fácil cambiar ésto:
Cita: If ctl.GetType().ToString().Equals("System.Web.UI.Web Controls.Panel") Then
Por ésto:
Cita: If ctl.GetType.Name = "Panel" Then
Con ello te ahorras todo el nombre completo del control.

., bueno.. es solo una sugerencia.
Salu2 friend..