sharepoint

visual studio does not copy assembly into gac

和自甴很熟 提交于 2020-01-24 16:05:06
问题 I have a class library and a sharepoint project. I have added a reference to the class library in the sharepoint project and when I click deploy I don't see the class library assembly in the gac. I think this is not normal. can any please let me know how can I solve this issue without resorting to manual deployment? thank you. 回答1: You have to open the package in the package editor, go to Advanced, and add the class library's DLL there. It doesn't happen automatically just from adding an

How to get currently adding item to SPList from SPItemEventProperties inside event handler?

只愿长相守 提交于 2020-01-24 09:37:27
问题 I'm using ItemAdding Event for one of my SPLists. The question is how I can get the new not yet added item from SPItemEventProperties? I've tried to ListItem.Item but the debuger shows that the property is set to Nothing. Any correction suggest? Best Regards T.S. 回答1: Ihe ItemAdding event fires before a recored is actually added so you can't access the fields using .Item. However you can access everything apart from ID (as its still not been created yet) in the .AfterProperties hash table.

How to get currently adding item to SPList from SPItemEventProperties inside event handler?

孤街浪徒 提交于 2020-01-24 09:37:11
问题 I'm using ItemAdding Event for one of my SPLists. The question is how I can get the new not yet added item from SPItemEventProperties? I've tried to ListItem.Item but the debuger shows that the property is set to Nothing. Any correction suggest? Best Regards T.S. 回答1: Ihe ItemAdding event fires before a recored is actually added so you can't access the fields using .Item. However you can access everything apart from ID (as its still not been created yet) in the .AfterProperties hash table.

MOSS/WSS 一步一步从入门到精通(一)---环境搭建(图)

微笑、不失礼 提交于 2020-01-24 08:56:52
这是我 MOSS/WSS 一步一步从入门到精通 的第一篇随笔,对于MOSS、WSS大家都不陌生,我也是刚接触MOSS不久,如果有那位朋友也在学习和使用MOSS 如果能给你的学习带来一点帮助丰富你的学习资料,就是我写作目的和动力。 开始WSS开发先要搭建一个环境,网上也有很多相关的资料。我在这里整理一下,如果大家有部署需要的时候可以打开这篇日志参考一下。 一、准备工作 注:所有软件都可以在微软官方网站获得 硬件:你的电脑最好是有至少2G的内存,CPU的主频在2.2G以上,双核更好 软件:操作系统 Windows Server 2003 sp2 或者 Windows Server 2008 sp1 (推荐) 办公系统 SharePoint Server 2007 sp1(及更新) , 如果是 Windows Server 2008 可能还需要 Exchange Server 2007 Sp1 做邮件服务器 客户端 Office 2007 企业版 SP1 开发工具 VSTS 2008 SP1 和 SharePoint Solution Generator 2008 , Office SharePoint Designer 2007 数据库 SQL Server 2005 sp3 或者 SQL Server 2008 (推荐) 二、操作系统安装(略微介绍) Windows Server

What is eating my cookie?! Cookie does not get transferred in asmx call

萝らか妹 提交于 2020-01-24 05:38:17
问题 I'm having a (browser) cookie issue here. I have a Sharepoint page (http://myServer:24628/sites/myApp/myDocumentLibrary/test.aspx). When the page is requested, I can see in the request headers (using firebug) that there's a ASP.NET_SessionId cookie. Request headers: Host: myServer:24628 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:7.0.1) Gecko/20100101 Firefox/7.0.1 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,

How to locate Sharepoint document library source page on the server?

此生再无相见时 提交于 2020-01-24 05:02:21
问题 I am working with a Sharepoint document library and I'm trying to locate the source of the document library page. I'm working on the Sharepoint server. I just can't find it, where should it be stored? Thank you! 回答1: SharePoint does not store the pages directly in the filesystem. The mechanism is a little less straightforward. To understand this mechanism, You have to understand the concepts of Ghosting/Unghosting, and the ASP.NET Virtual Path Provider. The SharePoint stores the pages in the

Sharepoint Development in Visual Studio 2010

旧巷老猫 提交于 2020-01-24 04:22:08
问题 Is it possible to develop for Sharepoint using Visual Studio 2010 pointing to the Sharepoint installed on a seperate server? When I try to add a sharepoint connection in VS2010 it gives my error that there is no sharepoint server installed on my machine. Do I really have to install it on my machine? Can't I just connect to a sharepoint server for developing application? Cheers. 回答1: Unfortunately, you cannot develop against a remote SharePoint installation. You must have a running SharePoint

excel vba to upload file to sharepoint

别等时光非礼了梦想. 提交于 2020-01-23 12:04:40
问题 I am trying to upload a folder from my C drive to a SharePoint library site. I have used the below code, which works fine when the ToPath is not a SharePoint library site but another folder from my C drive. Where am I going wrong? Sub AddSharePointFiles() Dim FSO As Object Dim FromPath As String Dim ToPath As String ToPath = "https://share.name.com/site/folder/_layouts/15/start.aspx#/LibraryName/Forms/AllItems.aspx" FromPath = "C:\Users\Name\Documents\FolderName" Set FSO = CreateObject(

excel vba to upload file to sharepoint

和自甴很熟 提交于 2020-01-23 12:03:20
问题 I am trying to upload a folder from my C drive to a SharePoint library site. I have used the below code, which works fine when the ToPath is not a SharePoint library site but another folder from my C drive. Where am I going wrong? Sub AddSharePointFiles() Dim FSO As Object Dim FromPath As String Dim ToPath As String ToPath = "https://share.name.com/site/folder/_layouts/15/start.aspx#/LibraryName/Forms/AllItems.aspx" FromPath = "C:\Users\Name\Documents\FolderName" Set FSO = CreateObject(

Get username from SharePoint User field in List

本小妞迷上赌 提交于 2020-01-22 10:05:02
问题 I have a custom sharepoint workflow that I'm developing in Visual Studio. The workflow is running against a document library which has a custom content type connected to it. The content type includes a user lookup field ("owner"). I'm trying to have my workflow assign a task to the "owner" lookup field. However, I've only been able to get the display name for the user, not the account username. Can anyone help? 回答1: Refer to this Article on how to get the User Details from the Field. public