Ajax CalenderControl is used to pick up the date from Ajax
calendar in web page. It also take a date with time . You can customized as per
your requirement.
If you want to show the calendar on your website then you
can use ajax calendar control also.
Calender.aspx:
<%@
Page Language="C#" AutoEventWireup="true" CodeFile="AjaxCalenderControl.aspx.cs" Inherits="Ajax_AjaxCalenderControl"
%>
<%@
Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit"
tagprefix="asp"
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD
XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="Label1" runat="server" Text="Date"></asp:Label> <asp:TextBox ID="TextBox1"
runat="server"></asp:TextBox>
<asp:CalendarExtender ID="TextBox1_CalendarExtender" runat="server"
Enabled="True"
Format="dd-mm-yyyy"
TargetControlID="TextBox1">
</asp:CalendarExtender>
</div>
</form>
</body>
</html>
No comments:
Post a Comment
Note: only a member of this blog may post a comment.