0% found this document useful (0 votes)
287 views2 pages

Obout Calender Component

This document provides instructions for installing and using the Obout Calendar ASP.NET control. It describes copying necessary files to the website folder, registering the control, and using it in date picker mode with a textbox or calling a JavaScript function on date selection.

Uploaded by

subandiwahyudi08
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
287 views2 pages

Obout Calender Component

This document provides instructions for installing and using the Obout Calendar ASP.NET control. It describes copying necessary files to the website folder, registering the control, and using it in date picker mode with a textbox or calling a JavaScript function on date selection.

Uploaded by

subandiwahyudi08
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Ask any questions support@obout.

com

Install for ASP.NET

1. Copy DLLs from folder bin to C:\Inetpub\wwwroot\bin\

2. Copy folder calendar to C:\Inetpub\wwwroot\ (root of your web site)

<form runat="server">

<ASP:TextBox ID="txtDate" runat="server" />

<obout:Calendar runat="server"
StyleFolder="/calendar/styles/default"
DatePickerMode="true"
TextBoxId="txtDate"
DatePickerButtonText="<img src='/calendar/icon2.gif'>" />

</form>

When to use it

1. When in date picker mode, date is modified according to DatFormat.

2. When OnClientDateChanged is specified, formatted date is passed to the function as a string.

How to use it

Example:
1. Date picker mode:
<ASP:TextBox
ID="txtDate"
runat="server" />
<obout:Calendar << Wednesday, December 14, 2005 >>
runat="server"
StyleFolder = December 2005 January 2006
"/calendar/styles/default" Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa
DatePickerMode 27 28 29 30 1 2 3 1 2 3 4 5 6 7
= "true" 4 5 6 7 8 9 10 8 9 10 11 12 13 14
TextBoxId =
11 12 13 14 15 16 17 15 16 17 18 19 20 21
"txtDate"
DateFormat = 18 19 20 21 22 23 24 22 23 24 25 26 27 28
"mmmm, dd yyyy"> 25 26 27 28 29 30 31 29 30 31 1 2 3 4
</obout:Calendar> 1 2 3 4 5 6 7 5 6 7 8 9 10 11

2. Javascript function: Example:


<script
language="JavaScript">
function << 12/14/2005 >>
dateChanged(newDate)
December 2005 January 2006
{
alert("The new Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa
date is: " + newDate); 27 28 29 30 1 2 3 1 2 3 4 5 6 7
} 4 5 6 7 8 9 10 8 9 10 11 12 13 14
</script> 11 12 13 14 15 16 17 15 16 17 18 19 20 21
18 19 20 21 22 23 24 22 23 24 25 26 27 28
<obout:Calendar
runat="server" 25 26 27 28 29 30 31 29 30 31 1 2 3 4
ID="Calendar2" 1 2 3 4 5 6 7 5 6 7 8 9 10 11
StyleFolder =
"/calendar/styles/default"
DatePickerMode =
"true"

OnClientDateChanged =
"dateChanged"
DateFormat =
"mmm dd, 'yy">
</obout:Calendar>

1. How to use Calendar in my asp.net page?

At the top of your ASP.NET source-code page add:


<%@ Register TagPrefix="obout" Namespace="OboutInc.Calendar"
Assembly="obout_Calendar_Pro_Net" %>
You can now use Calendar just like in the examples.

10. Can you call a javascript function when date is selected?

You can use javascript functions. Here is an example:


<script language="javascript">
function showDate(selectedDate) {
alert(selectedDate);
}
</script>
<obout:Calendar runat="server" OnClientDateChanged="showDate" />

<%@ Register TagPrefix="obout" Namespace="OboutInc.CalendarBasic" Assembly="obout_Calendar_Net" %>

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy