Posts

Q. What does AllowUnsafeUpdates do ? Ans. If your code modifies Windows SharePoint Services data in some way, you may need to allow unsafe updates on the Web site, without requiring a security validation. You can do by setting the AllowUnsafeUpdates property. C#: ? 1 2 3 4 5 6 7 8 9 10 using(SPSite mySite = new SPSite("yourserver")) { using(SPWeb myWeb = mySite.OpenWeb()) { myWeb.AllowUnsafeUpdates = true; SPList interviewList = myWeb.Lists["listtoinsert"]; SPListItem newItem = interviewList.Items.Add(); newItem["interview"] = "interview"; newItem.Update(); } } Q What does RunWithElevatedPrivileges do? Ans. Assume that you have a Web Part in which you want to display information obtained through the Windows SharePoint Services object model, such as the name of the current site collection owner, usa

Find missing number in sequence

To find missing number in sequence, Use below given code :             var list = new List<int>(new[] { 1, 2, 4, 7, 9 });             var result = Enumerable.Range(1, 10).Except(list);             foreach (int i in result)             {                 Console.WriteLine(i.ToString());             }             Console.Read(); When you run above given code you will get missing numbers : 3 5 6 8 10

SharePoint 2013 : Drag & Drop feature not working

Hi , I was working with SharePoint 2013 on IE 9 & I saw that Drag & Drop feature was not working on my IE. I checked it again on my other PC which got IE 10 & Office 2013 installed. It was working there. Then I upgraded my IE9 to IE10 now it is working good. It means you must have IE 10 to run all new features of SharePoint 2013.

Download ebook Learning JavaScriptMVC

Download ebook Learning JavaScriptMVC Learn to build well-structured JavaScript web applications using JavaScriptMVC Book Description JavaScriptMVC is a client-side, JavaScript  framework  that builds maintainable, error-free, lightweight applications as quickly as possible. As it does not depend on  server  components, it can be combined with any web service interface and server-side language. Learning JavaScriptMVC will guide you through all the framework aspects and show you how to build small- to mid-size well-structured and documented client-side applications you will love to work on. Book Details Publisher: Packt Publishing By: Wojciech Bednarski ISBN: 978-1-78216-020-5 Year: 2013 Pages: 124 Language: English File size: 1.9 MB File format: PDF Download ebook Learning JavaScriptMVC

Edit Top Navigation Text

Image
Before : Run this command in SharePoint PowerShell $webApp = Get-SPWebApplication "http://SharePoint-Site" $webApp.SuiteBarBrandingElementHtml = "&nbsp;&nbsp;&nbsp;Gaurav Goyal's Site" $webApp.Update() After successfully completion of this command you will see :

How to check which SharePoint version is running?

Hi, If you have upgraded SharePoint 2010 into SharePoint 2013, Some of SP.js code won't work for SharePoint 2013. But you want to check & run code as per version then you have to use this code : if (SP.OfficeVersion.majorVersion == "14" ) {      // SP2010 code here...    } else {      // SP2013 code here...    }

Model Dialog in SharePoint 2013

Hi, Today I have upgraded my SharePoint 2010 into SharePoint 2013. When I was trying to call link which shows forms in Model Dialog was not working. I saw that I have a javascript function “NewItem2” which is not supported in SharePoint 2013. So here are new functions to open form in Model Dialog : SP.UI.ModalDialog.ShowPopupDialog(url); SP.UI.ModalDialog.OpenPopUpPage(url, callback, width, height); SP.UI.ModalDialog.RefreshPage(dialogResult); var value = SP.UI.ModalDialog.showWaitScreenSize(title, message, callbackFunc, height, width); var value = SP.UI.ModalDialog.showWaitScreenWithNoClose(title, message, height, width); SP.UI.ModalDialog.commonModalDialogOpen(url, options, callback, args); SP.UI.ModalDialog.commonModalDialogClose(dialogResult, returnVal); SP.UI.ModalDialog.close(dialogResult); SP.UI.ModalDialog.showWaitScreenWithNoClose('Loading Title', 'Loading Message Here...'); SP.UI.ModalDialog.showWaitScreenWithNoClose(SP.Res.dialogLoading15); You can get more d

Download ebook Business Intelligence in Microsoft SharePoint 2013

Download ebook Business Intelligence in Microsoft SharePoint 2013 Book Description Dive into the business intelligence features in  SharePoint  2013 - and use the right combination of tools to deliver compelling solutions. Take control of  business  intelligence (BI) with the tools offered by SharePoint 2013 and  Microsoft  SQL Server 2012. Led by a group of BI and SharePoint experts, you'll get step-by-step instructions for understanding how to use these technologies best in specific BI scenarios - whether you're a SharePoint administrator, SQL Server developer, or business analyst. Book Details Publisher: Microsoft Press By: Norman P. Warren ,  Mariano Teixeira Neto , Stacia Misner ,  Ivan Sanders ,  Scott A. Helmers ISBN: 978-0-73567-543-8 Year: 2013 Pages: 406 Language: English File size: 49 MB File format: PDF Download ebook Business Intelligence in Microsoft SharePoint 2013

Download ebook Microsoft SharePoint 2013 Developer Reference

Download ebook Microsoft SharePoint 2013 Developer Reference Book Description Develop your business collaboration solutions quickly and effectively with the rich set of tools, classes, libraries, and controls available in  Microsoft SharePoint  2013. With this practical reference, enterprise-development expert Paolo Pialorsi shows you how to extend and customize the SharePoint environment - and helps you sharpen your development skills. Ideal for  ASP.NET  developers with Microsoft .NET and C# knowledge. Book Details Publisher: Microsoft Press By: Paolo Pialorsi ISBN: 978-0-73567-071-6 Year: 2013 Pages: 794 Language: English File size: 92.7 MB File format: PDF Download ebook Microsoft SharePoint 2013 Developer Reference