Archive

Archive for January, 2011

Close the SharePoint 2010 Modal Dialog from the code-behind

January 25, 2011 4 comments

SharePoint 2010 introduces the new Modal dialog framework, which opens up a light-box type pop-up in the page. Chakradeep Chandran (an former sharepoint server MVP) wrote an excellent article/tutorial explaining how to use the sharepoint modal Dialog framework.

http://www.chakkaradeep.com/post/Using-the-SharePoint-2010-Modal-Dialog.aspx

In addition to the Chak’s article, If you are trying to close the SharePoint Modal Dialog from the code-behind, the below code would help

HttpContext context = HttpContext.Current;
if (HttpContext.Current.Request.QueryString["IsDlg"] != null)
{
context.Response.Write("<script type='text/javascript'>window.frameElement.commitPopup()</script>");
context.Response.Flush();
context.Response.End();
}

Testing Post by Email WordPress

January 25, 2011 Leave a comment

Here a bing background I like..

Works.. cool

Categories: Uncategorized

Resurrecting old Thinkpad & Ubuntu Awesomeness

January 22, 2011 Leave a comment

This weekend I had the chance to resurrect my old Thinkpad Z60t. I got it in Dec 2005. The last time I remember booting it up was in 2008 & after that it was just lying between some books until today. Needless to say, the battery is dead as expected , considering the average feeble lifetime of any laptop battery. When I powered It on., it surprisingly booted up into windows Xp, but was extremely slow. Not sure what to do with it…Before I go further here are my IBM ThinkPad Z60t specs:

Intel Pentium(R) Mobile Processor 1.73Ghz, 1.5 Ghz DDR2 RAM , inbuilt 945 graphics card & all other goodies.

Compared to my desktop (have an Intel I-7 Quad core 920 processor, overclocked to 3.0Ghz, 12GB DDR3 RAM )  & my other laptop (have an Intel I-7  720M Quad core 1.60ghz , 8GB DDR3 RAM), this one is a little fish.

Tried to install Jolicloud 1.1 , but this took forever to boot from the disc & got stuck on the  “Choose your timezone” wizard. Actually Jolicloud does NOT support laptops,  Just notebooks.

Tried to install Ubuntu 10.10 Netbook edition. Same Story, took forever to boot from disc & got stuck in the installation wizard. I had high hopes for this one because of their new unity UI framework, but was very disappointed.  OS Not matured enough.

Tried ubuntu 10.10 Desktop edition. Took forever to install, but was successful. After all the updates & patches. its up & running like new. Its boot up time is a little over a minute & does all rudimentary things fine. Installed Firefox 4, Chrome & so far runs very active with out any lag. I now have an decent dedicated ubuntu box to play with…

P.S this post was written using the same laptop…

blogging…

January 5, 2011 Leave a comment

First post.

The first thing that comes to my mind when I hear “blogging”.. is “Not for Me”. I always misinterpreted blogging as being excessively opinionistic or personal branding. Let me also admit that its not quick & requires time and effort. Needless to say that I overlooked its pros over cons.

But in the past year, the perception has been changed significantly. I realized how helpful and knowledgeable it is to share solutions & information in a blog that is useful & at the same time existing for reference later. So I have decided to start blogging about my ideas, thoughts & the things that I have learned, developed, observed, discovered….etc I hope they are helpful.

Categories: Blogging
Follow

Get every new post delivered to your Inbox.