Properti SelectedDate ASP.NET
Definisi dan Penggunaan
Properti SelectedDate digunakan untuk menata atau mengembalikan tanggal yang dipilih di kalender.
Contoh
Contoh 1
Contoh di bawah ini dapat menampilkan tanggal yang dipilih saat tanggal tertentu dipilih:
<script language="VB" runat="server"> Sub Change(obj As Object, e As EventArgs) Response.Write("Tanggal: ") Response.Write(cal1.SelectedDate.ToShortDateString()) End Sub </script> <form runat="server"> <asp:Calendar id="cal1" runat="server" OnSelectionChanged="Change" /> </form>
Contoh
- Atur SelectedDate Kontrol Calendar