I am using Ajax tool kit calendar extender control, I want to limit the year selection from 1900 to current year only. I have seen here Year Limit to use StartDate and EndDate But when in code behind I am writing

calendarext.StartDate

its giving error

'AjaxControlToolkit.CalendarExtender' does not contain a definition for 'StartDate' and no extension method 'StartDate' accepting a first argument of type 'AjaxControlToolkit.CalendarExtender' could be found (are you missing a using directive or an assembly reference?)

Even in designer I checked in properties window,there is no such property exists for this control

有帮助吗?

解决方案

Try getting a new version of Ajax control toolkit..The Start and EndDate properties were introduced in the releases after September 2011..I have getting both Start Date and End Date properties on calendar extender..

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top