Sure thing.
HTML...
<asp:calendar
id="calEvents"
width="80%"
runat="server"
nextmonthtext="<sup>Next</sup>"
prevmonthtext="<sup>Prev</sup>"
showgridlines="True"
style="border:solid 1px #003399;">
<todaydaystyle horizontalalign="Right" verticalalign="Top" />
<daystyle horizontalalign="Right" forecolor="#3366FF" verticalalign="Top" />
<nextprevstyle verticalalign="Top" />
<dayheaderstyle horizontalalign="Center" height="16px" verticalalign="Middle" />
<selecteddaystyle font-bold="True" horizontalalign="Right" forecolor="Blue" verticalalign="Top" />
<titlestyle backcolor="#eeeeee" height="18px" verticalalign="Middle" />
<weekenddaystyle horizontalalign="Right" forecolor="#666666" cssclass="CalendarWeekendDay" verticalalign="Top" />
<othermonthdaystyle horizontalalign="Right" forecolor="#AAAAAA" verticalalign="Top" />
</asp:calendar>
Code Behind...
protected System.Web.UI.WebControls.Calendar calEvents;
protected System.Web.UI.WebControls.Literal litEvents;
private void Page_Load(object sender, System.EventArgs e)
{
// declare vars
string strDate; // date
// if new page load, set default date
if (!IsPostBack) calEvents.SelectedDate = DateTime.Today;
// initialize vars
strDateArg = calEvents.SelectedDate.ToShortDateString();
litEvents.Text = calEvents.SelectedDate.ToShortDateString();
}
Let me know if this helps...I trimmed out some other code that doesn't affect this (it was within a try/catch block). Thanks for taking a look at it. ________________________________________
Michael C Flanakin
Indigo Web Systems
michael.flanakin@indigows.com