Quantcast
Viewing all articles
Browse latest Browse all 4356

Commented Issue: CalendarExtender IE9 issue when selecting dates [27137]

I found an issue with the CalendarExtender when it is used in IE9...this same item seems to work in previous IE versions or IE9 compatibility mode. When I select a date that has a month or day with length of 1 digit, the leading zero(s) are not added in the TextBox. For example, I select April 9, 2012 and it is formatted in the textbox as 4/9/2012 instead of 04/09/2012.

This happens when:
- I don't set the CalendarExtender.Format value (take defaults)
- TargetControlID points to a TextBox and PopupButtonID points to an ImageButton (as they should)

I fixed it by setting the Format to "MM/dd/yyyy" explicitly.

I hope this helps others who may be frustrated by this. Also, anyone know why this is an IE9 issue?
Comments: By the way, the problem with this is that validation doesn't work correctly when it is formatted without leading zeroes. So when I posted back with a button click, I was getting a 'Date required' error message when a perfectly fine date was in the control.

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>