Friday 24 August 2012

Hide the Ribbon sharepoint 2010 default page load


$(document).ready(function () {
    if(<%=(!Page.IsPostBack).ToString().ToLower()%>){
        $("#s4-ribbonrow").slideUp();
    }
else{
       var show = $("#textShowHideRibbon").text();
    if (show == "Show Ribbon") {  
              $("#textShowHideRibbon").text("Hide Ribbon");    
       }
       else {
      $("#textShowHideRibbon").text("Show Ribbon");    
       }
}

});

Thursday 23 August 2012

Add an assembly to the Global Assembly Cache on Windows Server 2008 R2



There’s an entire list of local policies related to UAC…
image
After doing some looking around, I resolved to focus on the policy highlighted above: User Account Control: run all administrators in Admin Approval Mode. It was Enabled on their server.
First, About “Admin Approval Mode”. Taken literally, Admin Approval Mode means that any action that should only be achievable by an administrator must go through UAC’s “Admin Approval” (the secure screen that presents the approval). By default (as listed above), actions that require Administrator rights must go through the “Admin Approval Mode” process… even if the person doing the action is part of the Administrators group. Setting this to “Disabled” effectively means that Admin Approval Mode is no longer required for members of the local Administrators group… effectively disabling UAC entirely for those users.
image 
So, we disabled it and rebooted (required for changes to the local security policy).
Our drag-and-drop to add assemblies to the GAC now works. Happiness ensued.


http://blogs.msdn.com/b/mossbiz/archive/2010/06/10/add-an-assembly-to-the-global-assembly-cache-on-windows-server-2008-r2.aspx

secpol.msc