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">