Book Image

SharePoint Designer Tutorial: Working with SharePoint Websites

By : Mike Poole
Book Image

SharePoint Designer Tutorial: Working with SharePoint Websites

By: Mike Poole

Overview of this book

Table of Contents (17 chapters)
SharePoint Designer Tutorial
Credits
About the Author
About the Reviewer
Preface
Index

The Calendar Control


One of the nicest controls that SharePoint provides us with is the Calendar control. This control makes it easy for users to add a date into a form field. You will no doubt have seen these controls in use when booking a flight or a hotel room online. They are especially useful in helping to prevent confusion that can arise from the different way that North America and Europe treat dates (i.e. month/day/year as opposed to day/month/year).

We will add a Calendar control to a new page and use it to populate a text field:

  1. Create a new ASPX page and call it birthday.aspx.

  2. Type My birthday is: into the form on the page.

  3. Drag a TextBox control from the Standard controls in the Toolbox onto the page to the right of the text we have just added.

  4. Right-click on the TextBox control and select Properties from the shortcut menu.

  5. Change the ID of the TextBox from TextBox1 to txtBirthday.

  6. Next, we will drag a Calendar control from the Standard controls in the Toolbox onto the page.

  7. Right-click...