calendar控件向detailsview输入日期
<asp:DetailsView ID= "DetailsView1 " runat= "server " Height= "50px " Width= "600px " AutoGenerateInsertButton= "True " AutoGenerateRows= "False " DataKeyNames= "ID " DataSourceID= "SqlDataSource1 " DefaultMode= "Insert ">
<RowStyle HorizontalAlign= "Center " />
<Fields>
<asp:BoundField DataField= "ID " HeaderText= "ID " InsertVisible= "False " ReadOnly= "True "
SortExpression= "ID " />
<asp:BoundField DataField= "版本 " HeaderText= "版本 " SortExpression= "版本 " />
<asp:TemplateField HeaderText= "发布时间 " SortExpression= "发布时间 ">
<EditItemTemplate>
<asp:TextBox ID= "TextBox2 " runat= "server " Text= ' <%# Bind( "发布时间 ") %> '> </asp:TextBox>
</EditItemTemplate>
<InsertItemTemplate>
<asp:TextBox ID= "TextBox2 " runat= "server " Text= ' <%# Bind( "发布时间 ") %> ' OnTextChanged= "TextBox2_TextChanged "> </asp:TextBox>
<asp:Button ID= "Button1 " runat= "server " OnClick= "Button1_Click " Text= "▼ " ToolTip= "选择日期 " />
<asp:Calendar ID= "Calendar1 " runat= "server " OnSelectionChanged= "Calendar1_SelectionChanged " Visible= "False " BackColor= "#FFFFCC " BorderColor= "#FFCC66 " BorderWidth= "1px " DayNameFormat= "Shortest " Font-Names= "Verdana " Font-Size= "8pt " ForeColor= "#663399 " Height= "200px " ShowGridLines= "True " Width= "220px ">