<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Kunal Shetye's Blog</title>
	
	<link>http://blog.shetye.net</link>
	<description>Technology, Humor and Day-To-Day Experiences in the Life of Kunal Shetye</description>
	<lastBuildDate>Wed, 24 Mar 2010 05:58:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/kunalshetye" /><feedburner:info uri="kunalshetye" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Modify CDATA Element in XML File using LINQ to XML</title>
		<link>http://feedproxy.google.com/~r/kunalshetye/~3/icbTb202M_k/</link>
		<comments>http://blog.shetye.net/2010/03/modify-cdata-element-in-xml-file-using-linq-to-xml/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 05:58:31 +0000</pubDate>
		<dc:creator>Kunal Shetye</dc:creator>
				<category><![CDATA[LINQ]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[CDATA]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://blog.shetye.net/?p=101</guid>
		<description><![CDATA[Yesterday I came across the following situation: 1) Load a XML File. 2) Parse the elements that match certain criteria. 3) Set the elements value to a new data The only problem in the above situation was that I was dealing with CDATA inside the element. Sample XML: &#60;employees&#62; &#60;employee&#62; &#60;description&#62; &#60;![CDATA[Lorem Ipsum]]&#62; &#60;/description&#62; &#60;/employee&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I came across the following situation:</p>
<p>1) Load a XML File.</p>
<p>2) Parse the elements that match certain criteria.</p>
<p>3) Set the elements value to a new data</p>
<p>The only problem in the above situation was that I was dealing with CDATA inside the element.</p>
<p>Sample XML:</p>
<pre class="brush: xml;">
&lt;employees&gt;
    &lt;employee&gt;
        &lt;description&gt;
            &lt;![CDATA[Lorem Ipsum]]&gt;
        &lt;/description&gt;
    &lt;/employee&gt;
    ....
&lt;/employees&gt;
</pre>
<p>The C# fragment that will allow you to manipulate the above elment is:</p>
<pre class="brush: csharp;">
public void ParseEmployeeDescription(XDocument document)
{
	var result = from e in document.Descendants(&quot;description&quot;)
				 select e;
	foreach (var element in result)
	{
		if(/*Some condition matches*/)
		{
			var temp = element.Value;

			temp += &quot;modified&quot;;
			//Replace with new data in the CDATA tag
			((XCData)element.FirstNode).Value = pTagData;

		}

	}
	document.Save(&quot;new_employees.xml&quot;);
}
</pre>
<p>Hopefully this helps someone <img src='http://blog.shetye.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<script type="text/javascript"><!--
google_ad_client = "pub-0716294069954156";
/* 300x250, Blog basic created 9/27/09 */
google_ad_slot = "0983828181";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Modify+CDATA+Element+in+XML+File+using+LINQ+to+XML+http://is.gd/aVCdo" title="Post to Twitter"><img class="nothumb" src="http://blog.shetye.net/wp-content/plugins/tweet-this/icons/tt-twitter-big4.png" alt="Post to Twitter" /></a></p>
<p><a href="http://feedads.g.doubleclick.net/~a/K3g9dkX6jpVqky6JKabhoVziGEE/0/da"><img src="http://feedads.g.doubleclick.net/~a/K3g9dkX6jpVqky6JKabhoVziGEE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/K3g9dkX6jpVqky6JKabhoVziGEE/1/da"><img src="http://feedads.g.doubleclick.net/~a/K3g9dkX6jpVqky6JKabhoVziGEE/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/kunalshetye/~4/icbTb202M_k" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.shetye.net/2010/03/modify-cdata-element-in-xml-file-using-linq-to-xml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.shetye.net/2010/03/modify-cdata-element-in-xml-file-using-linq-to-xml/</feedburner:origLink></item>
		<item>
		<title>Evolution Of Ipods</title>
		<link>http://feedproxy.google.com/~r/kunalshetye/~3/NLVyCzh0bQ4/</link>
		<comments>http://blog.shetye.net/2009/09/evolution-of-ipods/#comments</comments>
		<pubDate>Wed, 30 Sep 2009 10:05:47 +0000</pubDate>
		<dc:creator>Kunal Shetye</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[generations]]></category>
		<category><![CDATA[ipod]]></category>

		<guid isPermaLink="false">http://blog.shetye.net/?p=89</guid>
		<description><![CDATA[The different generations of Ipod: Original Article here: TechTree.com]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-0716294069954156";
/* 300x250, Blog basic created 9/27/09 */
google_ad_slot = "0983828181";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p><strong>The different generations of Ipod:</strong></p>
<p><img src="http://images.techtree.com/ttimages/story/106613_intro1.jpg" alt="Evolution of Ipod" /></p>
<p><img src="http://images.techtree.com/ttimages/story/106613_intro2.jpg" alt="Evolution of Ipod" /></p>
<p><img src="http://images.techtree.com/ttimages/story/106613_intro3.jpg" alt="Evolution of Ipod" /></p>
<p>Original Article here: <a href="http://www.techtree.com/India/Reviews/Timeline_of_Apple_iPod/551-106614-571.html">TechTree.com</a></p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Evolution+Of+Ipods+http://is.gd/cXBL5" title="Post to Twitter"><img class="nothumb" src="http://blog.shetye.net/wp-content/plugins/tweet-this/icons/tt-twitter-big4.png" alt="Post to Twitter" /></a></p>
<p><a href="http://feedads.g.doubleclick.net/~a/ehzfle7B6l77oyukKUWPYF-U99I/0/da"><img src="http://feedads.g.doubleclick.net/~a/ehzfle7B6l77oyukKUWPYF-U99I/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/ehzfle7B6l77oyukKUWPYF-U99I/1/da"><img src="http://feedads.g.doubleclick.net/~a/ehzfle7B6l77oyukKUWPYF-U99I/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/kunalshetye/~4/NLVyCzh0bQ4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.shetye.net/2009/09/evolution-of-ipods/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.shetye.net/2009/09/evolution-of-ipods/</feedburner:origLink></item>
		<item>
		<title>Dropbox – A File Synchronization and Sharing Software</title>
		<link>http://feedproxy.google.com/~r/kunalshetye/~3/SU9Njyajc0I/</link>
		<comments>http://blog.shetye.net/2009/09/dropbox-a-file-synchronization-and-sharing-software/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 16:36:35 +0000</pubDate>
		<dc:creator>Kunal Shetye</dc:creator>
				<category><![CDATA[Software Review]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[file sharing]]></category>
		<category><![CDATA[file synchronization]]></category>
		<category><![CDATA[versioning]]></category>

		<guid isPermaLink="false">http://blog.shetye.net/?p=81</guid>
		<description><![CDATA[Dropbox is software that syncs your files online and across your computers. The key features that make it a good choice are : Its Free! You get a free account with 2gb of storage and basic file versioning features. Works on multiple Operating Systems(Windows, Mac, and Linux too!). Once you modify a file in the [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-0716294069954156";
/* 300x250, Blog basic created 9/27/09 */
google_ad_slot = "0983828181";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>Dropbox is software that syncs your files online and across your computers.</p>
<p>The key features that make it a good choice are :</p>
<ul>
<li><strong>Its Free!</strong> You get a free account with 2gb of storage and basic file versioning features.</li>
<li>Works on <strong>multiple Operating Systems</strong>(Windows, Mac, and Linux too!).</li>
<li>Once you modify a file in the Dropbox folder its <strong>instantly synchronized</strong> with the server.</li>
<li>You can easily <strong>share files or folders</strong> with friends by inviting friends to access the shared folder.</li>
<li>Every file you put in your Dropbox is <strong>securely backed up</strong> on their server.</li>
<li>Allows <strong>Un-deleting and Undoing changes</strong> to your files.</li>
<li><strong>Mobile Device Access</strong> is supported so you can access your Dropbox on the go.</li>
<li><strong>Web Access</strong> allows you to connect to your account <strong>via your Browser</strong>.</li>
</ul>
<p>You can download Dropbox by going here: <a href="http://www.getdropbox.com/">http://www.getdropbox.com/</a></p>
<p><strong><em>Dropbox Files List View</em></strong><br />
<a href="http://i35.tinypic.com/2zh0a54.jpg" alt="Dropbox Files List View" rel="wp-prettyPhoto[g81]"><br />
<img style="display: inline; margin-left: 0px; margin-right: 0px" src="http://i35.tinypic.com/2zh0a54.jpg" alt="" width="400" height="314" align="left" /></a></p>
<p><a href="http://i36.tinypic.com/a26wwn.jpg" alt="Dropbox Recent Events View" rel="wp-prettyPhoto[g81]"><br />
<img style="display: inline; margin-left: 0px; margin-right: 0px" src="http://i36.tinypic.com/a26wwn.jpg" alt="" width="400" height="306" align="left" /></a></p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Dropbox+%E2%80%93+A+File+Synchronization+and+Sharing+Software+http://is.gd/cXFoN" title="Post to Twitter"><img class="nothumb" src="http://blog.shetye.net/wp-content/plugins/tweet-this/icons/tt-twitter-big4.png" alt="Post to Twitter" /></a></p>
<p><a href="http://feedads.g.doubleclick.net/~a/pHbeG4M0J8CarBoZ7fXMoEmPJ18/0/da"><img src="http://feedads.g.doubleclick.net/~a/pHbeG4M0J8CarBoZ7fXMoEmPJ18/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/pHbeG4M0J8CarBoZ7fXMoEmPJ18/1/da"><img src="http://feedads.g.doubleclick.net/~a/pHbeG4M0J8CarBoZ7fXMoEmPJ18/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/kunalshetye/~4/SU9Njyajc0I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.shetye.net/2009/09/dropbox-a-file-synchronization-and-sharing-software/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.shetye.net/2009/09/dropbox-a-file-synchronization-and-sharing-software/</feedburner:origLink></item>
		<item>
		<title>Google Analytics tracking PDF and Flash files on your Site</title>
		<link>http://feedproxy.google.com/~r/kunalshetye/~3/6sgMrF8h1eg/</link>
		<comments>http://blog.shetye.net/2009/09/google-analytics-tracking-pdf-and-flash-files-on-your-site/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 13:43:26 +0000</pubDate>
		<dc:creator>Kunal Shetye</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[analytics]]></category>
		<category><![CDATA[avi]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[mov]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[tracking]]></category>
		<category><![CDATA[wmv]]></category>

		<guid isPermaLink="false">http://blog.shetye.net/?p=71</guid>
		<description><![CDATA[Setting up Google Analytics is pretty easy work thanks to google If you dont have a Analytics account yet  you can get one here: Google Analytics To start tracking just add the code below to the page(mostly before the end of &#60;body&#62; tag) that you wish to track using Google Analytics &#38;lt;script type=&#34;text/javascript&#34;&#38;gt; var gaJsHost [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-0716294069954156";
/* 300x250, Blog basic created 9/27/09 */
google_ad_slot = "0983828181";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
Setting up Google Analytics is pretty easy work thanks to google <img src='http://blog.shetye.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>If you dont have a Analytics account yet  you can get one here: <a href="http://www.google.com/analytics/" target="_blank">Google Analytics</a></p>
<p>To start tracking just add the code below to the page(mostly before the end of &lt;body&gt; tag) that you wish to track using Google Analytics</p>
<pre class="brush: jscript;">

&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;

var gaJsHost = ((&quot;https:&quot; == document.location.protocol) ? &quot;&lt;a href=&quot;https://ssl.&amp;quot;&quot;&gt;https://ssl.&quot;&lt;/a&gt; : &quot;&lt;a href=&quot;http://www.&amp;quot;);&quot;&gt;http://www.&quot;);&lt;/a&gt;
document.write(unescape(&quot;%3Cscript src='&quot; + gaJsHost + &quot;google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E&quot;));
&amp;lt;/script&amp;gt;
&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;
try {
var pageTracker = _gat._getTracker(&quot;XX-XXXXXX-XX&quot;);
pageTracker._trackPageview();
} catch(err) {}&amp;lt;/script&amp;gt;
</pre>
<p><em>Note: Make sure that you replace the ‘X” with your tracking id.</em></p>
<p>A bit tricky part is tracking downloads for PDF and Flash files.</p>
<p>But since google rocks they have made this simple as well.</p>
<p>To track a file download add the following code to the anchor tag’s onclick event</p>
<pre class="brush: jscript;">

pageTracker._trackPageview('/downloads/myfile.pdf');
</pre>
<p>The complete anchor tag would look like something below:</p>
<pre class="brush: jscript;">

&amp;lt;a href=&quot;/myfile.pdf&quot; onclick=&quot;pageTracker._trackPageview('/downloads/myfile.pdf')&quot;&amp;gt;My Pdf&amp;lt;/a&amp;gt;
</pre>
<p>When the user clicks on the above link , you will see the &#8216;/downloads/myfile.pdf’ url in your analytics report.</p>
<p>This technique can be used to track other file types as well (Flash, WMV, AVI, MOV, etc..)</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Google+Analytics+tracking+PDF+and+Flash+files+on+your+Site+http://is.gd/cXFoP" title="Post to Twitter"><img class="nothumb" src="http://blog.shetye.net/wp-content/plugins/tweet-this/icons/tt-twitter-big4.png" alt="Post to Twitter" /></a></p>
<p><a href="http://feedads.g.doubleclick.net/~a/h7i0TOpXiDLZt0SH7TsTMDpcVg0/0/da"><img src="http://feedads.g.doubleclick.net/~a/h7i0TOpXiDLZt0SH7TsTMDpcVg0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/h7i0TOpXiDLZt0SH7TsTMDpcVg0/1/da"><img src="http://feedads.g.doubleclick.net/~a/h7i0TOpXiDLZt0SH7TsTMDpcVg0/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/kunalshetye/~4/6sgMrF8h1eg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.shetye.net/2009/09/google-analytics-tracking-pdf-and-flash-files-on-your-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.shetye.net/2009/09/google-analytics-tracking-pdf-and-flash-files-on-your-site/</feedburner:origLink></item>
		<item>
		<title>Cancel Event-Bubbling in Dojo</title>
		<link>http://feedproxy.google.com/~r/kunalshetye/~3/BK8A7fPJ-ik/</link>
		<comments>http://blog.shetye.net/2009/09/cancel-event-bubbling-in-dojo/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 13:18:58 +0000</pubDate>
		<dc:creator>Kunal Shetye</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[dojo]]></category>
		<category><![CDATA[event bubbling]]></category>

		<guid isPermaLink="false">http://blog.shetye.net/?p=63</guid>
		<description><![CDATA[If you have ever worked with a set of nested div&#8217;s which needed to listen for onclick event you must surely have encountered this issue. If child div is clicked the parent&#8217;s click event will also be triggered because of Event-Bubbling. The Internet Explorer 4 or later and Netscape 6 event model mechanism that propagates [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-0716294069954156";
/* 468x60, created 9/27/09 */
google_ad_slot = "8517553103";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>If you have ever worked with a set of nested div&#8217;s which needed to listen for onclick event you must surely have encountered this issue.</p>
<p>If child div is clicked the parent&#8217;s click event will also be triggered because of Event-Bubbling.</p>
<p>The Internet Explorer 4 or later and Netscape 6 event model mechanism that propagates events from the target element upward through the HTML Page.</p>
<p>Me and my team mate Anoop were struggling with the problem for a long time and today he finally found a solution to it.</p>
<p>Use the code below to cancel the Event-Bubbling.</p>
<pre class="brush: jscript;">
dojo.connect(dojo.byId(&quot;myDiv&quot;),&quot;onmouseover&quot;,

function(evt){

//Do Something
//..
//..

evt.stopPropagation(); //Stop Event Bubbling

});
</pre>
<p><em>Here passing the evt paramenter is very crucial otherwise the Event Bubbling wont stop! <img src='http://blog.shetye.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </em></p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Cancel+Event-Bubbling+in+Dojo+http://is.gd/cXE6b" title="Post to Twitter"><img class="nothumb" src="http://blog.shetye.net/wp-content/plugins/tweet-this/icons/tt-twitter-big4.png" alt="Post to Twitter" /></a></p>
<p><a href="http://feedads.g.doubleclick.net/~a/qq8iKjond-L-4lv3N5ExTgws4Zc/0/da"><img src="http://feedads.g.doubleclick.net/~a/qq8iKjond-L-4lv3N5ExTgws4Zc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/qq8iKjond-L-4lv3N5ExTgws4Zc/1/da"><img src="http://feedads.g.doubleclick.net/~a/qq8iKjond-L-4lv3N5ExTgws4Zc/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/kunalshetye/~4/BK8A7fPJ-ik" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.shetye.net/2009/09/cancel-event-bubbling-in-dojo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.shetye.net/2009/09/cancel-event-bubbling-in-dojo/</feedburner:origLink></item>
		<item>
		<title>ASP.NET MasterPage Caching Issues</title>
		<link>http://feedproxy.google.com/~r/kunalshetye/~3/G_ahODzsl8U/</link>
		<comments>http://blog.shetye.net/2009/09/asp-net-masterpage-caching-issues/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 12:41:08 +0000</pubDate>
		<dc:creator>Kunal Shetye</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[loginview]]></category>
		<category><![CDATA[masterpage]]></category>

		<guid isPermaLink="false">http://blog.shetye.net/?p=56</guid>
		<description><![CDATA[A MasterPage is cached by the WebServer to give faster response to the user. The caching occurs the first time it is the corresponding ContentPage is invoked. Due to this fact the LoginView inside a Masterpage would be updated on some pages and would fail to update on others, giving inconsistent results. The solution to [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-0716294069954156";
/* 468x60, created 9/27/09 */
google_ad_slot = "8517553103";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>A MasterPage is cached by the WebServer to give faster response to the user.</p>
<p>The caching occurs the first time it is the corresponding ContentPage is invoked.</p>
<p>Due to this fact the LoginView inside a Masterpage would be updated on some pages and would fail to update on others,<br />
giving inconsistent results.</p>
<p>The solution to this problem is that you need to use <asp:Substitution> control as seen below.</p>
<pre class="brush: xml;">
&lt;div class=&quot;loginstatus&quot;&gt;
      &lt;asp:Substitution runat=&quot;server&quot; ID=&quot;substituteLoginInfo&quot; MethodName=&quot;methodToInvoke&quot; /&gt;
&lt;/div&gt;
</pre>
<p>The thing with <asp:Substition> control is that you need to point it to a static Method on the Masterpage Codebehind</p>
<p>It has the following signature :</p>
<pre class="brush: csharp;">
public static string methodToInvoke(HttpContext context)
{
   return DateTime.Now.ToLongTimeString();
}
</pre>
<p>This method will return a HTML string that will be substituted in the page, hence the name of the control.</p>
<p>I read this on Scott Guthrie &#8216;s website and he referred to as &#8220;dough-nut cache&#8221;.</p>
<p>Where the cream part of the dough-nut is the substitution control which is not cached <img src='http://blog.shetye.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=ASP.NET+MasterPage+Caching+Issues+http://is.gd/cXFoS" title="Post to Twitter"><img class="nothumb" src="http://blog.shetye.net/wp-content/plugins/tweet-this/icons/tt-twitter-big4.png" alt="Post to Twitter" /></a></p>
<p><a href="http://feedads.g.doubleclick.net/~a/zBWHFnvvM2bm-yhc7OiUbKth4yQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/zBWHFnvvM2bm-yhc7OiUbKth4yQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/zBWHFnvvM2bm-yhc7OiUbKth4yQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/zBWHFnvvM2bm-yhc7OiUbKth4yQ/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/kunalshetye/~4/G_ahODzsl8U" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.shetye.net/2009/09/asp-net-masterpage-caching-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.shetye.net/2009/09/asp-net-masterpage-caching-issues/</feedburner:origLink></item>
		<item>
		<title>Integration Silverlight UI with Tridion System – Introduction</title>
		<link>http://feedproxy.google.com/~r/kunalshetye/~3/KWJj8Rk_ZM0/</link>
		<comments>http://blog.shetye.net/2009/09/integration-silverlight-ui-with-tridion-system-introduction/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 09:24:45 +0000</pubDate>
		<dc:creator>Kunal Shetye</dc:creator>
				<category><![CDATA[SDL Tridion]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[TOM]]></category>
		<category><![CDATA[TOM.NET]]></category>

		<guid isPermaLink="false">http://blog.shetye.net/2009/09/integration-silverlight-ui-with-tridion-system-introduction/</guid>
		<description><![CDATA[Silverlight-Tridion Architecture I’ll be writing a series of Blog posts that will show you how to Build a Silverlight UI on top of the SDL Tridion System. The above diagram shows my proposed basic system of integrating Silverlight on top of Tridion. The basic things to consider for this project are : Create Silverlight Application [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-0716294069954156";
/* 300x250, Blog basic created 9/27/09 */
google_ad_slot = "0983828181";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<h3>Silverlight-Tridion Architecture</h3>
<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="Silverlight-Tridion-Architecture" src="http://i34.tinypic.com/acdifn.jpg" border="0" alt="Silverlight-Tridion-Architecture" width="552" height="298" /></p>
<p>I’ll be writing a series of Blog posts that will show you how to Build a Silverlight UI on top of the SDL Tridion System.</p>
<p>The above diagram shows my proposed basic system of integrating Silverlight on top of Tridion.</p>
<p>The basic things to consider for this project are :</p>
<ul>
<li>Create Silverlight Application that Communicates with WCF Webservice.</li>
<li>The WCF Webservice communicates with Tridion Interface.</li>
<li>Depending on the type of request it is handled by the TOM.NET API or TOM COM API.</li>
<li>The Tridion interface returns a response to the WCF Webservice.</li>
<li>The Webservice returns data to the Silverlight Application which shows the response to the user.</li>
</ul>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Integration+Silverlight+UI+with+Tridion+System+%E2%80%93+Introduction+http://is.gd/cXFoV" title="Post to Twitter"><img class="nothumb" src="http://blog.shetye.net/wp-content/plugins/tweet-this/icons/tt-twitter-big4.png" alt="Post to Twitter" /></a></p>
<p><a href="http://feedads.g.doubleclick.net/~a/EV8Lrow6aDMleqQR6-P6gsuJz1A/0/da"><img src="http://feedads.g.doubleclick.net/~a/EV8Lrow6aDMleqQR6-P6gsuJz1A/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/EV8Lrow6aDMleqQR6-P6gsuJz1A/1/da"><img src="http://feedads.g.doubleclick.net/~a/EV8Lrow6aDMleqQR6-P6gsuJz1A/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/kunalshetye/~4/KWJj8Rk_ZM0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.shetye.net/2009/09/integration-silverlight-ui-with-tridion-system-introduction/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		<feedburner:origLink>http://blog.shetye.net/2009/09/integration-silverlight-ui-with-tridion-system-introduction/</feedburner:origLink></item>
		<item>
		<title>Space Photo</title>
		<link>http://feedproxy.google.com/~r/kunalshetye/~3/H6drEVuvVek/</link>
		<comments>http://blog.shetye.net/2009/09/space-photo/#comments</comments>
		<pubDate>Sun, 27 Sep 2009 09:08:03 +0000</pubDate>
		<dc:creator>Kunal Shetye</dc:creator>
				<category><![CDATA[Space]]></category>
		<category><![CDATA[galaxy]]></category>

		<guid isPermaLink="false">http://blog.shetye.net/2009/09/space-photo/</guid>
		<description><![CDATA[Gigagalaxy Zoom: Galactic Center Credit: ESO / Stéphane Guisard &#8211; Copyright: Stéphane Guisard Explanation: From Sagittarius to Scorpius, the central Milky Way is a truly beautiful part of planet Earth&#8217;s night sky. The gorgeous region is captured here, an expansive gigapixel mosaic of 52 fields spanning 34 by 20 degrees in 1200 individual images and [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-0716294069954156";
/* 468x60, created 9/27/09 */
google_ad_slot = "8517553103";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<blockquote><p><a href="http://antwrp.gsfc.nasa.gov/apod/image/0909/Guisard_MilkyWay_4_8bit_dse_1500-ps12.jpg" rel="wp-prettyPhoto[g41]"><img src="http://antwrp.gsfc.nasa.gov/apod/image/0909/Guisard_MilkyWay_4_8bit_dse_1500-ps12_h600.jpg" alt="See Explanation. Clicking on the picture will download the highest resolution version available." width="482" height="276" /></a></p>
<p><strong>Gigagalaxy Zoom: Galactic Center </strong><br />
<strong>Credit: </strong><a href="http://www.eso.org/">ESO</a> / Stéphane Guisard &#8211; <strong><a href="http://antwrp.gsfc.nasa.gov/apod/lib/about_apod.html#srapply">Copyright</a>: </strong><a href="http://www.astrosurf.com/sguisard/">Stéphane Guisard</a></p>
<p><strong>Explanation: </strong>From Sagittarius to Scorpius, the central Milky Way is a truly beautiful part of planet Earth&#8217;s night sky. The gorgeous region is captured here, an expansive gigapixel mosaic of 52 fields spanning 34 by 20 degrees in 1200 individual images and 200 hours of exposure time. Part of ESO&#8217;s Gigagalaxy Zoom Project, the images were collected over 29 nights with a small telescope under the exceptionally clear, dark skies of the ESO Paranal Observatory in Chile. The breathtaking cosmic vista shows off intricate dust lanes, bright nebulae, and star clusters scattered through our galaxy&#8217;s rich central starfields. Starting on the left, look for the Lagoon and Trifid nebulae, the Cat&#8217;s Paw, the Pipe dark nebula, and the colorful clouds of Rho Ophiuchi and Antares (right).</p></blockquote>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Space+Photo+http://is.gd/cXFoZ" title="Post to Twitter"><img class="nothumb" src="http://blog.shetye.net/wp-content/plugins/tweet-this/icons/tt-twitter-big4.png" alt="Post to Twitter" /></a></p>
<p><a href="http://feedads.g.doubleclick.net/~a/1yhkTat-pJLDsgSzY_nOzqTxEkk/0/da"><img src="http://feedads.g.doubleclick.net/~a/1yhkTat-pJLDsgSzY_nOzqTxEkk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/1yhkTat-pJLDsgSzY_nOzqTxEkk/1/da"><img src="http://feedads.g.doubleclick.net/~a/1yhkTat-pJLDsgSzY_nOzqTxEkk/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/kunalshetye/~4/H6drEVuvVek" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.shetye.net/2009/09/space-photo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.shetye.net/2009/09/space-photo/</feedburner:origLink></item>
		<item>
		<title>Windows 7: Aero Shake</title>
		<link>http://feedproxy.google.com/~r/kunalshetye/~3/Kz7Fo4tQ_fA/</link>
		<comments>http://blog.shetye.net/2009/09/minimize-all-open-windows-except-the-active-one/#comments</comments>
		<pubDate>Sun, 27 Sep 2009 04:55:58 +0000</pubDate>
		<dc:creator>Kunal Shetye</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://blog.shetye.net/2009/09/minimize-all-open-windows-except-the-active-one/</guid>
		<description><![CDATA[If you are using Windows XP or Vista, you can use the keyboard shortcut &#8220;Windows key + M&#8221; to minimize all open windows and clear the desktop screen in one go. Windows 7 has something better – it lets you minimize all open windows except the one that’s currently active on your desktop. This should [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p><a href="http://www.labnol.org/tag/windows-7/"><img style="display: inline; margin-left: 0px; margin-right: 0px" src="http://img.labnol.org/di/windows7.png" alt="windows 7" width="150" height="98" align="left" /></a>If you are using Windows XP or Vista, you can use the keyboard shortcut &#8220;Windows key + M&#8221; to minimize all open windows and clear the desktop screen in one go.</p>
<p>Windows 7 has something better – it lets you minimize all open windows except the one that’s currently active on your desktop.</p>
<p>This should be pretty handy in situations where you need a distraction free desktop like when you are reading an important document inside Microsoft Word and want to hide other windows that may be open in the background.</p>
<p><strong>Video: How to quickly minimize all open windows except the active one</strong></p>
<p>The trick is simple – just click on title bar of the window that you want to keep in the foreground, hold your mouse and shake it in either directions. All open windows, except the one you are holding, will now be minimized to the toolbar.</p>
<p>This feature is known as Aero-Shake and is available in all editions of Windows 7 except Home Basic. The keyboard shortcut for Aero Shake is &#8220;Windows Logo Key + Home&#8221;.</p>
<p>To restore all minimized Windows to their original location, just shake the active window again. And here’s another very cool video from Microsoft to demonstrate the Aero Shake feature of Windows 7.</p>
<p>If you are using an older version of Windows, get the Aero-Shake utility from <a href="http://lifehacker.com/5082279/">Lifehacker</a> and you won’t miss the fun.</p>
<p><small>Originally published at <a href="http://www.labnol.org">Digital Inspiration</a> by Amit Agarwal.</small></p></blockquote>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Windows+7%3A+Aero+Shake+http://is.gd/cXFp0" title="Post to Twitter"><img class="nothumb" src="http://blog.shetye.net/wp-content/plugins/tweet-this/icons/tt-twitter-big4.png" alt="Post to Twitter" /></a></p>
<p><a href="http://feedads.g.doubleclick.net/~a/s1tPx7B2NJXz5ynsZ8tm2OEnlBk/0/da"><img src="http://feedads.g.doubleclick.net/~a/s1tPx7B2NJXz5ynsZ8tm2OEnlBk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/s1tPx7B2NJXz5ynsZ8tm2OEnlBk/1/da"><img src="http://feedads.g.doubleclick.net/~a/s1tPx7B2NJXz5ynsZ8tm2OEnlBk/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/kunalshetye/~4/Kz7Fo4tQ_fA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.shetye.net/2009/09/minimize-all-open-windows-except-the-active-one/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.shetye.net/2009/09/minimize-all-open-windows-except-the-active-one/</feedburner:origLink></item>
		<item>
		<title>How Today’s 20 popular websites looked when they launched</title>
		<link>http://feedproxy.google.com/~r/kunalshetye/~3/lZURFL5uvbo/</link>
		<comments>http://blog.shetye.net/2009/09/how-20-popular-websites-looked-when-they/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 05:14:45 +0000</pubDate>
		<dc:creator>Kunal Shetye</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[cool]]></category>
		<category><![CDATA[techonology]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://blog.shetye.net/2009/09/how-20-popular-websites-looked-when-they/</guid>
		<description><![CDATA[This is cool, do take a look! http://www.telegraph.co.uk/technology/6125914/How-20-popular-websites-looked-when-they-launched.html]]></description>
			<content:encoded><![CDATA[<p>This is cool, do take a look! <img src='http://blog.shetye.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<blockquote><p>http://www.telegraph.co.uk/technology/6125914/How-20-popular-websites-looked-when-they-launched.html</p></blockquote>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=How+Today%E2%80%99s+20+popular+websites+looked+when+they+launched+http://is.gd/cXFp4" title="Post to Twitter"><img class="nothumb" src="http://blog.shetye.net/wp-content/plugins/tweet-this/icons/tt-twitter-big4.png" alt="Post to Twitter" /></a></p>
<p><a href="http://feedads.g.doubleclick.net/~a/yvQ0ckEHYa2IcMKd3j08c9a3tmI/0/da"><img src="http://feedads.g.doubleclick.net/~a/yvQ0ckEHYa2IcMKd3j08c9a3tmI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/yvQ0ckEHYa2IcMKd3j08c9a3tmI/1/da"><img src="http://feedads.g.doubleclick.net/~a/yvQ0ckEHYa2IcMKd3j08c9a3tmI/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/kunalshetye/~4/lZURFL5uvbo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.shetye.net/2009/09/how-20-popular-websites-looked-when-they/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.shetye.net/2009/09/how-20-popular-websites-looked-when-they/</feedburner:origLink></item>
	</channel>
</rss>
