ctlCalendar
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="ctlCalendar
<asp:textbox id="TextBox
<input type="button" id="Button
<asp:Panel id="pnlCalendar" runat="server" style="POSITION: absolute">
<asp:calendar id="Calendar
DayNameFormat="Full" ForeColor="Black" Font
CellPadding="
<TodayDayStyle ForeColor="Black" BackColor="#CCCCCC"></TodayDayStyle>
<SelectorStyle BackColor="#CCCCCC"></SelectorStyle>
<DayStyle Wrap="False" BorderStyle="Dashed"></DayStyle>
<NextPrevStyle VerticalAlign="Bottom"></NextPrevStyle>
<DayHeaderStyle Font
<SelectedDayStyle Font
<TitleStyle Font
<WeekendDayStyle BackColor="LightSteelBlue"></WeekendDayStyle>
<OtherMonthDayStyle ForeColor="Gray"></OtherMonthDayStyle>
</asp:calendar>
</asp:Panel>
ctlCalendar
namespace calendar
{
using System;
using System
using System
using System
using System
using System
/// <summary>
/// ctlCalendar 的摘要說明
/// </summary>
public class ctlCalendar : System
{
protected System
protected System
protected System
protected System
private void Page_Load(object sender
{
// 在此處放置用戶代碼以初始化頁面
if (!Page
{
this
this
}
else
{
string id = Page
if (id != this
{
this
}
else
{
this
}
}
Page
"<script> function On"+this
"_pnlCalendar
"_pnlCalendar
"_pnlCalendar
this
}
#region Web 窗體設計器生成的代碼
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: 該調用是 ASP
//
InitializeComponent();
base
}
/// <summary>
/// 設計器支持所需的方法
/// 修改此方法的內容
/// </summary>
private void InitializeComponent()
{
this
this
}
#endregion
#region 日歷選擇時的事件
private void Calendar
{
this
this
}
#endregion
}
}
From:http://tw.wingwit.com/Article/program/net/201311/14231.html