Tag Info

Hot answers tagged

6

If is only about viewing, then you should probably consider Views or go for Target Audience (this is will hide items from view automatically without changing permissions - does require User Profile) If you really need permissions than try building a workflow on particularly those conditions so that everytime a new list item gets added permissions are set


6

When you deploy a solution with a WebPart it deploys three things: The dll with the web part A SafeControl entry to be inserted into web.config A .webpart (or .dwp) file with configuration settings to be inserted into the Web Part Gallery (this part actually happend at feature activation not at solution deploy, but..) When you're adding a web part to a ...


5

It’s better to use the Delete() method of SPWeb.Lists instead of using the Delete() method on the SPList because the latter doesn't delete lists properly sometimes. Try something like: SPWeb mySite= SPContext.Current.Web; SPList myCustomList = mySite.Lists["MyCustomList"]; mySite.Lists.Delete(myCustomList.ID); mySite.Update();


5

CAML is simply the fastest (if you write efficient CAML queries that is) for the obvious reason that there is no other query language for SharePoint. Linq to SP uses CAML internally The API methods does not convert to CAML and queries for the whole "collection" of objects The CAML query is converted to T-SQL internally by SP and queries the content ...


5

Checklist inside Central Administration: Services on Server -> SharePoint Foundation Search is started. Manage Web Applications -> Highlight SharePoint 80 -> User Policy -> Set crawl account to full read. Manage Content Content Datases -> WSS_Content -> Search Server -> Select the Search Server for Foundation 2010 Monitoring -> Job Definitions -> ...


5

You can create a WebPart that will read data from a iCalendar file using a third party .Net assembly, I personally didn't used them before but here's the two of them I can think of right now, DDay.iCal and icalparser you can also use it to parse ICS file to text and then read it but its up 2 you For more information check these links out ...


5

I use hMailServer with Sharepoint. Since I have worked with this to a good degree, I have a few threads in these forums that would be of service to you: How to Enable Email in Lists Also, see my response in this thread. How to Enable Email in Lists Without Using Exchange? - here I actually answer my own question. How does internal email get to the SMTP ...


4

Both the description and the solution of your issue can be found here : Unable to Open PDF Directly from SharePoint 2010. Basically, it's a security feature (that can be disable, if you accept the implication), that prevent some files to be displayed in the browser directly. Typically, what would prevent someone to put some javascript in the html file and ...


4

"It depends" :) No code is great when you want to do something reasonably small, quick, not wide ranging on your site. You can do a fair bit with JavaScript, content editor webparts and client object model. It isn't particularly scalable though. You end up copying a lot of stuff around, hacking away at master pages in notepad, that sort of thing just ...


4

Create a view only showing published items and change the alerts to be on changes to an item that appears in that view. Note that the list needs at least one view with a filter for that option to appear


4

No. You will almost certainly need to make modifications. Migration tools will only work perfectly on the most simple applications, and even they can have problems. The more features of the core libraries that your systems make use of, and the more assumptions that you have been working with about "the way things work" in SP, the more problems you will ...


4

When you RunWithElevatedPrivileges the executed code runs with Elevated Privileges, and under other Account, usually Application Pool user. If you need to pass user account to the method, insert into a variable before calling the delegate. string userId = Context.CurrentWeb.RootWeb.CurrentUser; (This code is j ...


4

Thanks for your reply. I have added this code in vb script. Sub OnDeliverMessage(oMessage) Dim path, filename, fso, original, copy path = Split(oMessage.Filename, "\", -1, 1) filename = "C:\inetpub\mailroot\Drop\" & _ path(UBound(path)) Set fso = CreateObject("Scripting.FileSystemObject") ...


4

I assume that by saying pages what we created using Visual Studio you mean application pages created in Visual Studio and deployed to _layouts directory. If you want to make such page anonymous, you have to change base class in your code behind. By default, application pages inherit from LayoutsPageBase class, and you have to change it to ...


4

Windows Azure is PaaS(Platform-as-a-Service) that allows you to install and manage your SharePoint environment on cloud like you do on premises. You will be charged based on the space and compute hours consumed by your SharePoint farm, Visual studio, TFS etc. Much VS debugging makes you pay more :-), hence development farm on Azure may be costly to ...


4

If you don't want other people to be able to Reverse Engineer the source code to DLLs you're giving them, then you should obfuscate the DLL. See .Net Obfuscation for some suggestions. But before going in that direction I have a couple of comments: The only people who can get the DLL is the people with access to WSP (or the farm where it's installed). Not ...


4

Sure you can! But do keep in mind that Foundation is more limited in what it can do (for example the Meta Data Service Application and User Profile Service is not available) Here is a great comparison of the versions (for 2010)


4

Do I need to do any configuration at Central Administrator? If you want it just for your personal machine then you shouldn't touch CA. You need to perform some additional steps, e.g. creating a group policy and modifying IE Enhanced Security Configuration. Follow this article out, How do I make our SharePoint site stop asking me to login? – Part I ...


3

When using Sandboxed solutions in SharePoint 2010 the code runs in a separate process to isolate the "normal" environment from the sandboxed code. Each site collection is allocated a number of points it can use for sandboxed code each day. The moment the site collection has consumed more that that number of point during a day all sandboxed code execution ...


3

SharePoint works great with AJAX. Two of the great improvements for SharePoint 2010 was Client Side Object Model and REST interface which makes JavaScript development against SharePoint a lot easier that using the old Web Services. Another great option which makes a the Web Services usable and provides a lot of great functionality (and good documentation) ...


3

I've done ajax a few different ways. When deving webparts I usually try to use the ICallbackEventhandler (http://msdn.microsoft.com/en-us/library/system.web.ui.icallbackeventhandler.aspx), especially when creating webparts that need ajax. I've also had a scenario when I used an update panel ...


3

SharePoint Foundation does not support output caching. You have to rely on ASP.NET Cache objects in your code. Infact BLOB cache, page output, and object cache are not available in SharePoint foundation. Page output and object cache require that you activate the ‘SharePoint Server Publishing’ feature located in the site features of your web site, so these ...


3

You have the option to set the list view throttling really high, however there is another option to disable the throttling altogether. We've actually disabled the list view throttling on two particular lists on our farm. There is a script that allows this on the following blog:


3

If the page has been set as the homepage and SharePoint is prompting for download, confirm that your web application Browser File Handling is set to "Permissive"... if it's set to "Strict" that could be what's forcing the browser to attempt to download. Central Administration > Manage Web Applications > Select Web Application > General Settings


3

GetCurrentCtx() can be run only in list views and gives you ContextInfo object with some useful properties. SP.ClientContext.get_current() gives you the javascript form of SPContext which you can use to retrieve, modfiy sharepoint stuff from javascript. So they are different things.


3

You have probably read .NET Framework support in SharePoint 2010 ? Basically, it stated that SharePoint can't run on .Net V4 (I guess it's because of the workflow engine, but it's only a supposition). If you require something that works with V4, you have to create your own application. This application can then consume data in SharePOint using remote api ...


3

The client side (no-code as you call it) approach is non-destructive to the platform as it all happens with what SharePoint natively serves up. If something breaks, you remove the problematic script and you're back functioning natively without any fancy customizations. If done right, this can still be very powerful and SharePoint gives you native version ...


3

The User Control is being inserted into the control collection of the "real" Web Part, this enables you to get hold of the "real" Web Part though the Parent property of the User Control. If all you want to access is the standard properties of the Web Part you can just cast Parent to WebPart, but if you have introduced custom properties then you of course ...


3

From my experience, this is not possible through the SharePoint Dataview Sheet View. This is a new feature in 2010 and although super delicious and powerful, it still has a lot of issues that need to be resolved before it will be as powerful as it can be - in 2013, Microsoft has made improvements as per this article from MSDN To answer your question - in ...


3

You can achieve this using Alternate Access Mapping: On the Alternate Access Mappings page (Central Administration), click Edit Public URLs. If the mapping collection that you want to modify is not specified, then choose one. In the Alternate Access Mapping Collection section, click Change alternate access mapping collection on the Alternate Access ...



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