<%@ Page Language="vb" AutoEventWireup="false" Codebehind="calshow.aspx.vb" Inherits="WebFormDemo.calshow"%>
<HTML>
	<HEAD>
		<meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
		<meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
		<meta name="vs_defaultClientScript" content="JScript">
		<meta name="vs_targetSchema" content="Internet Explorer 5.0">
		<script language="javascript">
<%
			Response.write ( "function senddate(){	" & vbCrLF )
			Response.write ( "window.opener.calendar." & sendto.value & ".value='" & Calendar1.SelectedDate.ToShortDateString & "';" & vbCrLF )
			Response.write ("window.close();" & vbCRLF)
			Response.write ( "}" & vbCrLF )
%>
		</script>
	</HEAD>
	<body MS_POSITIONING="FlowLayout" id="mybody" runat="server">
		<form id="calshow" method="post" runat="server">
			<span id="myspan" runat="server"></span>
			<input type="hidden" id="sendto" runat="server" NAME="sendto">
			<asp:Calendar id="Calendar1" titlestyle-backcolor="#FFFFEE" SelectedDayStyle-BackColor="#8DA2E5"
				SelectedDayStyle-Font-Bold="True" runat="server" NAME="Calendar1" BorderWidth="1px" BackColor="#FFFFCC"
				Width="88px" DayNameFormat="FirstLetter" ForeColor="#663399" Height="56px" Font-Size="8pt"
				Font-Names="Verdana" BorderColor="#FFCC66" ShowGridLines="True">
				<TodayDayStyle ForeColor="White" BackColor="#FFCC66"></TodayDayStyle>
				<SelectorStyle BackColor="#FFCC66"></SelectorStyle>
				<NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC"></NextPrevStyle>
				<DayHeaderStyle Height="1px" BackColor="#FFCC66"></DayHeaderStyle>
				<SelectedDayStyle Font-Bold="True" BackColor="#CCCCFF"></SelectedDayStyle>
				<TitleStyle Font-Size="9pt" Font-Bold="True" ForeColor="#FFFFCC" BackColor="#990000"></TitleStyle>
				<OtherMonthDayStyle ForeColor="#CC9966"></OtherMonthDayStyle>
			</asp:Calendar>
			<button align="center" onclick="window.close();" id="button1" name="button1" type="button">
					close
				</button>
			<center>&nbsp;
			</center>
		</form>
	</body>
</HTML>
