Tag Info

Hot answers tagged

14

This should help - "SharePoint Terminology – Farms, Web Front Ends, Web Application and Sites" Specifically - "what is difference between Web and WebApplication?" Generally when you see "Web" mentioned in programming terms (SPWeb) it actually means a means what a user calls a site and a "Site" (SPSite) is a site collection. A Web Application is a unit ...


7

Here is my fix to the problem. It seems in SP 2013 calling ExecuteOrDelayUntilScriptLoaded() doesnt work on published pages. In SP2013 this is the correct way to do it according to MS @ http://msdn.microsoft.com/en-us/library/jj245759.aspx // Make sure the SharePoint script file 'sp.js' is loaded before your // code runs. SP.SOD.executeFunc('sp.js', ...


6

As a seasoned ASP.Net developer, I can tell you for certain that you could not have done this with a few web forms in ASP.Net. You would have had to build numerous subsystems for all of the various parts (security, document management, membership, retention, etc). You would also need the obligatory management UIs for all of those subsystems. In addition, ...


5

SharePoint web services respect security. Most likely, this is simply a configuration issue. According to this article, there are two main ways anonymous users can be granted access: Web level List/library level It sounds like currently the site is configured at the web level for anonymous access. I would look into disabling that and instead enabling it ...


3

Evgeny, If this is a lookup to the list it self (i.e. you want to select elements form the same list, like related news articles) you can set the list property to "self". <Field Name="LookupToPages" ID="{3B5B07A0-68DB-4BF6-AAAE-87B77CE430C6}" Type="LookupMulti" DisplayName="Related News" Group="Intranet.ContentTypes" ...


3

You can use a Page Viewer web part. This works exactly like you described. It provides a webpage in an IFrame form. Check out more about this here. http://office.microsoft.com/en-us/windows-sharepoint-services-help/page-viewer-web-part-HA010024045.aspx


3

It would be cool if you posted the offending code and its surroundings, but some things to consider out of the top of my head: You might be getting the object too early in the lifecycle (say PreInit methods and such, or an HttpModule etc) You might be breaking the pipeline doing things like setting the HttpContext to null (I've seen that in SharePoint ...


3

•Query server. A query server hosts query components and index partitions Query components return search results. Each query component is part of an index partition, which is associated with a specific property database that contains metadata associated with a specific set of crawled content. You can make an index partition redundant by ...


3

Query Server == Application Server. A "query server" is an application server with only the search service (in this case the query role) role enabled. You could also have a "Access Server" if you would only enable the Access Services role on the server because you have large loads of Access documents being processed. The query server and the search index ...


2

There's a 30 second execution cutoff in SharePoint Online (not sure about wave 15 yet). Have a look at your stopwatch, at the 30s mark the code will die without throwing an error. It probably works as a sandbox solution on your dev machine because it is faster.. Yes I have experienced this before.


2

You should dispose of the SPWeb reference after each feature receiver has executed. public override void FeatureActivated(SPFeatureReceiverProperties properties) { using (SPWeb web = properties.Feature.Parent as SPWeb) { } } Admittedly, feature receivers such as this are one of the few places where you don't "have to" dispose of your SPWeb ...


2

You should be able to get user information from the SiteUserInfoList rather than going directly to the MySite: SPList myList = SPContext.Current.Web.SiteUserInfoList; SPQuery query = new SPQuery { Query = string.Format("<Where><Eq><FieldRef Name='Name' /><Value Type='Text' >{0}</Value></Eq></Where>", ...


2

Button.OnClientClick is assigning JavaScript to run in the browser Button.Click is for Server side event handling


2

Have your tried perform encoding your values using SPHttpUtility Class. For example, you can use SPHttpUtility.HtmlUrlAttributeEncode to encodes the specified string for use as an attribute value for URL type attributes, such as the href attribute of an anchor tag or the src attribute of an image tag.


2

Have a look @ Introduction to Columns Specially look at the Column Scope section, which says Site Columns scope is same as Content Types...! Also like content types, site columns are available to all the child sites of the site on which they are defined. At the site level, the site column collection contains definitions for each site column ...


2

From this sample on msdn, I would said that dispose is still required. using (SPSite oSiteCollection = new SPSite("http://Site_Name")) { SPWeb oWebsite = oSiteCollection.AllWebs["DeleteWebSite"]; oWebsite.Delete(); oWebsite.Dispose(); } I also had a check at the source for the Delete method. All I see is a call to SPRequest.Delete(string) by ...


2

According to this example on MSDN, they have disposed the SPWeb object after deleting it. After using ILSpy on the SPWeb.Delete() method, we can see that internally it calls the Microsoft.SharePoint.Library.SPRequest.DeleteWeb(string bstrUrl, bool bRecycle) method. So from this we can infer that SPWeb.Delete() must be synonymous with deleting a site from ...


2

Three minutes is about normal full retract and redeploy but this actually varies greatly depending on the content being deployed/retracted. For example, if your WSP has thousands of images then it will take longer both to retract and then to deploy than a WSP that only has a master page/JS file.


2

Yes this is normal behavior. SPContext.Current.Web will only allow you to access lists from the current site. Before you access an outside list, you must open the SPWeb object of the site which contains the list. Example: using(SPSite site = new SPSite("url/of/child/or/parent/site") { using(SPWeb web = new site.OpenWeb()) { SPList list = ...


2

Some points to consider moving your site (SPWeb) to site collection (SPSite): Shared permissions (usually span across multiple sites and lists) Galleries for templates Content types (Content types are provisioned at site collection level) Web Parts Shared branding Common navigation scheme Site collection quotas (to control storage limits) with ...


1

Here is what I came up with: web.AllowUnsafeUpdates = true; SPFolder rootFolder = web.RootFolder; rootFolder.WelcomePage = ""; rootFolder.Update(); web.AllowUnsafeUpdates = false; This works great. Will probably add this snippet to an event receiver when new webs are created. Note: Setting the Welcome Page to nothing ("") can only be done pragmatically. ...


1

Evgeny, I recommend you utilize an event receiver if you're provisioning the list or content type through a feature. In short, what you need to do is to create the lookup column on the list, get a field link to the new column, and then add the field link to the content type attached to the list. Something like this should do the trick, provided you have ...


1

I had a similar problem. After I created my Web Application I received a strange error, But my Web Application was created, so I continued creating a Site Collection on it but received "403 forbidden" in the end. These instructions helped me: http://support.microsoft.com/kb/2543306 After I raised the timeout parameters in the IIS I recreated the WebApp ...


1

Take a look at these related questions: How can you move a document with its version history to a new library? How can I move a document from one directory to another?


1

Refeshing data from SharePoint list using data query is not supported in Excel Services. Look at the list of unsupported features for Excel Services ( http://msdn.microsoft.com/en-us/library/ms496823.aspx) I know the list is for MOSS 2007, however the only thing Microsoft changed is that they don't block workbook rendering in SP2010 (see ...


1

There is no way to set this in SharePoint. It's hard coded. I've had pretty good luck with the code below. An issue still remains if you are using blobcaching on your WFE's. The blobcache module actually returns early and my code never gets hit. public void Init(HttpApplication context) { context.PreRequestHandlerExecute += new ...


1

The reason you're getting 'CustomMembershipProvider' instead of 'CUSTOM', is because the membership provider from the STS config file is used to login. Generally you define the same options for each membership provider of the same name in each of your web.configs. Is there a reason you're using different options?


1

For what it's worth, almost every walk-through I have ever seen or followed for configuring FBA in SharePoint 2010 has used / as the applicationName value wherever one needs to be specified. Do you have a compelling reason for specifying something other than the root application name? Scott Guthrie has an awesome, detailed explanation of why setting the ...


1

If you created your application already with Claims-Based (which it seems you did) there is no need to extend the application (as it was in MOSS 2007) but you must update in SP-CA the Providers (2 text boxes on the provider about Membership/Role). This besides properly updating all 3 web.config files (which it seems you did). The name of the ...


1

You need GroupCollection.Remove and Web.DeleteObject Here is an example of looping through all groups: using System; using Microsoft.SharePoint.Client; namespace Microsoft.SDK.SharePointFoundation.Samples { class GroupCollectionExample { static void Main() { string siteUrl = "http://sharepoint"; ...



Only top voted, non community-wiki answers of a minimum length are eligible