ASP.NET

1. ASP.NET Introduction 2. Comp of .Net Framework 3.5 3. Sys.Req for VS 2008 4. ASP.NET Envrmnt Setup 5. VS2010 Ultimate Sys.Req 6. Installing VS 2010 7. VS 2012 Sys.Req 8. Installing VS Exp 2012 9. Start the VS 2008 10. Application Life Cycle 11. Page Life Cycle 12. Page Life Cycle Events 13. ASP.NET Example 14. Event Handling 15. Default Events 16. Server Side 17. Request Object 18. Response Object 19. Server Controls 20. Server Controls Properties 21. Server Controls Methods 22. HTML Server Controls 23. Client Side 24. ASP.NET Basic Controls 25. TextBox Control 26. CheckBox Controls 27. RadioButton Controls 28. ListBox Control 29. HyperLink Control 30. Image Control 31. BulletedList Control 32. ASP.NET Directives 33. Implements Directive 34. Master Type Directive 35. Page Directive 36. PreviousPage Type 37. Managing State 38. Control State 39. Cookies 40. Query Strings 41. Server-Side State 42. Session State 43. Validation Controls 44. Required FieldValidator 45. Range Validator 46. Compare Validator 47. RegularExpressionValidator 48. Custom Validator 49. Validation Summary 50. Data Source Control 51. AdRotator Control 52. Calendar Control 53. Calendar Control Example 54. Panel Control 55. Panel Control Example 56. Multi Views Control 57. MultiView & View controls 58. MultiView Control Example 59. FileUpload Control 60. FileUpload Control Eg 61. AJAX Control 62. UpdatePanel control 63. UpdateProgress Control 64. Custom Controls 65. Custom Control Eg 66. Personalization 67. Create Simple Profile 68. ADO.NET 69. ADO.NET Objects 70. DataTable 71. DataRow 72. DataColumn 73. Object Example 74. Error Handling 75. Tracing Errors 76. Debugger 77. Security 78. Authentication 79. Authorization 80. LINQ 81. LINQ Query Operators 82. LINQ Example 83. Caching 84. Data Caching 85. Output Caching 86. Object Caching 87. Web Services 88. Create Web Services Eg 89. Web & Machine.config 90. Settings Schema 91. ASP.NET Deployment 92. XCopy Deployment 93. Web Setup Project 94. ASP Interview Part 1 95. ASP Interview Part 2 96. ASP Interview Part 3 97. ASP Interview Part 4 98. ASP Interview Part 5 99. ASP Interview Part 6
Pr.Pg Next Pg

ASP.NET Calendar Control tutorials

 

  • The Calendar Control is used to displays a single-month calendar that allows the user to select dates and move to the next or previous month.

  • You can specify whether the Calendar control allows you to select a single day, week, or entire month by setting the SelectionMode property.

  • By default, the control displays the days of the month, day headings for the days of the week, a title with the month name and year, links for selecting individual days of the month, and links for moving to the next and previous month. You can customize the appearance of the Calendar control by setting the properties that control the style for different parts of the control.

 

Syntax:

The Syntax of the Calendar control:

 

<asp:Calendar id="Calendar1" CellPadding="pixels" CellSpacing="pixels"

DayNameFormat="FirstLetter|FirstTwoLetters|Full|Short" runat="server">

<TodayDayStyle property="value"/>

<DayHeaderStyle property="value"/>

<DayStyle property="value"/>

<NextPrevStyle property="value"/>

<OtherMonthDayStyle property="value"/>

<SelectedDayStyle property="value"/>

<SelectorStyle property="value"/>

<TitleStyle property="value"/>

<TodayDayStyle property="value"/>

<WeekendDayStyle property="value"/>

</asp:Calendar>


  • The following table shows the lists of the properties of the Calendar control.

Properties

Description

Caption

Sets the caption for the calendar control

CaptionAlign

Sets the alignment for the caption

Cellpadding

Specify the number of space between the data and the cell.s border.

Cellspacing

Specify the space between cells.

DayHeaderStyle

Specify the style properties for the section that displays the day of the week.

DayNameFormat

Specify the format for displaying the names of the days

DayStyle

Specifies the style for the dates in the displayed month

FirstDayOfWeek

Sets the day of week to display in the first column

NextMonthText

Specify the text displayed for the next month link

NextPrevFormat

Sets the format of the next and previous month link

NextPrevStyle

Specifies the style for the navigation controls in the title sectio

OtherMonthDayStyle

Specifies the style for displaying days that are not in the current month

PrevMonthText

Specifies the text displayed for the previous month link

SelectedDate

Specifies the selected date

SelectedDates

Specifies the collection of DateTime objects representing the selected dates

SelectedDayStyle

Specifies the style for the selected dates on the calendar

SelectionMode

Specifies selection mode to the user, whether the user can select a single day, a week or an entire month.

SelectMonthText

Sets the text for the month

SelectorStyle

Specifies the style properties for the week and month

SelectWeekText

Specifies the text displayed for the week.

ShowDayHeader

Shows or hides the section that displays the days of the week.

ShowGridLines

Shows or hides the gridlines between the days of the month.

ShowNextPrevMonth

Shows or hides the navigation controls to the next or previous month.

ShowTitle

Shows or hides the title section.

TitleFormat

Sets the format for the title of the calendar

TitleStyle

Specifies the style for the title section

TodayDayStyle

Specifies the style for today's date

TodaysDate

Specifies the value for the today’s date

UseAccessibleHeader

Specifies a value that indicates whether to use the table header <th> HTML element for the day headers instead of the table data <td> HTML element.

VisibleDate

Specifies the date that specifies the month to display

WeekendDayStyle

Specifies the style for the weekend dates


Pr.Pg border                                              Next Pg