HOW-TO:11:: WSS Current Number of Sites 0 after SQL Restore of Content DB

You restore a content db via SQL restore and attach it to another SharePoint web application via Central Administration “Add a content database” and for some reasone the “Current Number of Sites” is 0. How to fix it: 1. Remove the content databases from the virtual server using SP Central administration. 2. Delete the row [...]

HOW-TO:10::Access SP URL Query String from javascript

function queryString(parameter) {   var loc = location.search.substring(1, location.search.length);  var param_value = false;   var params = loc.split(“&”);  for (i=0; i<params.length;i++) {      param_name = params[i].substring(0,params[i].indexOf(‘=’));      if (param_name == parameter) {          param_value = params[i].substring(params[i].indexOf(‘=’)+1)      }  }  if (param_value) {      return param_value;  }  else {      return false; //Here determine return if no parameter is found  }}

HOW-TO:8::Sharepoint Virtual Server : Not Administrable

When you check the list of Virtual servers on Sharepoint central admin site, sometime you can see virtual server is not administrable. To fix it, just change the path of virtual directory path in IIS to some other new location (ex: c:\mysite) and reset the IIS. It will fix the Problem.

HOW-TO:3:: Enable Anonymous Access to Sharepoint 2007 site

Step1: In the Central Administration site select “Application Management” either in the Quick Launch or across the top tabs Select “Authentication Providers” in the “Application Security” section Click on the “Default” zone (or whatever zone you want to enable anonymous access for) Under “Anonymous Access” click the check box to enable it and click “Save” [...]

HOW-TO:4:: Linking and Showing external sites on Sharepoint page.

Add two Content Editor Web Parts to the web part page. In Web Part A add the following code:    <iframe name=myframe src=http://www.msn.com></iframe> In Web Part B add the following code:  <li><a href=http://www.microsoft.com target=myframe>Microsoft</a> <li><a href=http://www.msn.com target=myframe>MSN</a> <li><a href=http://msdn.microsoft.com target=myframe>MSDN</a> The net effect is that clicking a link in Web Part B causes it to display [...]

HOW-TO:1:: Unlocking locked SP Webpage

At the end of the web address, type in ?contents=1 This will take you to a page that will allow you to close a web part down if it is one that just locked you out

HOW-TO:2:: Minimize web parts by default instead of the normal expanded view

1. It can be achieved it by setting the ChromeState in your page_load. See the following sample: foreach (GenericWebPart gwp in WebPartManager1.WebParts) { /// find for all the webparts on current webpart page. /// and set the ChromeState of each webpart to Minimized. gwp.ChromeState = PartChromeState.Minimized; } Above one will change the state of all [...]

Follow

Get every new post delivered to your Inbox.