Version

SetDropDownCalendar Method

Set calendar which will be used as drop-down.
Syntax
'Declaration
 
Public Sub SetDropDownCalendar( _
   ByVal calendar As WebMonthCalendar _
) 
public void SetDropDownCalendar( 
   WebMonthCalendar calendar
)

Parameters

calendar
Reference to calendar.
Remarks

That method is equivalent to setting value of DropDownCalendarID to the ClientID of calendar.

That method can be used only after calendar was added to its container and Page, otherwise, the ClientID and drop-down functionality may fail.

It is not recommended to set that property after the Page.OnLoad event.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also