aspx Tutorial

NET Articles,jQuery demo, asp.net with jQuery, online tutorial,Jquery, SilverLight, Javascript, asp.net,JSON, MVC,.NET Articles,demo, Web Services,
Advertise Here

Toolbar

Get our toolbar!

Advertize



Posted by Aamir Hasan   on Thursday, July 25, 2013 Total Views:  

In this example you will see how to highlight current date in Ajax toolkit calendar extender. I have also override the CSS class to change the background color of current Date. The following step are required to highlight current date in calendar extender.

Step 1) Register the AjaxControlToolkit at the top of the page as given below

<%Register Assembly="AjaxControlToolkit "Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit"%>


Step 2)
Add ToolkitScriptManager under the form section of aspx page.

<ajaxToolkit:ToolkitScriptManager ID="ScriptManager1" runat="server"/>


Step 3)
Add server control to aspx page.

<asp:TextBox ID="TextBox1" runat="server"/>

<asp:Image ID="Image1" runat="server" ImageUrl="icon_Calendar.png"/>

<ajaxtoolkit:calendarextender id="CalendarExtender1" runat="server" targetcontrolid="TextBox1" popupbuttonid="Image1" />

 
 

Step 4) Add CSS code under the head section of page

<style type="text/css">

.ajax__calendar .ajax__calendar_today .ajax__calendar_day

        {

            border-color: #0066cc;

            background-color: #0099ee;

            color: #fff;

            font-weight: bold;

        }

</style>

 


Note: The current version of the AJAX Control Toolkit is not compatible with ASP.NET 2.0. 

Output

 

Demo

Click here to see demo

Download

highlight-current-date.aspx (1.06 kb)

Tags:
Category:
Protected by Copyscape Online Plagiarism Tool

Comments (2) -

agua bendita reserva
agua bendita reserva United States
8/6/2015 4:49:43 PM #

You are my  aspiration , I  possess few  web logs and  very sporadically  run out from to post .

real psychic readings
real psychic readings United States
9/10/2015 8:57:42 PM #

Choose crystals which improve psychic abilities, such as Lapis Luzuli, Moonstone, Merlinite, and Quartz. Pre-historic man used drawings of his hunt to depict an daily scene from his lifestyle.

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

Advertizement 1
Advertizement 2
Advertizement 3
Advertizement 4
Advertizement 5