选择日期后如何隐藏日历控件 [英] how to invisible the calender control after selection of date
本文介绍了选择日期后如何隐藏日历控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个链接按钮.
I have a link button.
<asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">Issue
Date</asp:LinkButton>
protected void LinkButton1_Click(object sender, EventArgs e)
{
Calendar1.Visible = true;
}
选择日期后,我想使calender1控件可见.
I want visible false the calender1 control after selection of date.
推荐答案
您可以在
中编写它
Calender_Selectionindexchanged事件
You can write it in
Calender_Selectionindexchanged event
设置Calendar1.Visible = false;在日历控件的selectedindex更改中
set Calendar1.Visible = false; in the selectedindexchanged of the calendar control
,这很容易..
it is pretty easy..
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
Calendar1.Visible = false;
}
那么它将隐藏日历控件.我希望从一开始Calendar1属性Visible = false
希望这对您有帮助...
then it will hide the calendar control. i hope from the start Calendar1 property Visible = false
hope this will help...
这篇关于选择日期后如何隐藏日历控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文