要禁用自动回了日历控制ASP.net [英] To disable autopostback for Calender Control in ASP.net

查看:212
本文介绍了要禁用自动回了日历控制ASP.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

荫尝试使用System.Web.UI.WebControls.Calender。

Iam trying to use System.Web.UI.WebControls.Calender.

但是,当我选择任何日期,它会自动后背上。有什么办法来避免这种行为。

But when I select any date , It post backs automatically. Is there any way to avoid this behavior.

(我没有看到,我设置为False,以避免这种情况通常属性的AutoPostBack)

(I dont see the usual property AutoPostback which I set to False to avoid this behavior)

我只需要一次用户提交表单选定的日期。

I need the selected date only once user submits the form.

注意 - 我使用VS2008

Note- I am using VS2008

推荐答案

我一般避免避免MS日历控件,因为我觉得这样很难与和作风。你有没有考虑类似的jQuery UI的日期选择器,可以作为您需要和更容易的风格后了。

I generally avoid avoid the MS calender control because I find it so hard to work with and style. Have you considered something like the jQuery UI date picker, works as you need and far easier to style after too.

http://jqueryui.com/demos/datepicker/#inline

这篇关于要禁用自动回了日历控制ASP.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆