Ver Mensaje Individual
  #2 (permalink)  
Antiguo 24/02/2005, 15:04
Avatar de RicaJ0625
RicaJ0625
 
Fecha de Ingreso: noviembre-2004
Ubicación: La Chorrera, Panamá
Mensajes: 86
Antigüedad: 20 años, 3 meses
Puntos: 0
El error esta en el New

Código:
Dim div as New HtmlGenericControl = FindControl("divCalendar")
If TypeOf div Is HtmlGenericControl Then
    CType(divCalendar, HtmlGenericControl).Style.Add("display", "none")
End If
Debe Ser

Código:
Dim div As Control = FindControl("divCalendar")
If TypeOf div Is HtmlGenericControl Then
    CType(divCalendar, HtmlGenericControl).Style.Add("display", "none")
End If


También te hace falta el RunAt="Server" en la definicion
Código HTML:
<DIV id="divCalendar" style="DISPLAY: none"> 
Deberia de ser para poder manipular el div en el editor
Código HTML:
<DIV id="divCalendar" style="DISPLAY: none" runat="server"> 

Última edición por RicaJ0625; 24/02/2005 a las 15:15