在哪里为 Office365 Sharepoint 站点编写 C# 代码

发布于 2024-11-18 14:52:19 字数 325 浏览 1 评论 0原文

我已注册 Office 365 提供sharepoint站点,

我可以编辑站点的html内容。(使用Microsoft SharePoint Designer 2010和Web界面)

问题1.如何编辑站点网页的C#/VB代码?
问题 2. 我创建了一些 asp.net 页面并想将它们上传到我的网站,如何使用 FTP 进行共享点网站?
问题 3. 如何从共享点站点的数据库访问数据?

PS:我有vs2010但无法打开office365网站, 我还尝试了 Microsoft SharePoint Designer 2010,但它不显示 C#/VB.NET 代码背后的代码

I have signed up for office 365
which provides sharepoint site,

I am able to edit the html content of the site.(using Microsoft SharePoint Designer 2010 and Web interface)

Question 1. How to edit the C#/VB code of the site web pages?
Question 2. I have created some asp.net pages and want to upload them to my site, How to use FTP for sharepoint site?
Question 3. How to access data from database for a sharepoint site?

P.S: I have vs2010 but cant open the office365 site ,
also I tried Microsoft SharePoint Designer 2010 but it doesn't display the code behind C#/VB.NET code

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

长梦不多时 2024-11-25 14:52:19

您不能只是在 Office 365 上四处探索并做您想做的事 - 他们不允许您这样做,因为您可能会给服务器的其余部分带来问题。

相反,您必须考虑将您的功能实现为“沙盒解决方案”。

托管 SharePoint 安装中沙箱的想法是,如果您的 Web 部件做了一些愚蠢的事情,它会限制您对网站其余部分造成的损害(有意或无意)。

MSDN - 沙盒解决方案

警告 - 来自您的问题(例如将 .asxp 上传到通过 FTP 的 SharePoint)很明显,您对 SharePoint 非常陌生,因此您将处于非常陡峭的学习曲线 - 首先学习有关 SharePoint 的基础知识,然后再学习 365 和沙箱解决方案。

You can't just go poking around and do what you want on Office 365 - they don't let you because you can cause problems for the rest of the server.

Instead you have to look at implementing your features as "Sandbox Solutions".

The idea of the sandbox in hosted SharePoint installations is that it restricts the amount of damage (intentional or otherwise) you can do the the rest of the site if your web part does something silly.

MSDN - Sandboxed Solutions

Warning - from your question (e.g. upload .asxp to SharePoint via FTP) its clear that you are very new to SharePoint so you're going to be on a very steep learning curve - start with learning the basics about SharePoint before going onto 365 and sandbox solutions.

隔纱相望 2024-11-25 14:52:19

刚刚为客户开发了一个应用程序。我们所做的是使用 VMWare 工作站软件设置虚拟环境,其中我们使用以下设置:

Microsoft windows 2008 64 位
对比2010年
Share Point 2010

现在在开发应用程序时,如果您想要设置可视 Web 部件,通常的可视 Web 部件将无法工作,您必须获得可视 Web 部件的扩展(沙盒)。此扩展未包含在 Visual Studio 中,可为您提供创建沙盒视觉 Web 部件的选项。您可以从此处下载:

http://visualstudiogallery.msdn.microsoft.com/8e602a8c-6714-4549-9e95-f3700344b0d9/

创建 Web 部件后,使用 wsp 在 Office 365 平台上设置解决方案。

您将必须使用本地站点来开发并检查功能是否正常工作。

Office 365 中可以使用的数据库是 SharePoint,仅列出了其他数据库。

Just developed an application for the client. What we did was to setup a virtual environment using VMWare workstation software where we used the following setup:

Microsoft windows 2008 64 bit
VS 2010
Share Point 2010

now while developing applications if you want to setup visual web parts usual visual web parts would not work you have to get an extension for visual web parts(Sandboxed). This extension, not included in visual studio, would give you an option of creating a sandboxed visual web part. You can download it form here:

http://visualstudiogallery.msdn.microsoft.com/8e602a8c-6714-4549-9e95-f3700344b0d9/

After you create the webpart use the wsp to setup solution on office 365 platform.

You will have to use a local site to develop and check if the functionality is working.

The database that can be used in office 365 is the SharePoint lists nothing else.

苍白女子 2024-11-25 14:52:19

Cory Roth 对打包代码并将其部署到 Office365 SharePoint 沙箱所需的步骤进行了很好的概述:

Office 365 如何:使用 SharePoint Online 构建和部署 Web 部件

一般来说,您需要部署打包的您可以安装和运行的功能 - SharePoint 并不热衷于随机编辑 .cs/.vb 文件 - 您需要为其提供已编译的 DLL。


编辑添加

遗憾的是,您需要 64 位操作系统才能在 Windows7 上“运行”SharePoint 2010:

在 Windows Vista、Windows 7 和 Windows 上设置 SharePoint 2010 的开发环境Windows Server 2008

是的,出于开发和测试目的,您确实应该拥有 SharePoint 的本地副本 - 特别是在部署到并非所有内容都可用的沙盒环境时。

Cory Roth has quite a good overview of the steps required to package your code and deploy it to the Office365 SharePoint sandbox:

Office 365 How to: Build and Deploy a Web Part with SharePoint Online

In general, you'll need to be deploying packaged features that you can install and run - SharePoint's not really that keen on random editing of .cs/.vb files - you'll need to supply it with a compiled DLL.


Edit to add

Sadly yes, you need a 64bit operating system to "run" SharePoint 2010 on Windows7:

Setting Up the Development Environment for SharePoint 2010 on Windows Vista, Windows 7, and Windows Server 2008

And yes, for development and testing purposes you should indeed have a Local copy of SharePoint - especially when deploying to a Sandbox environment where not everything is available.

北凤男飞 2024-11-25 14:52:19

是的,您需要本地 SharePoint 安装才能开始针对 SharePoint / SharePoint Online 进行开发。要深入了解 SharePoint 开发,您可以使用 cloudshare.com 的 14 天免费试用版。 Cloudshare 提供云托管的 SharePoint 开发人员计算机。

SharePoint Online 开发与 SharePoint OnPremise 开发非常相似。有一些限制。您应该查看 SharePoint 2010 中的沙盒解决方案。channel9 上有多个针对 SharePoint 开发的视频培训。

Paul Stubbs 还发布了 Easy SharePoint 设置脚本 http://blogs.msdn.com/b/pstubbs/archive/2010/10/27/sharepoint-2010-easy-setup-script.aspx
使用此脚本自动设置您的 SharePoint 开发框。还有一篇很棒的 MSDN 文章描述了设置过程和要求 http://msdn .microsoft.com/en-us/library/ee554869.aspx

托尔斯滕

yes you need a local SharePoint installation to start developing for SharePoint / SharePoint Online. To dig into SharePoint development you could use the 14 day free trail from cloudshare.com. Cloudshare is offering cloud hosted SharePoint developer machines.

SharePoint Online development is very similar to SharePoint OnPremise development. There are some limitations. You should have a look at Sandboxed Solutions in SharePoint 2010. There are several video trainings available on channel9 targeting SharePoint development.

Paul Stubbs also published the Easy SharePoint Setup script http://blogs.msdn.com/b/pstubbs/archive/2010/10/27/sharepoint-2010-easy-setup-script.aspx.
Use this script to automatically setup you SharePoint development box. There is also this great MSDN article describing the setup process and the requirements http://msdn.microsoft.com/en-us/library/ee554869.aspx.

Thorsten

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文