在asp中的日历中停止回复 [英] stop postback in selectedchanged in calender in asp
本文介绍了在asp中的日历中停止回复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
i在asp.net中有日历:
hi all,
i have calender in asp.net :
<asp:Calendar ID="Calendar1" runat="server" Height="16px" Width="25px" onselectionchanged="Calendar1_SelectionChanged" >
</asp:Calendar>
这是后面的代码和代码:
this is the code and code behind is :
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
TextBox1.Text = Calendar1.SelectedDate.ToShortDateString();
}
i想要停止在pickchanged中回发我想要阻止它完全没有隐藏它,有没有人有任何想法?
因为我开始javascript
i want to stop postback in selectionchanged i want to stop it totally not hiding it , does any one have any idea ?
as i am begining in javascript
推荐答案
参考:Disable+post+back+for+calendar+control [ ^ ]
自动回发-false或
Auto Postback -false or
protected void cal_DayRender(object sender, DayRenderEventArgs e)
{
e.Day.IsSelectable = false;
}
或使用jquery日历
or use jquery calender
您可以使用Ajax工具包日历控件
或使用更新面板
You can use Ajax toolkit calender control
or use update panel
这篇关于在asp中的日历中停止回复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文