日历SelectionChanged [英] calendar SelectionChanged

查看:55
本文介绍了日历SelectionChanged的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个基本的日历和一个SelectionChanged事件(asp.net 2.0)。


如果用户再次选择相同的日期,我该如何处理它,在这种情况下

SelectionChanged事件未被触发,因为,选择的日期

没有改变。


是否有calendar.clearSelection类型方法在我可以使用的日历上?

I have a basic calendar and a SelectionChanged event (asp.net 2.0).

How can I handle it when a user chooses the same date again, in this case
the SelectionChanged event is not fired because, well, the date selected
hasnt changed.

Is there a calendar.clearSelection type method on the calendar I can use?

推荐答案

" NH" < NH@discussions.microsoft.com写信息

新闻:40 **************************** ****** @ microsof t.com ...
"NH" <NH@discussions.microsoft.comwrote in message
news:40**********************************@microsof t.com...

>我有一个基本的日历和一个SelectionChanged事件(asp.net 2.0)。 />

当用户再次选择相同的日期时,如何处理它,在这种情况下,

不会触发SelectionChanged事件,因为选择的日期是

没有改变。
>I have a basic calendar and a SelectionChanged event (asp.net 2.0).

How can I handle it when a user chooses the same date again, in this case
the SelectionChanged event is not fired because, well, the date selected
hasnt changed.



这绝对正确......

That''s absolutely right...


是否有calendar.clearSelection类型方法我可以使用的日历?
Is there a calendar.clearSelection type method on the calendar I can use?



你想做什么......?如果用户点击日历但是选项没有改变,你想要发生什么??

What are you trying to do...? What do you want to happen if the user clicks
the calendar but the selection hasn''t changed...?


我是我的全部这样做是将选定的日期放入文本框中。这是一个数据

输入屏幕,所以有时选择的日期将与最后一个相同。


有什么方法可以处理这个?我认为这是一个常见的问题。


Mark Rae写道:
All I am doing is placing the selected date into a textbox. It is a data
entry screen so sometimes the selected date will be the same as the last one.

Any way of handling this? I thought this would be a common problem.

"Mark Rae" wrote:

" NH" < NH@discussions.microsoft.com写信息

新闻:40 **************************** ****** @ microsof t.com ...
"NH" <NH@discussions.microsoft.comwrote in message
news:40**********************************@microsof t.com...

我有一个基本的日历和一个SelectionChanged事件(asp.net 2.0)。


当用户再次选择相同的日期时,如何处理它,在这种情况下

SelectionChanged事件未被触发,因为,选择的日期

没有改变。
I have a basic calendar and a SelectionChanged event (asp.net 2.0).

How can I handle it when a user chooses the same date again, in this case
the SelectionChanged event is not fired because, well, the date selected
hasnt changed.



这绝对正确......


That''s absolutely right...


是否有calendar.clearSelection类型方法我可以使用的日历?
Is there a calendar.clearSelection type method on the calendar I can use?



你想做什么......?如果用户点击日历但是选择没有改变,你想要发生什么??


What are you trying to do...? What do you want to happen if the user clicks
the calendar but the selection hasn''t changed...?


" NH" < NH@discussions.microsoft.com写信息

新闻:F9 **************************** ****** @ microsof t.com ...
"NH" <NH@discussions.microsoft.comwrote in message
news:F9**********************************@microsof t.com...

我所做的就是将所选日期放入文本框中。这是一个数据

输入屏幕,所以有时所选日期将与上一个

一个相同。


任何方式处理这个?我认为这将是一个常见的问题。
All I am doing is placing the selected date into a textbox. It is a data
entry screen so sometimes the selected date will be the same as the last
one.

Any way of handling this? I thought this would be a common problem.



我在这里显然没有理解这个问题...


你有一个文本框,大概是一个按钮或弹出

日历的东西,对吧......?


用户点击日期,文本框更新,对...?


此时,你不要关闭日历......?

I''m clearly not grasping the problem here...

You have a textbox and, presumably, a button or something which pops the
calendar, right...?

The user clicks a date, and the textbox is updated, right...?

At this point, don''t you close the calendar...?


这篇关于日历SelectionChanged的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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