HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

ASP.NET DayNumberText Property


CalendarDay Control Reference Complete CalendarDay Control Reference

Definition and Usage

The DayNumberText property is used to get a string representing the day number of a date.


Example

The following example shows how to get the DayNumberText from a selected day in a calendar:

<script runat="server">
Sub DaySelect(obj As Object, e As DayRenderEventArgs)
  If e.Day.IsSelected Then
  Label1.Text = e.Day.DayNumberText
  End If
End Sub
</script>

<form runat="server">
<asp:Calendar id="cal1" runat="server"
OnDayRender="DaySelect" />
The selected date is:
<asp:Label id="Label1" runat="server"/>
</form>

Show example »

CalendarDay Control Reference Complete CalendarDay Control Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE