i am now in university(HIT@Weihai). if you have any question or you want to contact me, use this e-mail : xq.1990.weihai@gmail.com. i'd like to make friends with "techincal人s'. sina :skin1" allowScriptAccess="sameDomain" type="application/x-shockwave-flash">.you can talk to me :
1.新建一个c# class library。
2. 添加System.Web的refeerence。
3.添加代码
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI;
namespace HelloWorldWebPart
{
public class MyFirstWebPart : System.Web.UI.WebControls.WebParts.WebPart
{
protected override void Render(HtmlTextWriter writer)
{
writer.Write("Hello World ");
}
}
}
4.修改项目工程属性
在项目属性中添加一个Key.snk。
5.修改AssemblyInfo.cs,添加如下代码:
using System.Security;
[assembly: AllowPartiallyTrustedCallers]
6.重新编译生成dll,将上面的dll拷贝到:C:\inetpub\wwwroot\wss\VirtualDirectories\26864\_a pp_bin,修改web.config,添加下面的代码(使用refactor工具):
7.下面开始将生成的dll部署到sharepoint上。选择Create。
8.然后选择“Web Parts”,选择“New”,然后选中需要添加的web part,点击“populate gallery”。
9.然后再某个页面中,选择“Edit Page”,然后添加对应的web part即可。
发表评论
-
shell中字符串的比较
2012-07-06 09:52 537#!/bin/sh #测试各种字符串比较操作。 #shel ... -
常用工具总结
2012-07-06 09:45 612ildasm:反编译.net程 ... -
用正则表达式找出不包含连续字符串abc的单词(转)
2012-07-06 09:38 982就我自己而言,这个问题最简单的解决方法是使用编程语言的配合 ... -
xloadtree+DWR 生成和维护树结构
2012-07-05 20:45 646利用DWR维护一棵树(如下图),右侧的树是通过xloadt ... -
Android深入探究笔记之一 -- 我的第一个 Android 程序,基于 Intent 的组件交互机制
2012-07-03 13:44 8721. 本文是临时写的 ... -
Flex 实现LineChart曲线――动态加载组件
2012-07-02 12:29 775Height:int = 400 private va ... -
ArcGisServer Flex 地图查询
2012-07-02 12:29 785下面我们通过 Flex和ArcGisServe 实现地图的 ... -
第一个FLEX4程序 Button Label
2012-07-02 12:29 605学习 ActionScript3 已经有一段时间了 今天开 ... -
flex 利用饼图生成内部环状图
2012-07-02 12:29 616height="500" ... -
Ext 4 概述(六)之Grid
2012-07-01 10:06 582这次升级Ext 4全部 ... -
也谈jQuery之学习
2012-07-01 10:06 546由于之前一直是做 ... -
Firefox/Chrome下flash的wmode参数设为opaque或transparent时输入文本框中无法输入中文汉字的解决方法
2012-07-01 10:06 735这段时间做个项目 ... -
深度剖析WinPcap之(十)――数据包的内核过滤(13)
2012-07-01 10:06 663数据包到达网络接 ... -
Flash Builder 4-找不到所需的 Adobe Flash Player
2012-07-01 10:06 536比较懒,比较少上csdn的,如果发现留言给我没有回复,望见 ... -
Flex4 多语言
2012-06-30 16:31 500Flex4 多语言 2011年01月04日 Flex开发 ... -
[转]FLEX推广贴――使用AS project编写游戏/FLASH网站(2011-08-12 16:22:13)
2012-06-30 16:31 540[转]FLEX推广贴――使用AS project编写游戏/FL ... -
使用FLEX 和 Actionscript开发FLASH-9-3-1
2012-06-30 16:31 500使用FLEX 和 Actionscript开发FLASH-9- ... -
转:从“富客户端”(RIA)说到 Flex AIR
2012-06-30 16:31 576转:从“富客户端”(RIA)说到 Flex AIR 2011 ... -
FLEX和Actionscript开发FLASH游戏6
2012-06-30 16:30 443FLEX和Actionscript开发FLASH游戏6 20 ...
相关推荐
在sharepoint环境中制作web part的步骤
内含ppt,视频,文档,示例!!!!!!!
SharePoint中修改密码的WEB Part之终极版:即可以修改AD,又可以修改本机用户密码的Web Part!!
一款SharePoint图片播放器Web部件,可以设置显示图片数目,跳转第一张和最后一张图片,或者显示前/后一张。以及再刷新时是否启用图片变化功能。
SharePoint名言警句Web部件,每天给你不一样的动力
Beginning SharePoint 2010 Development.part2.rar
Beginning SharePoint 2010 Development.part1.rar
Beginning SharePoint 2010 Development.part3.rar
Beginning SharePoint 2010 Development.part4.rar
Real World SharePoint 2010
以缩略图的形式显示SharePoint图片库中图片
SharePoint.Server.2007宝典.part02 目录 第1部分 开始使用SharePoint 第1章 SharePoint产品和技术简介 3 1.1 探索Microsoft Office SharePoint Server 2007 3 1.2 比较Microsoft SharePoint Portal Server 2003和...
Professional SharePoint® 2007 Web Content Management Development pdf电子书
Moss搜索系列文章:在Microsoft Office Sharepoint Server中Web Service系列索引页
在SharePoint页面上显示所有调查,让访问者一目了然。
Sharepoint 中文字段 如何显示到 内容查询Web部件
web part workthrough,sharepoint下的学习资料
Microsoft SharePoint 2010 Web Applications
Beginning SharePoint 2007 Administration-Windows SharePoint Services 3.0 and Microsoft Office SharePoint Server 2007 Introduction Chapter 1 - Introduction to Microsoft SharePoint 2007 Chapter 2...
Beginning SharePoint 2007 Administration-Windows SharePoint Services 3.0 and Microsoft Office SharePoint Server 2007 Introduction Chapter 1 - Introduction to Microsoft SharePoint 2007 Chapter 2...