Posts

Showing posts from 2010

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&quo

शीतलामाता फॉल में आईआईएम का छात्र डूबा - 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

Issue with List.Contains()

Methods such as Contains, IndexOf, LastIndexOf, and Remove use an equality comparer for the list elements. The default equality comparer for type T is determined as follows. If type T implements the IEquatable generic interface, then the equality comparer is the Equals method of that interface; otherwise, the default equality comparer is Object.Equals." So, you should implement the IEquatable interface on your Car object, and tell it to compare the _name elements for the equality test. e.g. (not a complete class !) public class Car : IEquatable { ... protected string _name; public string Name { get { return _name; } ... } #region IEquatable Members public bool Equals(Car other) { bool result = false; if( this.Name == other.Name ) { result = true; } return result; } #endregion }

Removing Antivirus Soft

Image
Antivirus Soft is one of the program which got installed automatically on my laptop and I was worried that my laptop is infected. But after searching on net I found that this is anti-spyware which creates an illusion that computer is infected by virus. I tried what is there in the following link and got success in removing this from my laptop. Hope this help you all. Please go through the following link to remove this anti-spyware. It worked for me. Thanks to the people behind this post. http://www.bleepingcomputer.com/virus-removal/remove-antivirus-soft
Image
Error during WSS 3.0 Installation I got a strange error while installing WSS 3.0 yesterday at a client.The error I was getting was " ERR Failed to create the configuration database. An exception of type System.Security.AccessControl.PrivilegeNotHeldException was thrown. Additional exception information: The process does not possess the 'SeSecurityPrivilege' privilege which is required for this operation." Solution: I read pointed out that the user running the install needs to have the “manage auditing and security log” privilege Manage auditing and security log Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment Description Determines which users can specify object access auditing options for individual resources such as files, Active Directory objects, and registry keys. A user with this right can use the security tab in the security permission set editor's Properties dialog box to specify auditing option

Add a trusted file location

Add a trusted file location In this article: About trusted file locations Add a trusted file location About trusted file locations In Microsoft Office SharePoint Server 2007, a trusted file location is a SharePoint document library, a UNC path, or an HTTP Web site that is configured as a trusted repository for workbooks that Excel Calculation Services can access. Excel Calculation Services opens workbooks that are stored in trusted file locations only. If you are planning to use a new SharePoint document library as a trusted file location for Excel Services in Microsoft Office SharePoint Server 2007, create the new document library on a SharePoint site. To create the new document library, click the Site Actions menu, select Create , and then click Document Library . On the New page, type a name for the new document library and click Create . Add a trusted file location Use the following procedure to add a trusted file location. Add a trusted file location From Administrative Tools ,

Plan external data connections for Excel Services

Image
Plan external data connections for Excel Services In this article: About Excel Services connections to external data Connections and Excel workbooks Data providers Authentication to external data Data connection libraries and managed connections Excel Services security and external data Step-by-step server configuration for external data Step-by-step workbook configuration for external data Frequently asked questions To configure Microsoft Office SharePoint Server 2007 to enable workbooks loaded on Excel Services in Microsoft Office SharePoint Server 2007 to successfully refresh external data, you need to understand the relationships and dependencies between Office SharePoint Server 2007 and Excel Services. The guidance provided in this article helps you resolve the following Data Refresh Failed error message. About Excel Services connections to external data This article provides guidance to help you configure the following Office SharePoint Server 2007 application server components: