Saturday, March 16, 2013

SharePoint 2010 - Web Application Management


SharePoint Training – Web Application Management.
Introduction:
                SharePoint 2010 Central Administration Provides the Interface to Create Web Applications, Site Collections and to manage them. In this Article we’ll look at a brief on how to create and manage Web Applications and Site Collections in SharePoint Server Using Central Administration.
Terms:
  • Web Application: Web Application is a top level site in SharePoint Server hosted in IIS. Web Application behaves as a container for the Site Collections and Other Sub Sites. In other words Web Application hosts the Site Collections and sub sites in the SharePoint. SPWebApplication object represents a Web Application in SharePoint.
  • Site Collection: A site collection is a grouping of websites under a common top-level site that have the same owner and share administration settings, for example, permissions. When you create a site collection, a top-level site is automatically created in the site collection.
  • Sub Site: Sub Site is equivalent to a general asp.net site under a given Site Collection.  We can have ‘n’ number of Sub Sites for a give Site Collection. In general SPWeb object represents the current site (which can be a top-level site or a sub-site).
In this Article we’ll go through the steps for creating a Web Application, Site Collection and a Sub Site respectively.
Creating a Web Application:
  1. Go to Start -> All Programs -> Microsoft SharePoint 2010 Products -> SharePoint 2010 Central Administration.
  2. By clicking on SharePoint 2010 Central Administration. Central Administration Web Site is opened in the browser as shown below.
  3. The Central Administration Web Site allows the management of the following settings and services.
    1. Application Management.
    2. System Settings.
    3. Monitoring
    4. Backup and Restore
    5.  Security
    6. Upgrade and Monitoring
    7. General Application Settings
    8. Configuration Wizards.
  4. Application management section of Central Administration allows us to create and manage the Web Applications and Site Collections.
  5. Under Application Management Section of Central Administration, choose ‘Manage Web Applications’.

  1. On the Ribbon menu click on New Button which displays ‘Create New Web Application’ Window.
  1. Choose the following options in the window:
    1. Authentication-Mode: Classic Mode for Windows Authentication
                                                                 Claims Based for FBA Authentication.
    1. IIS Web Site: Create New/ Add to Existing ISS Web Site.  Specify the port number.
  1. Security Configuration: Choose - Negotiate (Kerberos).
  2. And similarly provide Application Pool and Database Name for the Web Application to be created.
  1. Under *Service Application Connections bind the required Service(s) for the Web Application.
  1. This completes the creation the Web Application in SharePoint.


Creating a Site Collection:
  1. Under Application Management section of Central Administration, click on ‘Create Site Collection’ option available in Site Collections section.
  2. Provide the following options in the opened window in order to create site collection.
    1. Choose Web Application:- Choose one Web Application from the available web applications dropdown list.
    2. Provide the Title and Description for the Site Collection.
    3. Provide the Web Site Address.
    4. Choose the Template from the list of available templates in the provided tabbed window.
    5. Provide Primary and Secondary Site Collection Administrator for the Site Collection.
    6. Choose the **Quota Template if required.
  3. Repeat the same steps in order to create other Site Collections under Same/Different Web Application.
  4. By now a Web Application and Site Collection has been created. Now we can browse the created Site Collection and we can create any number of Sub Sites in it.
Creating a Sub Site:
  1. Browse through the available Site Collection in SharePoint.
  2. Click on the Site Actions Ribbon of the SharePoint Site and from the dropdown list click on New Site option, which displays the create window.
  3. From the available templates choose ‘Team Site’ template and provide the title and description values. The more options button provides the option to have same set of permission or new set of Permissions for the sub site.
  4. The Following options are available in the Create window of a site:
    1. Title and Description.
    2. Web Site Address. URL to navigate through the crated sub site.
    3. Permissions. Use Unique Permissions Option provides to have new set of permissions for the created sub site.  Use Same Permissions options will inherit the Parent site permissions for the sub site.
    4. Navigation Inheritance. Provides the navigation options. One can display the parent navigation in current site or only current site navigation.
* Service Application Connections: SharePoint provides lot of services that provides most of the out of the box features of SharePoint. More information on SharePoint Application Services is available in the next article.
** Quota Templates: SharePoint allows the users to allot some kind of limitation on the usage of space for a particular Web Application. This functionality is achieved by using ‘Quota Templates’. More information on Quota templates is available in the article.
Now coming back to Web Application Management, as we have already created a Web Application, now we can go head and manage the available Web Applications using Central Administration site.
                Under the Application Management click on Manage web applications and then select a web application. Once the web application is selected the options are enabled in the ribbon.
The following are the options available for the web application.
a)      General Settings
b)      Manage Features
c)       Manage Paths
d)      Service Connections
e)      Authentication Providers
f)       Self-Service Site Creation
g)      Blocked File Types.
h)      User Permissions.
i)        Web part Security
j)        User Policy, Anonymous Policy and Permission Policy.
General Settings:
                The General Setting tab has the following options:
1.    General Settings.
2.    Resource Throttling.
3.    Workflow.
4.    Outgoing E-Mail settings.
5.    Mobile Account.
6.    SharePoint Designer.

1. General Settings: The following Screen Shots shows the available options in the general settings.





The following window shows the blocked file types where we can mention the file type extension which we can prevent from uploading to the server.




Thursday, January 31, 2013

direction service




<script type="text/javascript">

    var map; var drds = []; var drdds = []; var rqs = [];

    window.onload = function () {

        var chicago = new google.maps.LatLng(41.850033, -87.6500523);

        var mapOptions = {

            zoom: 7,

            mapTypeId: google.maps.MapTypeId.ROADMAP,

            center: chicago

        }

        map = new google.maps.Map(document.getElementById('map_canvas'), mapOptions);

        var ltlgn = ["Hyderabad", "Mumabai", "Pune", "Shirdi", "Bangalore"];



        for (var i = 0; i < ltlgn.length; i++) {

            var request = {

                origin: ltlgn[i],

                destination: ltlgn[i + 1],

                travelMode: google.maps.DirectionsTravelMode.DRIVING

            };

            rqs.push(request);

        }

        for (var i = 0; i < 3; i++) {

            var directionsDisplay = directionsDisplay + i;

            directionsDisplay = new google.maps.DirectionsRenderer();

            directionsDisplay.setMap(map);

            drds.push(directionsDisplay);

            var directionsService = directionsService + i;

            directionsService = new google.maps.DirectionsService();

            drdds.push(directionsService);

            setTimeout(d(i), 2000)

        }

    }

    function d(i) {

        drdds[i].route(rqs[i], function (response, status) {

            if (status == google.maps.DirectionsStatus.OK) {

                drds[i].setDirections(response);

            }

        });

    }



</script>

<div id=""></div>