Assign today's date to asp calendar (VB.net)
<%@ Page Language="VB" Trace="true" %> <script runat="server"> Sub Page_Load() Label1.Text = "www.java2s.com" Calendar1.TodaysDate = DateTime.Now End Sub </script> <html> <head> <title>Show Trace</title> </head> <body> <form id="form1" runat="server"> <div> <asp:Label id="Label1" Runat="server" /> <asp:Calendar id="Calendar1" TodayDayStyle-BackColor="Yellow" Runat="server" /> </div> </form> </body> </html>