<CalendarButton>

The CalendarButton tag renders as a push-button at run-time. When clicked, a calendar date-picker pops up to enable the user to select a date.

Syntax

<CalendarButton
    AccessKey="string"
    BackColor="color name|#dddddd"     BorderColor="color name|#dddddd"
    BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|Groove|Ridge|Inset|Outset"
    BorderWidth="size"
    CssClass="string"
    Font-Bold="True|False"
    Font-Italic="True|False"
    Font-Names="string"
    Font-Overline="True|False"
    Font-Size="string|Smaller|Larger|XX-Small|X-Small|Small|Medium|Large|X-Large|XX-Large"
    Font-Strikeout="True|False"
    Font-Underline="True|False"
    ForeColor="color name|#dddddd"     Format="date-formatting expression"
    Height="size"
    Style="string"
    TabIndex="integer"     Target="ID of control that will receive the selected date"
    Text="string"
    ToolTip="string"
    Visible="True|False"
    Width="size"   />
 

Remarks

Back to top

Example

<addform>
  <submitcommand commandtext="INSERT INTO Users(FirstName, LastName) VALUES(@FirstName, @LastName)" />
  <table>
    <tr>
      <td>
         <label for="txtEventDate" text="Event Date" />
         <textbox id="txtEventDate" datafield="EvtDate" datatype="datetime" />
         <calendarbutton text="Select Date" target="txtEventDate" format="yyyy-MM-dd" />

       </td>
    </tr>
    ...
    <tr>
      <td colspan="2">
        <addbutton text="Add"/> <cancelbutton text="Cancel"/>
      </td>
    </tr>
  </table>
</addform>
Back to top