Geeks With Blogs
Hani Amr March 2011 Entries
Automatic Content Publishing
This is one of the very useful powershell scripts that I found for automatic content publishing and approval on sharepoint 2010. It's very useful that it can be recursive on all sub sites in your site collection and easy to use: .\PublishSPContent.ps1 -Url "http://Yoursite" -Recursive $true You can download it from here : http://publishspcontent.cod... ......

Posted On Tuesday, March 29, 2011 4:41 AM

Validate that a Checkbox is checked using javascript
I was facing a challenge yesterday that I was creating a Visual webpart and I wanted to validate the a submit button is only visible if the user checked a "I agree to terms" checkbox. Something was weired that I tested my code on a normal asp.net website and it worked perfectly while it had a different behaviour inside the webpart which is whenever I check the checkbox, the button is enabled but it will not fire the asp.net validators in client side. It posts back the page and then the validators ......

Posted On Thursday, March 10, 2011 12:05 AM

Farm is unavailable exception
I was faced today by an exception saying that "Farm is unavailable" and the call stack which for sure wasn't useful for diagnosing that type of error. My solution to this error was straight forward and below are the steps that I've followed: 1. Open run and type services.msc 2. Search for the SQL server instance and in my case I've found that it's not running, so simply start it :) After that, refresh the page and everything is normal again ......

Posted On Wednesday, March 9, 2011 11:55 PM

MOSS 2010 Deploy Farm Solution using STSADM
Today, I've been working on deploying farm solutions to another farm and I was surprised that it can only be done using STSADM.exe. Below are the steps that I've done to get it to work : 1. Use the command addsolution and give it the path of the wsp file which was something like that : stsadm -o addsolution -filename C:\MySolution.wsp 2. Use the command deploysolution and give the solution name as a parameter like that : stsadm -o deploysolution -name MySolution.wsp -immediate -allowgacdeployment ......

Posted On Tuesday, March 8, 2011 4:47 AM

jQuery .Flv Player
I've recently used a cool .Flv player to play video files that are uploaded by site admin and thought it's good to share. Download from: http://flowplayer.org/ Using this control is very simple, just follow those steps : 1. Create an anchor with href equals to the video url <a href="Video.flv" id="MyPlayer" ></a> 2. Add path to the player's javascript file <script type="text/javascript" src="flowplayer-3.2.4.min.j... 3. Simple call to a function named flowplayer with ......

Posted On Monday, March 7, 2011 12:11 AM

FormatDate in Display Item Form Webpart
I've faced an issue that I wanted to display the date in the format of ('MMMM dd') that is retrieved from a sharepoint list in an arabic site collection. So, after googling this issue, I've found out that a possible solution to my poblem is using the function ddwrt:FormatDateTime that can be used as long as you'll include the following namespace xmlns:ddwrt="http://schemas... My purpose was solved by writing this line of code in my xsl code behind for the ......

Posted On Sunday, March 6, 2011 10:46 PM

Hello !
This is my first post in this blog ! I hope that it could be a useful page for everyone :) ......

Posted On Sunday, March 6, 2011 6:09 AM

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