Posted by : Anwar Hossain
Category : How to use ajax toolkit in asp.net C#

how to use ajax calendar extender in asp net c#

Dear viewers hear I will show how to use ASP.NET AJAX Calender Extender with a textbox. This Calender Extender pass date time value to the textbox so that it can be saved database date time field. I have also used a calendar image to clearly view so you need to take an image control and calneder image icon. It can be said very useful as a cliendside easily display. At first we need to take a text box then take image control and assign calendar icon to the image control . Now add AJAX CalendarExtender tag to the page

Use ajax calendar extender in ASP.NET C#

HTML

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
  <title></title>
</head>
<body>
  <form id="form1" runat="server">
  <div>
  <asp:TextBox ID="txtDate" runat="server" />
  <asp:CalendarExtender ID="txtDate_CalendarExtender" runat="server"
  Enabled="True" PopupButtonID="Image1" TargetControlID="txtDate">
  </asp:CalendarExtender>
  <asp:Image ID="Image1" runat="server" ImageUrl="~/CalenderImageIcon.jpg"
  Width="18px" />
  <br />
  </div>
  <asp:ScriptManager ID="ScriptManager1" runat="server">
  </asp:ScriptManager>
  </form>
</body>
</html>

Out Put

How-to-use-ajax_-calendar_-extender_-in_asp.net



Realted Article Headline

How to use TextBoxWatermarkExtender in asp.net using c#
How to use Ajax AutoCompleteExtender control in asp.net using c#
How to use Ajax Collapsible panel control in asp.net c#
How to use ASP.Net AJAX Control Toolkit ModalPopupExtender Control in asp.net c#
how to add an Ajax Control Toolkit Accordion to a page
How to use html editor Ajax control toolkit example in c#
How to use Ajax ConfirmButtonExtender in asp.net using c#
how to use ajax calendar extender in asp net c#
How to use ajax toolkit FilteredTextBox Control in c#

Article Category

How to create asp.net control dynamically
Learn HTML for beginner
DataList example in C Sharp
Mail sending in asp.net c#
State Management in ASP C #
Basic sql tutorial for Beginner
DataTable example in ASP.Net C#
How to use LINQ in ASP.NET C#
asp.net c # basic tutorial
How to use ajax toolkit in asp.net C#
How to use different types of validation control using asp.net c#
How to use grid view in asp.net c#
Protected by Copyscape Online Plagiarism Detection