Calendar control

M

MB

The following code just displays the current month, is it possble to
generate a full year view?
An example would be nice.

<html>
<head>
<script language="VB" runat="server">
Sub Date_Selected(sender As Object, e As EventArgs)
Label1.Text = "Selected date is: " +
Calendar1.SelectedDate.ToShortDateString
End Sub
</script>
</head>
<body>
<h3><font face="Verdana">Calendar Example</font></h3>
<form runat=server>
<asp:Calendar id=Calendar1 onselectionchanged="Date_Selected"
runat="server" />
<p>
<asp:Label id=Label1 runat="server" />

</form>

</body>
</html>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top