Calendar selection changed not executing for today's date

K

Kelly

Can anyone tell me why this code will not execute when I click on Today's
date? It works fine for any other date.

Protected Sub calSchedule_SelectionChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles calSchedule.SelectionChanged

Dim SchedDate As Date = calSchedule.SelectedDate
lblDateTitle.Text = SchedDate


End Sub

<asp:Calendar ID="calSchedule" runat="server" BackColor="White"
BorderColor="White"
BorderWidth="1px" Font-Names="Verdana" Font-Size="9pt"
ForeColor="Black" Height="190px"
NextPrevFormat="FullMonth" Width="350px" >
<SelectedDayStyle BackColor="#333399" ForeColor="White" />
<TodayDayStyle BackColor="#CCCCCC" />
<OtherMonthDayStyle ForeColor="#999999" />
<NextPrevStyle Font-Bold="True" Font-Size="8pt"
ForeColor="#333333" VerticalAlign="Bottom" />
<DayHeaderStyle Font-Bold="True" Font-Size="8pt" />
<TitleStyle BackColor="White" BorderColor="Black"
BorderWidth="4px" Font-Bold="True"
Font-Size="12pt" ForeColor="#333399" />
</asp:Calendar>
 

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top