Wednesday, September 27, 2017

Interview Qns

What is the use of The jQuery noConflict() Method?


The noConflict() method releases the hold on the $ shortcut identifier, so that other scripts can use it.

You can of course still use jQuery, simply by writing the full name instead of the shortcut:
==================================================
What is the difference between Team site and Publishing Site?


What are the difference between $(window).load() and $(document).ready() functions


 document.ready is a jQuery event, it runs when the DOM is ready, e.g. all elements are there to be found/used, but not necessarily all content. 

  window.onload fires later (or at the same time in the worst/failing cases) when images and such are loaded, so if you're using image dimensions for example, you often want to use this instead.

<html>
<head>
    <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
   
$(document).ready(function() {
 // executes when HTML-Document is loaded and DOM is ready
 alert("document is ready");
});


$(window).load(function() {
 // executes when complete page is fully loaded, including all frames, objects and images
 alert("window is loaded");
});

</head>
<body>
    <iframe src="http://stackoverflow.com"></iframe>
</body>
</html>

===================================================

 What is the master page used in sharepoint 2013 and 2010?



What is the master page used in Team Site and Publishing site templates?


Differences between SharePoint’s Oslo and Seattle master pages?

Seattle:
      1. Seattle is designed for intranet team collaboration portal with more features such as  social, content\site navigation and management,etc.
     2. There is a Left navigation is exist and we can set Top navigation for top level sites and sub sites.

Oslo:      

1. Oslo master page is designed for publishing site which focus on page layout and content rendering.
2. moving the left navigation to the top, and removing the top navigation all together. Oslo has a wider layout for your content.







Sharepoint 2016 Features

  • 1) Hybrid. Microsoft has worked hard to bridge the gap between SharePoint Online and SharePoint On-Premises. ...
  • 2) Hybrid Search. ...
  • 3) Media Preview. ...
  • 4) Large Files. ...
  • 5) Complete Privacy. ...
  • 6) Mobile Experience. ...
  • 7) Server Roles. ...
  • 8) Faster Site Creation.
App Launcher
It helps SP 2016 to match the Office 365 experience by providing the users almost an identical interface to navigate both SharePoint 2016 and Office 365.
Min Roles
With SharePoint 2016, we can select the specific role of a Server and according to the role Service will be enabled on the Servers. Thus, we don’t have to worry about individually running SP Services on Specific SP Farms.
Min-Role Farm Topology
Six pre-defined roles are available to create a new Farm or join an existing Farm. SP automatically configures the Services according to the selected role.
Zero Downtime Patching
In order to take the advantage of zero downtime patching, your Farm must have a High Availability, HA and topology.
Integrated Project Server
Project Server 2016 is installed with SharePoint 2016 but it will be licensed separately.
Deprecated Features
Six features are deprecated from SharePoint 2016, if we compare it with SharePoint 2013 or the previous editions.
  1. SharePoint Foundation – SharePoint Foundation has been removed.
  2. Stand-Alone Installation - Stand-alone is not possible now in SP2016 for Single Server you have to make sure that SQL installed and configured.
  1. Forefront Identity Manager Client (FIM) - In SharePoint 2016 Microsoft replace FIM with MIM.
  2. Excel Services in SharePoint - SharePoint Server 2016 you must also deploy Office Online Server with Excel Online to ensure Excel Services functionality remains available. 
  3. Tags and Notes - You will no longer be able to create new tags or notes or even to access existing ones.
  4. Stsadm.exe - PowerShell is the way to go but backward compatibility remains with STSADM.


Thursday, July 20, 2017

Adding Items Into A SharePoint list



protected void Page_Load(object sender, EventArgs e)
    {
       public string Pid = Request.QueryString["pid"];
        if (Pid != null)
        {
 
     try  
            {  
                using(SPSite site = new SPSite(SPContext.Current.Web.Url))  
                {  
                    using(SPWeb web = site.OpenWeb())  
                    {  
                        SPList list = web.Lists.TryGetList("List Name");  
                        if(list!=null)  
                        {  
                            SPListItem NewItem = list.Items.Add();  
                            {  
                                web.AllowUnsafeUpdates = true;  
                                NewItem["Coulm1"] = Pid;  
                                NewItem["Coulm2"] =txt.something;  
                                NewItem["Colum3"] =txtaddr.Text;  
                               
                                NewItem.Update();  
                                Alert.Text = "Successful";  
                                 
                            }  
                        }  
                        else  
                        {  
                            Alert.Text = " not found";  
                        }  
                    }  
                }  
              
             
            }  
            catch(Exception ex)  
{  
                Alert.Text = ex.Message.ToString();  
}    
 
 }
   

          
}

Thursday, April 6, 2017

SharePoint 2016: Six Deprecated Features

1. SharePoint Foundation
SharePoint Foundation has been included in all previous releases and stands as the free, slightly cut-down version of SharePoint. All of the core functionality for this is now built directly into the core SharePoint product, so this is now no longer available.
2. Stand-Alone Installation
The outlined the SharePoint 2016 MinRole approach introduced in SharePoint 2016. Due to this change and update, the idea of a "stand-alone" installation is not supported as it has been with other builds. If you want to create a self-contained development or test environment, then simply choose the “Single Server Farm” role during installation. You will, however, have to esure that everything else you need, such as SQL, is already installed and configured.
3. ForeFront Identity Manager Client (FIM)
In previous versions of SharePoint, ForeFront Identity Manager (FIM) Client was used to synchronize between Active Directory and SharePoint. The new release of SharePoint does not use it at all. The standard way of importing users now is via Active Directory Import. You can still use third-party products, as well as the new Microsoft Identity Manager 2016 version.
4. Excel Services in SharePoint
So, this is a big one, or maybe not. During the past few years, functionality that is really Office- and Web-rendering based has moved to Office Web Apps rather than inside of the core SharePoint stack. In SharePoint 2016, Excel Services and its associated business intelligence capabilities have been removed. The Excel Services piece has moved into a new Office Web Apps product, Office Online Server, which is now in preview. Not only has functionality been moved, but certain features have been completely deprecated. These items include Excel Services PowerShell commands, Trusted Data Providers, File Locations and Data Connection Libraries. Feature such as Viewing and Editing Excel data in the browser now requires the new Office Online Server.
5. Tags and Notes
This feature is completely deprecated for SharePoint 2016. You will no longer be able to create new tags or notes, or even access existing ones. Microsoft has, however, documented how you can archive existimg notes.
6. Stsadm.exe
Finally, we are seeing the demise of “stsadm.exe”, in all fairness we should have been using PowerShell instead for everything possible for the past couple of versions. Even though it is deprecated it is still there for those backwards compatibility moments that will of course appear as