Posts

SharePoint List Web Part Shared by Sub Sites

Recently I had a requirement where a SharePoint list needs to be available for all sub sites created within a site collection. Consider a scenario where in an organization you have multiple departments having SharePoint sub site for each department and they all want to share an ‘Action Items’ list across all sub sites and main site. Requirement is as follows: • ‘Action Items’ list must be available at each sub-site level. • On the main site when a user log in, user should be able to view Action Items assigned to him. Solution: To achieve this we can have a single list created at parent level and the web part of this list can be reused in subsequent sub sites. Thus by doing this we can have all the data stored in the single list, which can be viewed differently in sub site level as per requirement. • Create a custom web part for that list view, this custom web part supports a tool bar so files can be uploaded and maintained in a single library, but viewed and maintained from any site in...

Changing InetPub to different drive - SharePoint

One of the most common configuration inconsistencies found in SharePoint farms is the Web application path, in most scenarios the Web applications are provisioned under the default root path of C:\Inetpub\wwwroot\wss\VirtualDirectories. This is usually the result of oversight during the provisioning process. Windows SharePoint Services 3.0 provides a configuration field that allows administrators to configure the path to the Web application host directory; however, in many cases, this setting is overlooked. Unfortunately, once a Web application has been provisioned, the only reliable method of moving the Web application is to delete and recreate the Web application on the server farm. Windows SharePoint Services 3.0 derives the directory information from the Web server registry setting at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp\PathWWWRoot, this path is subsequently appended with \wss\VirtualDirectories. To ensure Web applications are provisioned on the proper disk volume, modify...

PR1.3 update Nokia N900

I had been waiting for this update since a long time and there had been lot of buzz about this. Yesterday I had upgraded my Nokia N900 software to PR1.3. I have heard that it is now having QT 4.7 runtime inbuilt but didnt got a chance to test the same. Here is my verdict on this software update. I really didnt find any major changes, but it is said that 100+ maemo minor bus had been fixed. You can download it using the Nokia Software Updator. The only visible difference is it certainly have some performance improvement, seems to be very smooth now. Many application like mediabox have now awesome portrait support and they are looking good too. One more noticeable fact is web browser is really smooth now. I love Maemo and Nokia N900 and looking forward to have some more applications to be developed for N900. I will be trying to port Meego 1.1 image on my Nokia N900. Will keep you posted on the same.

Postback not working in Sharepoint Web Part after GridView Excel Export

Recently I had been developing a web part which display data in gridview and then export the grid to excel using following code. protected void ExportGridToExcel() { HtmlForm form = new HtmlForm(); string attachment = "attachment; filename=UserList.xls"; Page.Response.ClearContent(); Page.Response.AddHeader("content-disposition", attachment); Page.Response.ContentType = "application/ms-excel"; StringWriter stw = new StringWriter(); HtmlTextWriter htextw = new HtmlTextWriter(stw); form.Controls.Add(GridViewSiteDetails); this.Controls.Add(form); form.RenderControl(htextw); Page.Response.Write(stw.ToString()); Page.Response.End(); } But found that the export utility once called will disable other control to postback. Then after some search over net I found the following solution. Windows SharePoint Services JavaScript has a “form onSubmit wrapper” which is used to override the default form action. This work is put in place to ensure t...

Browser 'Back Button' Issue in ASP.NET - Workaround

In development many times you come up scenario where the Back Button of browser becomes a nightmare. Recently, while developing one of Web Application in .NET i faced this issue. I have a user control containing multiple child user control one of them is used to create new record for a business process. After successfully creating record, it is possible that end user use back button which bring them back to the previous page for creating new record. And on submitting again this page will create a duplicate record (if there is no duplicate check done in code). To avoid this if you need to refresh the Create New page then add the following line in the page_load. Thus when user use Back Button to browse to previous page the Create New Page will get refreshed and will be blanked out. " Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.Cache.SetExpires(DateTime.Now.AddSeconds(-1)); Response.Cache.SetNoStore(); Response.AppendHeader("pragma","no-cache...

शीतलामाता फॉल में आईआईएम का छात्र डूबा - IIM students drown in the fall of Shihlamato - www.bhaskar.com

शीतलामाता फॉल में छात्र डूबा - Students drown in the fall of Shihlamato - www.bhaskar.com This is really a sad news, but it is fault from our side. Ours means those people who are visiting Shitlamata Fall and trying to be play around against Nature's Law. When I was in college, i did visited this fall and to be very honest unless and until you do something very stupid, there is no risk at all. This fall is like heaven on earth and its beauty is remarkable. The deepest part of this fall is far away from the corners of the fall, there is no point going so deep and get drowned. People can sit and enjoy the beauty of fall from a distance too. This fall is really beautiful and is a treat to eyes, but parents are scared that their kids can get drowned over there because every year we hear news of students getting drowned in this fall. I request to all the people who are planning to visit Shitlamata fall to go and enjoy the beauty but dont try to be adventurous out there because Nature is...

First Blog from Nokia N900

I was excited for this smart phone. I read most of the reviews some good some bad on the internet related to Nokia N900. But here is my take on Nokia N900. This gadget is a master piece in terms of design, yes it is powerful phone, or I should say powerful mini computer. With 1 GB Application memory and 32 GB Storage memory this is a compact power house. I love the Camera and the best part is Maemo OS. You have complete control over the Desktop (4 of them) with Widgets. The highlight of this device is the Internet Browsing, fast and smooth, thanks to Mozilla browser. Nokia N900 is value for money and I loved it. So if you are techie enough and want to explore more with mobile, here is the mobile you should be looking for NOKIA N900. There are lot of smartphones in market each havin its own capability. But for me Nokia N900 is not just a phone. It is like a mini computer in hand with lot of capabilities. I am writing this blog on my Nokia N900, so if you are tech savvy and want to explo...