New answers tagged

0

Finally I get a fully worked solution on each site in SharePoint. It needs to be pasted in default.aspx under the tag: <asp:Content ContentPlaceHolderId="PlaceHolderAdditionalPageHead" runat="server"> Here is the js code: <script type = "text/javascript" > var webCollection = null; function runCode() { var clientContext = new ...


1

It works fine for me: var clientContext = SP.ClientContext.get_current(); var contextWeb = clientContext.get_web(); var webCollection = contextWeb.getSubwebsForCurrentUser(null); clientContext.load(webCollection); clientContext.executeQueryAsync( function () { // console.log('success :)'); var webEnumerator = ...


1

You could check SharePoint REST API to make ajax request and perform your expected behavior. https://msdn.microsoft.com/en-us/library/office/dn499819.aspx#bk_WebGetSubwebsFilteredForCurrentUser You could also take time to learn how to use JSOM API to do the same think (but too heavy to implement if you have not a friendly framework :) ...


2

From the Log and Image you shared. Looks like the Below Database are deleted / offline on SQL server. Profile DB Social DB Both DBS are very important in order to smooth Sharepoint operations.Now you have two options. Restore these DBs from Backup or fix the issue with them so that their status should be online. Or delete the current UPA and create a ...


0

It looks like you have some database availability or permission issues. System.Data.SqlClient.SqlException: Cannot open database "Profile DB" requested by the login. The login failed. Login failed for user 'CHALLANGER\administrator Can you please check to make sure 'Profile DB' is online and available and that the above user has access to it? Same issue ...


0

You need to activate the Farm-level Feature: Social Tags and Note Board Ribbon Controls Once that feature is enabled, the "About Me" will replace "My Settings" in the dropdown under your Username.


1

Please try below code <img src="<asp:Literal runat='server' Text='<%$SPUrl:~sitecollection/sitecollectionimages/MyImages/test.png%>' />" />


0

First - I don't think you need to keep re-creating the SPSite object. An SPSite object represents a site collection, not a (web)site. You can call site.OpenWeb() method with the server-relative or the site-relative URL of the web, which is easy enough to determine by stripping the URL of the site collection or web application. Beyond that, the easiest thing ...



Top 50 recent answers are included