Hola bueno encontre un codigo en javascript que creo me sirve para hacer que cuando selecciones el calendario se despliegue la ventanita con los 12 calendarios con los meses del año
el codigo original es este
Private Sub Calendar1_SelectionChanged(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Calendar1.SelectionChanged
TextBox1.Text = Calendar1.SelectedDate.ToShortDateString()
Dim div As System.Web.UI.Control = Page.FindControl("divCalendar")
If TypeOf div Is HtmlGenericControl Then
CType(div, HtmlGenericControl).Style.Add("display", "none")
End If
End Sub
<%script>
function OnClick()
{
if( divCalendar.style.display == "none")
divCalendar.style.display = "";
else
divCalendar.style.display = "none";
}
<%/script>
y yo lo modifique asi
Sub Calendar1_SelectionChanged(sender As Object, e As EventArgs)
If Calendar1.SelectedDate.ToString("dd/MM/yyyy") then
Dim div As System.Web.UI.Control = Page.FindControl("divCalendar")
If TypeOf div Is HtmlGenericControl Then
CType(div, HtmlGenericControl).Style.Add("display", "none")
End If
End If
End Sub
function OnClick()
dim divCalendar as System.Web.UI.HTMLControls
if( divCalendar.style.display == "none")
divCalendar.style.display = "";
else
divCalendar.style.display = "none";
end if
end function
pero me da error y señala esta linea "dim divCalendar as System.Web.UI.HTMLControls" diciendo que
Compiler Error Message: BC30182: Se esperaba un tipo.
y sinceramente no se que hacer
apreciaria cualquier tipo de ayuda o consejo