<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>DotNet Funda</title>
	<atom:link href="http://nikhil3tripathi.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://nikhil3tripathi.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Thu, 02 Apr 2009 08:23:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='nikhil3tripathi.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>DotNet Funda</title>
		<link>http://nikhil3tripathi.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://nikhil3tripathi.wordpress.com/osd.xml" title="DotNet Funda" />
	<atom:link rel='hub' href='http://nikhil3tripathi.wordpress.com/?pushpress=hub'/>
		<item>
		<title>ASP.NET AJAX Calendar Extender – Tips and Tricks</title>
		<link>http://nikhil3tripathi.wordpress.com/2009/04/02/aspnet-ajax-calendar-extender-%e2%80%93-tips-and-tricks/</link>
		<comments>http://nikhil3tripathi.wordpress.com/2009/04/02/aspnet-ajax-calendar-extender-%e2%80%93-tips-and-tricks/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 08:23:27 +0000</pubDate>
		<dc:creator>nikhil3tripathi</dc:creator>
				<category><![CDATA[Asp.Net Ajax]]></category>

		<guid isPermaLink="false">http://nikhil3tripathi.wordpress.com/?p=4</guid>
		<description><![CDATA[ASP.NET AJAX Calendar Extender – Tips and Tricks The CalendarExtender is an ASP.NET AJAX control that is associated with a TextBox control. When the user clicks on the TextBox, a client-side Calendar control pops up. The user can then set a date by clicking on a day, navigate months by clicking on the left and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nikhil3tripathi.wordpress.com&amp;blog=6209913&amp;post=4&amp;subd=nikhil3tripathi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div style="margin:24pt 0 0;"><strong><span style="font-size:x-large;"><span style="font-family:Cambria;color:#365f91;font-size:large;">ASP.NET AJAX Calendar Extender – Tips and Tricks</span></span></strong></div>
<div style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;"> </span></div>
<div style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">The CalendarExtender is an ASP.NET AJAX control that is associated with a TextBox control. When the user clicks on the TextBox, a client-side Calendar control pops up. The user can then set a date by clicking on a day, navigate months by clicking on the left and right arrow and perform other such actions without a postback. In this article, we will see some tips and tricks that can be applied to a CalendarExtender control. If you are new to the CalendarExtender control, you can check out some information about it over </span><a href="http://www.asp.net/ajax/ajaxcontroltoolkit/samples/Calendar/Calendar.aspx"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">here</span></a><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">.</span></div>
<div style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">I assume you have some basic experience developing ASP.NET Ajax applications and have installed the </span><a href="http://www.asp.net/ajax/downloads/"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">ASP.NET Ajax Library</span></a><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;"> and </span><a href="http://www.asp.net/ajax/downloads/"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">ASP.NET Control Toolkit</span></a><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">. As of this writing, the toolkit version is Version 1.0.20229 (if you are targeting Framework 2.0, ASP.NET AJAX 1.0 and Visual Studio 2005) and Version 3.0.20229 (if targeting .NET Framework 3.5 and Visual Studio 2008).</span></div>
<div style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">All the tips shown below have been created using Version 3.0.20229 (targeting .NET Framework 3.5 and Visual Studio 2008).</span></div>
<div style="margin:0 0 10pt;"><strong><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">Tip 1: How to display and hide a Calendar on the click of a Button</span></strong></div>
<div style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">If you want to popup a Calendar on the click of a button, you can use set the PopupButtonID of the CalendarExtender to the ID of the button. In this case, we will be using an ImageButton as shown below:</span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">&lt;</span><span style="color:#a31515;">asp</span><span style="color:blue;">:</span><span style="color:#a31515;">ImageButton</span> <span style="color:red;">runat</span><span style="color:blue;">=”Server”</span> <span style="color:red;">ID</span><span style="color:blue;">=”ImageButton1″</span><span style="color:red;">ImageUrl</span><span style="color:blue;">=”~/Images/Icon1.jpg”</span> <span style="color:red;">AlternateText</span><span style="color:blue;">=”Click here to display calendar”</span> <span style="color:blue;">/&gt;</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">&lt;</span><span style="color:#a31515;">asp</span><span style="color:blue;">:</span><span style="color:#a31515;">TextBox</span> <span style="color:red;">ID</span><span style="color:blue;">=”TextBox1″</span> <span style="color:red;">runat</span><span style="color:blue;">=”server”&gt;&lt;/</span><span style="color:#a31515;">asp</span><span style="color:blue;">:</span><span style="color:#a31515;">TextBox</span><span style="color:blue;">&gt;</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> </span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">&lt;</span><span style="color:#a31515;">cc1</span><span style="color:blue;">:</span><span style="color:#a31515;">CalendarExtender</span> <span style="color:red;">ID</span><span style="color:blue;">=”CalendarExtender1″</span> <span style="color:red;">runat</span><span style="color:blue;">=”server”</span></span></div>
<div style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;font-family:Courier New;"> <span style="color:red;">TargetControlID</span><span style="color:blue;">=”TextBox1″</span> <span style="color:red;">PopupButtonID</span><span style="color:blue;">=”ImageButton1″/&gt;</span></span></div>
<div style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">If you are using an earlier version of the toolkit, you may observe that the ImageButton causes a postback when you click on it again, to close the Calendar. To avoid the postback, use a HTML Image Control instead of the Server side Image Control as shown below:</span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">&lt;</span><span style="color:#a31515;">img</span> <span style="color:red;">alt</span><span style="color:blue;">=”Icon”</span> <span style="color:red;">src</span><span style="color:blue;">=”/Images/Icon1.jpg”</span> <span style="color:red;">id</span><span style="color:blue;">=”Image1″</span> <span style="color:blue;">/&gt;</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">&lt;</span><span style="color:#a31515;">asp</span><span style="color:blue;">:</span><span style="color:#a31515;">TextBox</span> <span style="color:red;">ID</span><span style="color:blue;">=”TextBox1″</span> <span style="color:red;">runat</span><span style="color:blue;">=”server”&gt;&lt;/</span><span style="color:#a31515;">asp</span><span style="color:blue;">:</span><span style="color:#a31515;">TextBox</span><span style="color:blue;">&gt;</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> </span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">&lt;</span><span style="color:#a31515;">cc1</span><span style="color:blue;">:</span><span style="color:#a31515;">CalendarExtender</span> <span style="color:red;">ID</span><span style="color:blue;">=”CalendarExtender1″</span> <span style="color:red;">runat</span><span style="color:blue;">=”server”</span></span></div>
<div><span style="font-size:10pt;font-family:Courier New;"> <span style="color:red;">TargetControlID</span><span style="color:blue;">=”TextBox1″</span> <span style="color:red;">PopupButtonID</span><span style="color:blue;">=”Image1″/&gt;</span></span></div>
<div><strong></strong></div>
<div><strong><span style="font-size:10pt;font-family:Verdana,sans-serif;">Note:</span></strong><span style="font-size:10pt;font-family:Verdana,sans-serif;"> In case you are clicking on the textbox to open the calendar, then in earlier versions of the toolkit, the calendar would not hide automatically when the user clicked anywhere outside the Calendar control. However this was fixed in the later versions. In fact, in the latest version, the Calendar hides automatically when a date is selected.</span></div>
<div><span style="font-size:10pt;font-family:Verdana,sans-serif;">If for some reason you are facing issues with the Calendar not hiding automatically, make sure that you have the latest version of the AJAX Control Toolkit.</span></div>
<div style="margin:0 0 10pt;"><strong></strong></div>
<div style="margin:0 0 10pt;"><strong><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">Tip 2: How to Add a CalendarExtender to a GridView</span></strong></div>
<div style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">If you want to add a CalendarExtender to a GridView, use a template field with a TextBox and CalendarExtender as shown below:</span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">&lt;</span><span style="color:#a31515;">form</span> <span style="color:red;">id</span><span style="color:blue;">=”form1″</span> <span style="color:red;">runat</span><span style="color:blue;">=”server”&gt;</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">&lt;</span><span style="color:#a31515;">asp</span><span style="color:blue;">:</span><span style="color:#a31515;">ScriptManager</span> <span style="color:red;">ID</span><span style="color:blue;">=”ScriptManager1″</span> <span style="color:red;">runat</span><span style="color:blue;">=”server”</span> <span style="color:blue;">/&gt;</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">&lt;</span><span style="color:#a31515;">div</span><span style="color:blue;">&gt;</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">&lt;</span><span style="color:#a31515;">asp</span><span style="color:blue;">:</span><span style="color:#a31515;">GridView</span> <span style="color:red;">ID</span><span style="color:blue;">=”GridView1″</span> <span style="color:red;">runat</span><span style="color:blue;">=”server”</span><span style="color:red;">AutoGenerateColumns</span><span style="color:blue;">=”False”</span> <span style="color:red;">DataKeyNames</span><span style="color:blue;">=”CategoryID”</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:red;">DataSourceID</span><span style="color:blue;">=”SqlDataSource1″</span> <span style="color:red;">ShowFooter</span><span style="color:blue;">=”true”</span><span style="color:red;">AllowPaging</span><span style="color:blue;">=”True”</span> <span style="color:red;">AllowSorting</span><span style="color:blue;">=”True”&gt;</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">&lt;</span><span style="color:#a31515;">Columns</span><span style="color:blue;">&gt;</span> </span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">&lt;</span><span style="color:#a31515;">asp</span><span style="color:blue;">:</span><span style="color:#a31515;">BoundField</span> <span style="color:red;">DataField</span><span style="color:blue;">=”CategoryID”</span><span style="color:red;">HeaderText</span><span style="color:blue;">=”CategoryID”</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:red;">SortExpression</span><span style="color:blue;">=”CategoryID”</span> <span style="color:blue;">/&gt;</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">&lt;</span><span style="color:#a31515;">asp</span><span style="color:blue;">:</span><span style="color:#a31515;">BoundField</span> <span style="color:red;">DataField</span><span style="color:blue;">=”CategoryName”</span><span style="color:red;">HeaderText</span><span style="color:blue;">=”CategoryName”</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:red;">SortExpression</span><span style="color:blue;">=”CategoryName”</span> <span style="color:blue;">/&gt;</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <strong><span style="color:blue;">&lt;</span><span style="color:#a31515;">asp</span><span style="color:blue;">:</span><span style="color:#a31515;">TemplateField</span><span style="color:blue;">&gt;</span></strong></span></div>
<div style="line-height:normal;margin:0;"><strong><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">&lt;</span><span style="color:#a31515;">ItemTemplate</span><span style="color:blue;">&gt;</span></span></strong></div>
<div style="line-height:normal;margin:0;"><strong><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">&lt;</span><span style="color:#a31515;">asp</span><span style="color:blue;">:</span><span style="color:#a31515;">TextBox</span> <span style="color:red;">ID</span><span style="color:blue;">=”TextBox1″</span><span style="color:red;">runat</span><span style="color:blue;">=”server”&gt;&lt;/</span><span style="color:#a31515;">asp</span><span style="color:blue;">:</span><span style="color:#a31515;">TextBox</span><span style="color:blue;">&gt;</span></span></strong></div>
<div style="line-height:normal;margin:0;"><strong><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">&lt;</span><span style="color:#a31515;">cc1</span><span style="color:blue;">:</span><span style="color:#a31515;">CalendarExtender</span> <span style="color:red;">ID</span><span style="color:blue;">=”CalendarExtender1″</span><span style="color:red;">runat</span><span style="color:blue;">=”server”</span> <span style="color:red;">TargetControlID</span><span style="color:blue;">=”TextBox1″/&gt;</span></span></strong></div>
<div style="line-height:normal;margin:0;"><strong><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">&lt;/</span><span style="color:#a31515;">ItemTemplate</span><span style="color:blue;">&gt;</span></span></strong></div>
<div style="line-height:normal;margin:0;"><strong><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">&lt;/</span><span style="color:#a31515;">asp</span><span style="color:blue;">:</span><span style="color:#a31515;">TemplateField</span><span style="color:blue;">&gt;</span></span></strong><span style="font-size:10pt;font-family:Courier New;"> </span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">&lt;/</span><span style="color:#a31515;">Columns</span><span style="color:blue;">&gt;</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">&lt;/</span><span style="color:#a31515;">asp</span><span style="color:blue;">:</span><span style="color:#a31515;">GridView</span><span style="color:blue;">&gt;</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">&lt;</span><span style="color:#a31515;">asp</span><span style="color:blue;">:</span><span style="color:#a31515;">SqlDataSource</span> <span style="color:red;">ID</span><span style="color:blue;">=”SqlDataSource1″</span> <span style="color:red;">runat</span><span style="color:blue;">=”server”</span><span style="color:red;">ConnectionString</span><span style="color:blue;">=”Data Source=SUPROTIM;Initial Catalog=Northwind;Integrated Security=True”</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:red;">SelectCommand</span><span style="color:blue;">=”SELECT [CategoryID], [CategoryName] FROM [Categories]“</span> <span style="color:blue;">&gt;</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">&lt;/</span><span style="color:#a31515;">asp</span><span style="color:blue;">:</span><span style="color:#a31515;">SqlDataSource</span><span style="color:blue;">&gt;</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">&lt;/</span><span style="color:#a31515;">div</span><span style="color:blue;">&gt;</span></span></div>
<div style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;font-family:Courier New;"> <span style="color:blue;">&lt;/</span><span style="color:#a31515;">form</span><span style="color:blue;">&gt;</span></span></div>
<div style="margin:0 0 10pt;"><strong><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">Tip 3: Enable Year Navigation in CalendarExtender</span></strong></div>
<div style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">When the calendar appears, click on the title of the calendar to change the view to Months in the current year. Clicking it again, switches the view to Years, showing 10 years at a time.</span></div>
<div style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">If you plan to do this programmatically, here’s some code for you. Use the OnClientShown event and switch the mode using javascript. This tip was shared by one of the Microsoft® support person at the asp.net forums.</span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;color:blue;font-family:Courier New;">&lt;</span><span style="font-size:10pt;color:#a31515;font-family:Courier New;">asp</span><span style="font-size:10pt;color:blue;font-family:Courier New;">:</span><span style="font-size:10pt;color:#a31515;font-family:Courier New;">TextBox</span><span style="font-size:10pt;font-family:Courier New;"> <span style="color:red;">ID</span><span style="color:blue;">=”TextBox1″</span> <span style="color:red;">runat</span><span style="color:blue;">=”server”&gt;&lt;/</span><span style="color:#a31515;">asp</span><span style="color:blue;">:</span><span style="color:#a31515;">TextBox</span><span style="color:blue;">&gt;</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">&lt;</span><span style="color:#a31515;">cc1</span><span style="color:blue;">:</span><span style="color:#a31515;">CalendarExtender</span> <span style="color:red;">ID</span><span style="color:blue;">=”CalendarExtender1″</span></span></div>
<div style="margin:0 0 10pt;"><span style="font-size:10pt;color:red;line-height:115%;font-family:Courier New;">runat</span><span style="font-size:10pt;color:blue;line-height:115%;font-family:Courier New;">=”server”</span><span style="font-size:10pt;line-height:115%;font-family:Courier New;"> <span style="color:red;">TargetControlID</span><span style="color:blue;">=”TextBox1″</span><span style="color:red;">OnClientShown</span><span style="color:blue;">=”ChangeCalendarView”</span> <span style="color:blue;">/&gt;</span></span></div>
<div style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">Then add this to the &lt;head&gt; section</span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;color:blue;font-family:Courier New;">&lt;</span><span style="font-size:10pt;color:#a31515;font-family:Courier New;">head</span><span style="font-size:10pt;font-family:Courier New;"> <span style="color:red;">runat</span><span style="color:blue;">=”server”&gt;</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;color:blue;font-family:Courier New;">&lt;</span><span style="font-size:10pt;color:#a31515;font-family:Courier New;">title</span><span style="font-size:10pt;color:blue;font-family:Courier New;">&gt;</span><span style="font-size:10pt;font-family:Courier New;">CalendarExtender<span style="color:blue;">&lt;/</span><span style="color:#a31515;">title</span><span style="color:blue;">&gt;</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;color:blue;font-family:Courier New;">&lt;</span><span style="font-size:10pt;color:#a31515;font-family:Courier New;">script</span><span style="font-size:10pt;font-family:Courier New;"> <span style="color:red;">type</span><span style="color:blue;">=”text/javascript”&gt;</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;color:blue;font-family:Courier New;">function</span><span style="font-size:10pt;font-family:Courier New;"> ChangeCalendarView(sender,args)</span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;">{</span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> sender._switchMode(<span style="color:#a31515;">“years”</span>, <span style="color:blue;">true</span>); </span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;">}</span></div>
<div style="margin:0 0 10pt;"><span style="font-size:10pt;color:blue;line-height:115%;font-family:Courier New;">&lt;/</span><span style="font-size:10pt;color:#a31515;line-height:115%;font-family:Courier New;">script</span><span style="font-size:10pt;color:blue;line-height:115%;font-family:Courier New;">&gt;</span></div>
<div style="margin:0 0 10pt;"><span style="font-size:10pt;color:blue;line-height:115%;font-family:Courier New;">&lt;/</span><span style="font-size:10pt;color:#a31515;line-height:115%;font-family:Courier New;">head</span><span style="font-size:10pt;color:blue;line-height:115%;font-family:Courier New;">&gt;</span></div>
<div style="margin:0 0 10pt;"><strong><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">Tip 4: Display only the day and month in the CalendarExtender</span></strong></div>
<div style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">To select only the day and month without the year, use the Format property of the CalendarExtender and set it to “dd/MM” as shown below:</span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;color:blue;font-family:Courier New;">&lt;</span><span style="font-size:10pt;color:#a31515;font-family:Courier New;">cc1</span><span style="font-size:10pt;color:blue;font-family:Courier New;">:</span><span style="font-size:10pt;color:#a31515;font-family:Courier New;">CalendarExtender</span><span style="font-size:10pt;font-family:Courier New;"> <span style="color:red;">ID</span><span style="color:blue;">=”CalendarExtender1″</span> <span style="color:red;">runat</span><span style="color:blue;">=”server”</span> <span style="color:red;">Format</span><span style="color:blue;">=”dd/MM”</span><span style="color:red;">TargetControlID</span><span style="color:blue;">=”TextBox1″</span> /<span style="color:blue;">&gt;</span></span></div>
<div style="margin:0 0 10pt;"><strong> </strong></div>
<div style="margin:0 0 10pt;"><strong><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">Tip 5: How to Set Culture to work with CalendarExtender</span></strong></div>
<div style="line-height:normal;margin:0 0 5pt;"><span style="font-size:10pt;font-family:Verdana,sans-serif;">Make sure that the ScriptManager has EnableScriptGlobalization=”true” and EnableScriptLocalization=”true”.</span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;color:blue;font-family:Courier New;">&lt;</span><span style="font-size:10pt;color:#a31515;font-family:Courier New;">asp</span><span style="font-size:10pt;color:blue;font-family:Courier New;">:</span><span style="font-size:10pt;color:#a31515;font-family:Courier New;">ScriptManager</span><span style="font-size:10pt;font-family:Courier New;"> <span style="color:red;">ID</span><span style="color:blue;">=”ScriptManager1″</span> <span style="color:red;">runat</span><span style="color:blue;">=”server”</span></span></div>
<div style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;font-family:Courier New;"> <span style="color:red;">EnableScriptGlobalization</span><span style="color:blue;">=”true”</span> <span style="color:red;">EnableScriptLocalization</span><span style="color:blue;">=”true”</span><span style="color:blue;">/&gt;</span></span></div>
<div style="margin:0 0 10pt;"><strong><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">Tip 6: How to make sure user does not select a date earlier than today or greater than today</span></strong></div>
<div style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">There could be instances where you do not want the user to select a day earlier than the current date. For example: when you are providing the user a form to book tickets, you would not like him to choose an earlier date. To achieve this requirement, use the following javascript code.</span></div>
<div style="margin:0 0 10pt;"><span style="text-decoration:underline;"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">Prevent the User from selecting a Date Earlier than today</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;color:blue;font-family:Courier New;">&lt;</span><span style="font-size:10pt;color:#a31515;font-family:Courier New;">head</span><span style="font-size:10pt;font-family:Courier New;"> <span style="color:red;">runat</span><span style="color:blue;">=”server”&gt;</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">&lt;</span><span style="color:#a31515;">title</span><span style="color:blue;">&gt;</span>Calendar Extender<span style="color:blue;">&lt;/</span><span style="color:#a31515;">title</span><span style="color:blue;">&gt;</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">&lt;</span><span style="color:#a31515;">script</span> <span style="color:red;">type</span><span style="color:blue;">=”text/javascript”&gt;</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">function</span> checkDate(sender,args)</span></div>
<div style="text-indent:.5in;line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;">{</span></div>
<div style="text-indent:.5in;line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">if</span> (sender._selectedDate &lt; <span style="color:blue;">new</span> Date())</span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> {</span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> alert(<span style="color:#a31515;">“You cannot select a day earlier than today!”</span>);</span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> sender._selectedDate = <span style="color:blue;">new</span> Date(); </span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:green;">// set the date back to the current date</span></span></div>
<div style="line-height:normal;margin:0 0 0 1in;"><span style="font-size:10pt;font-family:Courier New;">sender._textbox.set_Value(sender._selectedDate.format(sender._format))</span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> }</span></div>
<div style="text-indent:.5in;line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;">}</span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">&lt;/</span><span style="color:#a31515;">script</span><span style="color:blue;">&gt;</span></span></div>
<div style="margin:0 0 10pt;"><span style="font-size:10pt;color:blue;line-height:115%;font-family:Courier New;">&lt;/</span><span style="font-size:10pt;color:#a31515;line-height:115%;font-family:Courier New;">head</span><span style="font-size:10pt;color:blue;line-height:115%;font-family:Courier New;">&gt;</span></div>
<div style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">Call the code:</span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">&lt;</span><span style="color:#a31515;">form</span> <span style="color:red;">id</span><span style="color:blue;">=”form1″</span> <span style="color:red;">runat</span><span style="color:blue;">=”server”&gt;</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">&lt;</span><span style="color:#a31515;">asp</span><span style="color:blue;">:</span><span style="color:#a31515;">ScriptManager</span> <span style="color:red;">ID</span><span style="color:blue;">=”ScriptManager1″</span> <span style="color:red;">runat</span><span style="color:blue;">=”server”</span> <span style="color:blue;">/&gt;</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">&lt;</span><span style="color:#a31515;">div</span><span style="color:blue;">&gt;</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> </span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">&lt;</span><span style="color:#a31515;">asp</span><span style="color:blue;">:</span><span style="color:#a31515;">TextBox</span> <span style="color:red;">ID</span><span style="color:blue;">=”TextBox1″</span> <span style="color:red;">runat</span><span style="color:blue;">=”server”&gt;&lt;/</span><span style="color:#a31515;">asp</span><span style="color:blue;">:</span><span style="color:#a31515;">TextBox</span><span style="color:blue;">&gt;</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">&lt;</span><span style="color:#a31515;">cc1</span><span style="color:blue;">:</span><span style="color:#a31515;">CalendarExtender</span> <span style="color:red;">ID</span><span style="color:blue;">=”CalendarExtender1″</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:red;">runat</span><span style="color:blue;">=”server”</span><span style="color:red;">OnClientDateSelectionChanged</span><span style="color:blue;">=”checkDate”</span> <span style="color:red;">TargetControlID</span><span style="color:blue;">=”TextBox1″</span> <span style="color:blue;">/&gt;</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">&lt;/</span><span style="color:#a31515;">div</span><span style="color:blue;">&gt;</span></span></div>
<div style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;font-family:Courier New;"> <span style="color:blue;">&lt;/</span><span style="color:#a31515;">form</span><span style="color:blue;">&gt;</span></span></div>
<div style="margin:0 0 10pt;"><span style="text-decoration:underline;"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">Select Date Greater than today</span></span></div>
<div style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">In the javascript, just change this line</span></div>
<div style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;font-family:Courier New;">sender._selectedDate <strong>&gt;</strong> <span style="color:blue;">new</span> Date()</span></div>
<div style="margin:0 0 10pt;"><strong><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">Note:</span></strong><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;"> You may argue that the user can still change the date by typing into the textbox or entering an invalid date. Well that can be easily handled using a ValidationControl and is covered in the next tip.</span></div>
<div style="margin:0 0 10pt;"><strong><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">Tip 7: Add validation to the CalendarExtender Control</span></strong></div>
<div style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">A simple way to add validation to the Calendar is to add a ValidationControl to the textbox associated with a CalendarExtender. You have two choices:</span></div>
<div style="text-indent:-.25in;margin:0 0 0 .5in;"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">A.<span> </span></span><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">Add an ‘Extender’ to the ValidationControl. To do so, drag and drop a ValidationControl &gt; click on the smart tag of the ValidationControl &gt; choose ‘Add Extender’. From the Extender Wizard, choose ValidatorCalloutExtender. Using this approach makes it extremely easy to discover and attach control extenders to your controls. In VS 2005, you had to do this process manually, by wiring up control extenders.</span></div>
<div style="text-indent:-.25in;margin:0 0 10pt .5in;"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">B.<span> </span></span><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">You can choose not to add the Extender.</span></div>
<div style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">We will go ahead with option A. We will be adding two ValidationControls to the textbox. The first, a CompareValidator to check if the user does not enter an invalid date (Eg: May 32) and second, a RangeValidator to keep the date range as desired.</span></div>
<div style="margin:0 0 10pt;"><span style="text-decoration:underline;"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">Adding CompareValidator</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;color:blue;font-family:Courier New;">&lt;</span><span style="font-size:10pt;color:#a31515;font-family:Courier New;">asp</span><span style="font-size:10pt;color:blue;font-family:Courier New;">:</span><span style="font-size:10pt;color:#a31515;font-family:Courier New;">CompareValidator</span><span style="font-size:10pt;font-family:Courier New;"> <span style="color:red;">ID</span><span style="color:blue;">=”CompareValidator1″</span> <span style="color:red;">runat</span><span style="color:blue;">=”server”</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:red;">ControlToValidate</span><span style="color:blue;">=”TextBox1″</span> <span style="color:red;">Display</span><span style="color:blue;">=”Dynamic”</span><span style="color:red;">ErrorMessage</span><span style="color:blue;">=”Invalid Date”</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:red;">Operator</span><span style="color:blue;">=”DataTypeCheck”</span> <span style="color:red;">Type</span><span style="color:blue;">=”Date”&gt;</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;color:blue;font-family:Courier New;">&lt;/</span><span style="font-size:10pt;color:#a31515;font-family:Courier New;">asp</span><span style="font-size:10pt;color:blue;font-family:Courier New;">:</span><span style="font-size:10pt;color:#a31515;font-family:Courier New;">CompareValidator</span><span style="font-size:10pt;color:blue;font-family:Courier New;">&gt;</span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;color:blue;font-family:Courier New;">&lt;</span><span style="font-size:10pt;color:#a31515;font-family:Courier New;">cc1</span><span style="font-size:10pt;color:blue;font-family:Courier New;">:</span><span style="font-size:10pt;color:#a31515;font-family:Courier New;">ValidatorCalloutExtender</span><span style="font-size:10pt;font-family:Courier New;"><span style="color:red;">ID</span><span style="color:blue;">=”CompareValidator1_ValidatorCalloutExtender”</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:red;">runat</span><span style="color:blue;">=”server”</span> <span style="color:red;">Enabled</span><span style="color:blue;">=”True”</span><span style="color:red;">TargetControlID</span><span style="color:blue;">=”CompareValidator1″&gt;</span></span></div>
<div style="margin:0 0 10pt;"><span style="font-size:10pt;color:blue;line-height:115%;font-family:Courier New;">&lt;/</span><span style="font-size:10pt;color:#a31515;line-height:115%;font-family:Courier New;">cc1</span><span style="font-size:10pt;color:blue;line-height:115%;font-family:Courier New;">:</span><span style="font-size:10pt;color:#a31515;line-height:115%;font-family:Courier New;">ValidatorCalloutExtender</span><span style="font-size:10pt;color:blue;line-height:115%;font-family:Courier New;">&gt;</span></div>
<div style="margin:0 0 10pt;"><span style="text-decoration:underline;"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">Adding RangeValidator</span></span><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;"> – We will restrict the user to select a date range starting from today to 15 days from now.</span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;color:blue;font-family:Courier New;">&lt;</span><span style="font-size:10pt;color:#a31515;font-family:Courier New;">asp</span><span style="font-size:10pt;color:blue;font-family:Courier New;">:</span><span style="font-size:10pt;color:#a31515;font-family:Courier New;">RangeValidator</span><span style="font-size:10pt;font-family:Courier New;"> <span style="color:red;">ID</span><span style="color:blue;">=”RangeValidator1″</span> <span style="color:red;">runat</span><span style="color:blue;">=”server”</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:red;">ControlToValidate</span><span style="color:blue;">=”TextBox1″</span> <span style="color:red;">ErrorMessage</span><span style="color:blue;">=”RangeValidator”</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:red;">Type</span><span style="color:blue;">=”Date”&gt;</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;color:blue;font-family:Courier New;">&lt;/</span><span style="font-size:10pt;color:#a31515;font-family:Courier New;">asp</span><span style="font-size:10pt;color:blue;font-family:Courier New;">:</span><span style="font-size:10pt;color:#a31515;font-family:Courier New;">RangeValidator</span><span style="font-size:10pt;color:blue;font-family:Courier New;">&gt;</span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;color:blue;font-family:Courier New;">&lt;</span><span style="font-size:10pt;color:#a31515;font-family:Courier New;">cc1</span><span style="font-size:10pt;color:blue;font-family:Courier New;">:</span><span style="font-size:10pt;color:#a31515;font-family:Courier New;">ValidatorCalloutExtender</span><span style="font-size:10pt;font-family:Courier New;"><span style="color:red;">ID</span><span style="color:blue;">=”RangeValidator1_ValidatorCalloutExtender”</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:red;">runat</span><span style="color:blue;">=”server”</span> <span style="color:red;">Enabled</span><span style="color:blue;">=”True”</span><span style="color:red;">TargetControlID</span><span style="color:blue;">=”RangeValidator1″&gt;</span></span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;color:blue;font-family:Courier New;">&lt;/</span><span style="font-size:10pt;color:#a31515;font-family:Courier New;">cc1</span><span style="font-size:10pt;color:blue;font-family:Courier New;">:</span><span style="font-size:10pt;color:#a31515;font-family:Courier New;">ValidatorCalloutExtender</span><span style="font-size:10pt;color:blue;font-family:Courier New;">&gt;</span></div>
<div style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">In the code behind of your page, add this code</span></div>
<div style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">C#</span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">protected</span> <span style="color:blue;">void</span> Page_Load(<span style="color:blue;">object</span> sender, <span style="color:#2b91af;">EventArgs</span> e)</span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> {</span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> RangeValidator1.MinimumValue = System.<span style="color:#2b91af;">DateTime</span>.Now.ToShortDateString();</span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> RangeValidator1.MaximumValue = System.<span style="color:#2b91af;">DateTime</span>.Now.AddDays(15).ToShortDateString();</span></div>
<div style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;font-family:Courier New;"> }</span></div>
<div style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">VB.NET</span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> <span style="color:blue;">Protected</span> <span style="color:blue;">Sub</span> Page_Load(<span style="color:blue;">ByVal</span> sender <span style="color:blue;">As</span> <span style="color:blue;">Object</span>, <span style="color:blue;">ByVal</span> e <span style="color:blue;">As</span>EventArgs)</span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> RangeValidator1.MinimumValue = System.DateTime.Now.ToShortDateString()</span></div>
<div style="line-height:normal;margin:0;"><span style="font-size:10pt;font-family:Courier New;"> RangeValidator1.MaximumValue = System.DateTime.Now.AddDays(15).ToShortDateString()</span></div>
<div style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;font-family:Courier New;"> <span style="color:blue;">End</span> <span style="color:blue;">Sub</span></span></div>
<div style="margin:0 0 10pt;"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">Well those were some tips associated with the CalendarExtender. As future versions of the toolkit are released, we should be hopeful that there will exist easier ways, of achieving the functionality discussed in this article. </span><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">I hope this </span><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;">article</span><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;"> was useful for you, I thank you for reading and viewing it</span><span style="font-size:x-small;"><span style="font-family:Verdana;"><span style="line-height:115%;">.</span></span></span></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nikhil3tripathi.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nikhil3tripathi.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nikhil3tripathi.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nikhil3tripathi.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nikhil3tripathi.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nikhil3tripathi.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nikhil3tripathi.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nikhil3tripathi.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nikhil3tripathi.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nikhil3tripathi.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nikhil3tripathi.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nikhil3tripathi.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nikhil3tripathi.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nikhil3tripathi.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nikhil3tripathi.wordpress.com&amp;blog=6209913&amp;post=4&amp;subd=nikhil3tripathi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nikhil3tripathi.wordpress.com/2009/04/02/aspnet-ajax-calendar-extender-%e2%80%93-tips-and-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5275cc67b315ccb86007044cba52642c?s=96&#38;d=identicon" medium="image">
			<media:title type="html">nikhil3tripathi</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://nikhil3tripathi.wordpress.com/2009/01/17/hello-world/</link>
		<comments>http://nikhil3tripathi.wordpress.com/2009/01/17/hello-world/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 11:14:51 +0000</pubDate>
		<dc:creator>nikhil3tripathi</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nikhil3tripathi.wordpress.com&amp;blog=6209913&amp;post=1&amp;subd=nikhil3tripathi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Welcome to <a href="http://wordpress.com/">WordPress.com</a>. This is your first post. Edit or delete it and start blogging!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nikhil3tripathi.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nikhil3tripathi.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nikhil3tripathi.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nikhil3tripathi.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nikhil3tripathi.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nikhil3tripathi.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nikhil3tripathi.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nikhil3tripathi.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nikhil3tripathi.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nikhil3tripathi.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nikhil3tripathi.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nikhil3tripathi.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nikhil3tripathi.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nikhil3tripathi.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nikhil3tripathi.wordpress.com&amp;blog=6209913&amp;post=1&amp;subd=nikhil3tripathi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nikhil3tripathi.wordpress.com/2009/01/17/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5275cc67b315ccb86007044cba52642c?s=96&#38;d=identicon" medium="image">
			<media:title type="html">nikhil3tripathi</media:title>
		</media:content>
	</item>
	</channel>
</rss>
