上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: 转自:http://blog.csdn.net/fxh_hua/article/details/4433682 方便自己找1.创建链接<BODY><script language="JavaScript">var o = document.body;//创建链接function createA(url,text){var a = document.createElement("a");a.href = url;a.innerHTML = text;a.style.color = "red";o.appendCh 阅读全文
posted @ 2012-09-11 11:12 Black Bean 阅读(351) 评论(0) 推荐(0) 编辑
摘要: <frameset cols="70%,*" id="body" frameborder="0" border="0"> <frame src="flow_view_chartmodel.aspx" id="MiddleBody" > <frame src="FlowSetRight.aspx" scrolling="no" id="rightBody" > </frames 阅读全文
posted @ 2012-09-10 10:49 Black Bean 阅读(895) 评论(0) 推荐(0) 编辑
摘要: 将你要输出的内容放在asp:panel标签内,StringWriter tw =new StringWriter(); HtmlTextWriter hw =new HtmlTextWriter(tw); this.pan_content.RenderControl(hw); System.Web.HttpResponse response = System.Web.HttpContext.Current.Response; response.Clear(); response.ContentEncoding = System.Text.Encoding.GetEncoding("g 阅读全文
posted @ 2012-09-10 10:44 Black Bean 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://zimmergren.net/technical/sp-2010-find-error-messages-with-a-correlation-id-token-in-sharepoint-2010Correlation ID, what’s that?In SharePoint 2010, you get a Correlation ID (which is a GUID) attached to your logs/error messages when something happens. This ID can then be used to lookup th 阅读全文
posted @ 2012-08-30 15:36 Black Bean 阅读(551) 评论(1) 推荐(0) 编辑
摘要: 备份而已,测试OK。1. 引用jQuery API<script type="text/javascript" src="http://www.cnblogs.com/../js/jquery-1.4.4.min.js"></script>2. 加入样式<style type="text/css"> #preview {float:left; margin:10px auto; text-align:center; width:200px;} .jqzoom {width:200px; height 阅读全文
posted @ 2012-08-18 18:48 Black Bean 阅读(585) 评论(1) 推荐(0) 编辑
摘要: This code writes down MemoryStream to a file:FileStream file =newFileStream("file.bin",FileMode.Create,System.IO.FileAccess.Write);byte[] bytes =newbyte[ms.Length];ms.Read(bytes,0,(int)ms.Length);file.Write(bytes,0, bytes.Length);file.Close();ms.Close();and this reads a file to a MemoryStr 阅读全文
posted @ 2012-08-01 17:33 Black Bean 阅读(15117) 评论(1) 推荐(0) 编辑
摘要: 在SharePoint 2010文档库中,结合单选框,在Ribbon中提供了批量处理文档的功能,比如,批量删除、批量签出、批量签入等,但是,很遗憾,没有提供批量下载,默认的只能一个个下载,当选择多个文档时,下载副本就变成了灰色不可用。在此我们将开发一个Ribbon按钮,实现文档(包括含有文件夹)的批量下载为Zip压缩包的功能。先上传一张项目的资源管理结构现在开始:打开VS2010,创建一个“空白SharePoint项目”命名DeviantPoint.DownloadZip指定用于部署的网站然后添加一个到ICSharpCode.SharpZipLib.dll(一个.NET类库,用于处理Zip文件 阅读全文
posted @ 2012-07-31 15:11 Black Bean 阅读(448) 评论(1) 推荐(0) 编辑
摘要: http://blog.the-dargans.co.uk/2007/04/programmatically-adding-items-to.htmlhttp://asadewa.wordpress.com/2007/11/19/adding-a-custom-content-type-specific-item-on-a-sharepoint-list/Short walk through:Get a instance of the list you want to add the item to.Add a new item to the list:SPListItem newItem = 阅读全文
posted @ 2012-07-24 20:57 Black Bean 阅读(134) 评论(0) 推荐(0) 编辑
摘要: SPContentTypeId id =newSPContentTypeId(BaseContentTypeId);IList<SPContentType>ContentTypes= web.ContentTypes.Cast<SPContentType>().Where(c => c.Id.IsChildOf(id)).ToList();using(SPSite site =newSPSite(SPContext.Current.Site.Url)){ using(SPWeb web = site.OpenWeb()) { SPContentTypeCollec 阅读全文
posted @ 2012-07-24 20:55 Black Bean 阅读(150) 评论(3) 推荐(0) 编辑
摘要: 转自:http://searchdomino.techtarget.com/tip/Hide-code-in-Script-LibraryDo you want protect your work? Create a button in a form, and copy the code below:Note: In the Script Library there are two types of code:1 - not compiled (that I can see, contained in $ScriptLib field)2 - compiled (that I can not 阅读全文
posted @ 2012-06-25 14:36 Black Bean 阅读(209) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 9 下一页