Você está na página 1de 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" %>

Você também pode gostar