Kunal Shetye’s Weblog

New Blog – www.shetye.net

Posted in Uncategorized by Kunal S. on September 28, 2009

I’ve recently moved to private hosting.

My new blog is hosted at www.shetye.net

Please do visit :)

Cost Cutting Chair

Posted in Emails by Kunal S. on May 27, 2009

Just got an email from a friend of mine.

Cost Cutting Chair! LOL!

 

 

Tagged with: , , ,

Testing a Blog Post via Email

Posted in Misc. by Kunal S. on May 27, 2009

Seems like this feature has been with wordpress blogs for ages.

But I never ever stumbled upon it.

Hopefully this will appear as a blog post on my blog :)

 

EDIT:

This feature was introduced somwhere around 12th-13th May 2009

References:

http://wordpress.tv/2009/05/12/introducing-post-by-email-for-wordpress-com/

http://en.blog.wordpress.com/2009/05/12/post-by-email/

 

Thanks,
Kunal

Silverlight Contrib to Merge with Silverlight Extensions

Posted in Uncategorized by Kunal S. on March 14, 2009

 

Silverlight Contrib to Merge with Silverlight Extensions

 
Today, we are excited to announce that the popular Silverlight Contrib and Silverlight Extensions projects will be merging into a single project! We think this move will greatly benefit the Silverlight developer community. Combining the two projects will provide a centralized location for developers looking to contribute controls to the community as well as those seeking to find controls for use in their own applications. This consolidation will help to reduce overlapping efforts in addition to promoting a more rapid release cadence.
During the consolidation phase, we still encourage feedback and issue reports on both projects. We will merge all of the project information from both projects once the name has been finalized and a centralized site has been developed.
So which name will we keep? That is your decision! From your votes, we will keep the more popular name. Please make sure you voice your opinion by voting. Votes from the community will be accepted until March 29th, 2009 at 6:00 PM EDT.
As new information is available we will post updates on both the Silverlight Contrib blog and the Silverlight Extensions blog. Stay tuned!

This is awesome news for the SLExtensions team.

Really looking forward to work with Silverlight Contrib team.

Cheers!!

ASP.NET MasterPage Caching Issues

Posted in .NET, C# by Kunal S. on February 16, 2009

Today I was working on an issue related to MasterPages.

I was using LoginView and LoginName controls in ASP.NET to show whether the user is logged in or not.

The issue was that MasterPage’s are cached by the WebServer to give a faster response to the user.

The MasterPage is cached  the first time it is the corresponding ContentPage is invoked.

Due to this fact the LoginView would be updated on some pages and would fail to update on others.

The solution to this problem is that you need to use <asp:Substituti0n> control as seen below.

<div class="loginstatus">     
      <asp:Substitution runat="server" ID="substituteLoginInfo" MethodName="methodToInvoke" /></div>

The thing with <asp:Substition> control is that you need to point it to a Method on the masterpage

that is with the following signature :

public static string methodToInvoke(HttpContext context)
{
   return DateTime.Now.ToLongTimeString();
}

This method will return a HTML string that will be substituted in the page, hence the name of the control.

I read this on Scott Guthrie ‘s website and he referred to as “dough-nut cache”.

Where the cream part of the dough-nut is the substitution control which is not cached :)

Follow

Get every new post delivered to your Inbox.