Geeks With Blogs
Hani Amr May 2011 Entries
Paging problem in Data Form Webpart SP2010
Dears, I’ve been facing a bug in the paging of the data form webpart which occurs when the asynchronous update is enabled. The issue is that when you click the previous button, then it’ll redirect you to the previous page as it invokes a call to history.back() javascript function. I’ve done some modifications in the XSLT in order to make this work: • Open the code view and search for a <td> that has a class named “ms-paging” and then paste those lines before the starting of the td tag: <xsl:variable ......

Posted On Tuesday, May 31, 2011 3:00 PM

Granular backup/restore in Sharepoint 2010
Dears, I've just recently tried the new feature in SP2010 which is granular backup and restore. In my case, I wanted to backup a list with the data in it and restore to another sharepoint site with the same template and language. So, the steps are very simple: Go to central administration --> Backup and Restore --> Granular Backup --> and choose "Export a site or list" Then choose the list/site that you want to backup and write the path of the backup ".cmp" file, and you can choose to export ......

Posted On Tuesday, May 31, 2011 1:08 PM

Filter Data Form Webpart (DFWP) by Querystring
Dears, I've faced an interesting problem which I think must be resolved in the new version of Sharepoint. It's about filtering a data form webpart with a querystring parameter.Actually, when you provide a querystring it filters correctly, but if not then it'll not return any rows. Which that was not the behaviour that I actually wanted, I needed it to display all rows when no querystring is applied. So, here's what I've done to work it around: 1. Drop a data form webpart on a page in Sharepoint Designer. ......

Posted On Wednesday, May 25, 2011 4:16 PM

Http Modules in Sharepoint 2010
Dears, Another thing I've faced is that I had to do URL rewriting according to a client cookie.So, first thing came into my mind is writing an Http Module to do the job. Here're the steps: Create your Http Module. Build the module and put the dll in the web application's bin folder. Edit the web.config of the web application, go to the <modules> section and add the following: <add name="ModuleName" type="ModuleType" /> That's it, you're done :) Cheers ......

Posted On Wednesday, May 25, 2011 12:24 AM

Turn off Automatic daylight saving in Sharepoint 2010
Hello, I've not been blogging for the past 2 months maybe because of being extremely busy. Anyways, one of the topics that I've faced is that the government in my country decided to not use daylight saving anymore. So, in order to make sharepoint understand this you'll probably have to do it manually like this: Go to edit the timezone.xml file found in \Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\CONFIG Take a backup in case something went wrong and then search for your city ......

Posted On Wednesday, May 25, 2011 12:13 AM

Copyright © H@Ni | Powered by: GeeksWithBlogs.net