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 ...


9

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', ...


7

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 ...


4

You can use the stsadm deletesite option or do it within central administration for faster site collection removal. Do you have access to either of those?


3

You first have to get the SPWeb object related to the sub site. Something like using(SPWeb web = sites.OpenWeb("subsiteurl")) may help. Your code is actually trying to get the TestList at the root web.


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 ...


3

Here are the steps: make sure you have valid DNS entry for Local.xyz.com, A record entry for the DNS. Service Account(domain Account) required which will run the App Pool of new Web App. Now login on the Central Admin with Farm Admin account go to Central Admin > Application Management > Manage web Application > from Ribbon Select New Fill this form with ...


2

MOSS 2007, ~100,000 users, approx 20 web apps. 1 for each geographic location + CA + MySites (each with their own content DB)


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 can use the out of the box Content Editor Webpart to include custom html on a page.


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

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

If you want to generate chart in sandbox solution then Jquery is best option for that See this link for google chart jquery plugin http://www.maxb.net/scripts/jgcharts/include/demo/


2

In a production environment, even read-only queries directly against SharePoint's databases are unsupported. This is because any sort of query can lock up some or all of the rows within a database and lead to degraded performance for end users and/or data corruption for your SharePoint environment. This is why Microsoft does not support direct access of ...


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

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


2

The faster method to delete site is through STSADM for MOSS 2007 and SharePoint 2010 Management Shell for SharePoint 2010.


2

Ouch - don't do this! Use the Secure Store Service to map user credentials. It is designed to store and map credentials in a very secure way.


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

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

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

plz try with this.. SPWeb spWeb = Microsoft.SharePoint.WebControls.SPControl.GetContextWeb(System.Web.HttpContext.Current); SPUser user = spWeb.CurrentUser; or using (SPSite spsite = new SPSite(url)) { using (SPWeb spweb = spsite.OpenWeb()) { userObj = spweb.CurrentUser; ...


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 ...



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