NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Controlling Month Navigation

By default, the calendar displays the month containing today's date. Users can move from month to month in the Calendar Web control by clicking month navigation links (actually, LinkButton Web controls) in the title bar of the calendar. You can control whether these links are available for the user to click.

You can also navigate programmatically, which is useful if you want to provide an alternate way for users to display a specific month. Finally, you can respond to an event raised when the user navigates.

To enable or disable user month navigation

To navigate months programmatically

If month navigation is enabled, the control raises an event when the user moves to another month. You can handle this event in order to replace or amend the default month navigation. For example, if you are using two Calendar controls in a trip planning page, you can prevent the user from setting the start-date month earlier than the end-date month.

To respond to a month navigation event

See Also

Using the Calendar Web Control