用javascript可以实现,我这有代码,可以发给你.
解决方案 »
- asp.net服务器控件提交后不隐藏该层
- 类型“list”同时存在于“”
- asp.net Gridview
- 求一个答案关于datagrid,我在属性器里面添加了3个删除,但是事件里面只有一个删除事件????如何区分??
- 我把网站上传到服务器时,他为什么说我 未能加载程序集“App_Web_xjvyde4h”。请确保在访问该页之前已经编译了此程序集。是什么原因啊?
- 如何做出这样的物品编号?PC(前缀)+060807(当天日期)+0001(顺序号)
- 如何在服务器端修改客户端页面中的内容?
- reportviewer报表问题
- ASP.net如何使用mediaPlayer?
- 0分发帖,真心求救!!!
- 高手们帮帮忙吧,俺急等着用啊!在线!
- 大家帮忙想想办法吧!!进者有份!!
自己编程吧,这是思路
<asp:Panel ID="panel1" Visible="False" style="FILTER: Alpha(Opacity=80,); LEFT: 0px; POSITION: absolute; TOP: 0px" Runat="server">
<asp:Calendar id="c1" BorderColor="Black" BorderStyle="Solid" BackColor="White" Font-Size="9pt" Height="250px" Width="330px" ForeColor="Black" Runat="server" Visible="true" Font-Names="Verdana" CellSpacing="1">
<TodayDayStyle ForeColor="White" BackColor="#999999"></TodayDayStyle>
<DayStyle BackColor="#CCCCCC"></DayStyle>
<NextPrevStyle Font-Size="8pt" Font-Bold="True" ForeColor="White"></NextPrevStyle>
<DayHeaderStyle Font-Size="8pt" Font-Bold="True" Height="8pt" ForeColor="#333333"></DayHeaderStyle>
<SelectedDayStyle ForeColor="White" BackColor="#333399"></SelectedDayStyle>
<TitleStyle Font-Size="9pt" Font-Bold="True" Height="12pt" ForeColor="White" BackColor="#333399"></TitleStyle>
<OtherMonthDayStyle ForeColor="#999999"></OtherMonthDayStyle>
</asp:Calendar>
</asp:Panel>
然后再写后台代码:
private void i1_Click(object sender, System.Web.UI.ImageClickEventArgs e)
{
if((bool)ViewState["t1ort2"] == false)
{
ViewState["t1ort2"] = true;
}
panel1.Style["LEFT"] = "180 px";
panel1.Visible = true; } private void i2_Click(object sender, System.Web.UI.ImageClickEventArgs e)
{
if((bool)ViewState["t1ort2"] == true)
{
ViewState["t1ort2"] = false;
}
panel1.Style["LEFT"] = "300 px";
panel1.Visible = true;
} private void c1_SelectionChanged(object sender, System.EventArgs e)
{
if((bool)ViewState["t1ort2"] == true)
t1.Text = c1.SelectedDate.ToShortDateString();
else
t2.Text = c1.SelectedDate.ToShortDateString();
panel1.Visible = false;
}