sharepoint

Returning timer job status from custom timer job

别来无恙 提交于 2019-12-24 11:53:57
问题 There is a timer job status page in Central Admin /_admin/ServiceRunningJobs.aspx How can I properly return the status for my custom timer job ? The Execute() method of timer job returns void . 回答1: It either fails (Exception) or succeeds (Method completes) 回答2: SPJobDefinition.UpdateProgress 来源: https://stackoverflow.com/questions/4666101/returning-timer-job-status-from-custom-timer-job

Hide New / Actions / Upload / Settings menus in SharePoint Lists / document libraries

本秂侑毒 提交于 2019-12-24 11:02:56
问题 How can I hide the New / Actions / Upload / Settings menus within a list or document library in SharePoint? Note that I need to be able to hide these menus for a particular list definition (template) and not just all lists or document libraries. One possible way that I know of is to register a , and set the ControlClass element to a control that inherits from WebControl. In the WebControl, I can override OnPreRender, which then does this: foreach (Control control in this.Parent.Controls) { if

ASP.NET Page Cycle Confusion

时光毁灭记忆、已成空白 提交于 2019-12-24 10:59:19
问题 If I have a button on my ASP.NET page which will take you to another page but that page will do something and then will send user back using Uri uu= Request.UrlReferrer; if (uu!= null) Response.Redirect(uu.ToString()); Now Which page event can I use so that when other pages displays I can display a message box. In short I am running my custom code in a "aspx" page where user is directed on button click, and then after custom code I am sending user back to old page, but it happens so quickly

VBA Delete Sharepoint File - Recycle Bin

为君一笑 提交于 2019-12-24 10:59:11
问题 Is there a way to delete a file from SharePoint using VBA without calling the SharePoint API and still have it go to the recycle bin? The "Kill" statement removes the files but does not send them to the SharePoint recycle bin, so I am hesitant to use it in a macro that others will run. 来源: https://stackoverflow.com/questions/46451726/vba-delete-sharepoint-file-recycle-bin

Sharepoint list and external data source

我是研究僧i 提交于 2019-12-24 10:50:03
问题 I am new to SharePoint and I started reading on the subject. My question is simple : can I populate a SharePoint list with external data or this can only be made in Data Views ? I currently have an XML file from witch data needs to be collected and added to a SharePoint list (every day for example). What are my different possibilities ? 回答1: Yes, you can. http://msdn.microsoft.com/en-us/magazine/ee819133.aspx You need to define an external content type and use an external list that references

Sharepoint 2010 / Jquery - Multiple attributes added in content Editor webpart edit / save

寵の児 提交于 2019-12-24 10:49:59
问题 I’m currently performing a migration of our CMS from MCMS 2002 to SharePoint 2010. One of the MCMS templates allowed the users to add their own CSS and scripts. So that the scripts and styles are not stripped I have had to import their content into a Content Editor Web Part. The following code is an example of what gets imported. <style type="text/css"> ul#oakTabs { margin-left: 0; width: 100%; } ul#oakTabs li { display:inline; border: 1px solid #00CC99; cursor: pointer; background-color:

Giving access to Sharepoint site for people outside organization?

别来无恙 提交于 2019-12-24 10:48:22
问题 I'm creating a site that will have people that work for my company using it( on the domain) and contractors who are not currently on the domain. I'm trying to figure out how to give access to the people who are not on our domain to the Sharepoint site. Can someone point me in the right direction? 回答1: You need to set up a zone with Forms Based Authentication for the people not on the domain. Look at this series on MSDN for guidance: Forms Authentication in SharePoint Products and Technologies

Using an SPMetal entity class

风格不统一 提交于 2019-12-24 10:40:03
问题 I'm executing the code below to get information about a page via LINQ. It works fine, but how do I convert this and using the entity class generated by the SPMetal command? Guid siteGuid = SPContext.Current.Site.ID; using (SPSite site = new SPSite(siteGuid)) { using (SPWeb web = site.OpenWeb()) { SPList lespages = web.Lists["Pages"]; var resultat = from SPListItem page in lespages.Items where page.ContentType.Name.Equals("PageNews") && page.ModerationInformation.Status.Equals

Does Spring support SharePoint

一曲冷凌霜 提交于 2019-12-24 10:36:30
问题 Does Spring support SharePoint? In my Spring Application, i would like to SAVE data in ShaePoint. In another (java) application of ours, we are using CAML to read/update the data in SharePoint. Do you think I should use the same(CAML) or does Spring provides any APIs which makes my job easy. Thank You :) EDIT: Its SharePoint 2003 and WSS 2.0 回答1: Using your Java application you should be able to send XML to the SharePoint webservices. Check this link for the WSS 3.0 web services SDK: WSS 3.0

Replace default search box in SharePoint 2010 with custom one

ぐ巨炮叔叔 提交于 2019-12-24 10:24:37
问题 On every new SharePoint 2010 site you get the default search box (In the MasterPage) that allows you to just do a normal search. I would like to replace this with some item that will allow you to pick Advanced or People Search, something like this......... Is it possible to replace/alter the default search box in the MasterPage? 回答1: The search box is a so called delegate control, so it is not that easy to customize as you would have to overwrite the control with your own to change it. There