Sunday, July 15, 2012

How to get the details of W3WP processes running on your server

How to get the details of W3WP processes for each app pool running on your server
Run this command from System32 folder

Cscript iisapp.vbs

Output will be in the format:

W3WP.exe PID: 1468   AppPoolId: AppPoolForSite1.com
W3WP.exe PID: 3056   AppPoolId: AppPooForSite2.com
W3WP.exe PID: 1316   AppPoolId: AppPooForSite3.com

Auto Refresh a Web Page

Add the below line in the <head> section of your web page.
For Eg.
<meta http-equiv="Refresh" content="90" />

where "90" is Time in seconds.

Sunday, June 10, 2012

Redirection from http to https using Javascript

Redirection from http to https using Javascript

<script language="JavaScript">
function redirectHttpToHttps()
{
    var httpURL= window.location.hostname + window.location.pathname + window.location.search;
    var httpsURL= "https://" + httpURL;
    window.location = httpsURL;
}
redirectHttpToHttps();
</script>

Sunday, May 20, 2012

Redirection of page from http to https using VB.net and C#

Redirection of page from http to https using VB.net

If Not Request.IsSecureConnection Then
 Dim redirectUrl As String = Request.Url.ToString().Replace("http:", "https:")
 Response.Redirect(redirectUrl)
End If

Redirection of page from http to https using C#
if(!Request.IsSecureConnection)
{
  string redirectUrl = Request.Url.ToString().Replace("http:", "https:");
  Response.Redirect(redirectUrl);
}

Redirection Script for redirecting to new page

Redirection Script for Redirecting to new page.

One can use this redirection script to redirect from one page to another

<SCRIPT LANGUAGE="JavaScript">
  
 document.location.href = "<url to redirect>";
 
 </SCRIPT>

Thursday, May 3, 2012

init.js - library not registered

If you are getting a javascript error in the web browser
OR
A Java error
OR
Dropdown Menu not working in a Sharepoint 2007 site

Running IE?
Have Office 2010 64-bit installed?
If you are getting a init.js - library not registered error, try this:
Open CMD prompt, and navigate to C:\Program Files (x86)\Microsoft Office\ Office14.

Type regsvr32 name.dll  and Press Enter.
Restart IE
Done

Sunday, February 5, 2012

Microsoft SharePoint

Microsoft SharePoint is a web application platform developed by Microsoft. First launched in 2001,SharePoint is typically associated with web content management and document management systems, but it is actually a much broader platform of web technologies, capable of being configured to suit a wide range of solution areas.

SharePoint is designed as a broad, central application platform for common enterprise web requirements. SharePoint's multi-purpose design allows for management and provisioning of intranet portals, extranets, websites, document & file management, collaboration spaces, social tools, enterprise search, business intelligence, process integration, system integration, workflow automation, and core infrastructure for third-party solutions. SharePoint's core infrastructure is also suited to providing a base technology platform for custom developed applications.

SharePoint is capable of supporting multiple organizations on a single 'server farm'. Microsoft provides SharePoint Foundation at no cost, but sells premium editions with additional functionality,and also provides SharePoint as a service in their cloud computing as part of their Office 365 platform (and previously as part of their Business Productivity Online Standard Suite (BPOS) offering). The product is also sold through a cloud model by many third-party vendors.

In late 2008, the Gartner Group put SharePoint in the "leaders" quadrant in three of its Magic Quadrants (for search, portals, and enterprise content management).SharePoint is used by 78% of Fortune 500 companies. Between 2006 to 2011, Microsoft sold over 36.5 million user licences.