摘要:
public static SPFieldUserValue GetUserValue(string name) { SPFieldUserValue userColl = new SPFieldUserValue(); SPSecurity... 阅读全文
摘要:
protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e) { if (e.CommandName == "delete") { ... 阅读全文
摘要:
FileStream fileStrem = new FileStream(templatePath, FileMode.Open); long fileSize = fi... 阅读全文
摘要:
等等using System;using Microsoft.SharePoint;using Microsoft.SharePoint.WebControls;using Microsoft.Office.Interop.Excel;using System.Web;using System.Da... 阅读全文
摘要:
/// /// Excel导入DataTable /// /// 文件名称 /// 是否包含表头 /// Sheet /// 错误信息 /// 导入的Excel的开始行 ... 阅读全文
摘要:
using System;using Microsoft.SharePoint;using Microsoft.SharePoint.WebControls;using Microsoft.Office.Interop.Excel;using System.Data;using System.Web... 阅读全文
摘要:
public static System.Data.DataTable GetDataTable( int parentId, SPList list ,System.Data.DataTable dt, int ceng) { SPQuery query = n... 阅读全文
摘要:
.NET导出Excel遇到的80070005错误的解决方法: 检索 COM 类工厂中 CLSID 为 {00024500-0000-0000-C000-000000000046}的组件时失败,原因是出现以下错误: 80070005基本上.net导出excel文件,都需要如此配置一下,不配置有的时候没... 阅读全文
摘要:
public static void DataTabletoExcel(System.Data.DataTable tmpDataTable, string strFileName) { if (tmpDataTable == null ) ... 阅读全文
摘要:
int n = list.GetItemById(1).Versions.Count;//获取版本的数量 for (int i = n - 1; i >= 0; i--){ if (list.GetItemById(1).Versions[i]["Title"] != null) ... 阅读全文
摘要:
SPSecurity.RunWithElevatedPrivileges(delegate { using (var site = new SPSite(StrUrl)) { #r... 阅读全文
摘要:
using System;using Microsoft.SharePoint;using Microsoft.SharePoint.WebControls;using Microsoft.Office.Interop.Excel;using System.IO;using System.Refle... 阅读全文
摘要:
////// 为DropDownList帮定数据//////需要绑定的控件///列表地址,如:Lists/Type/AllItems.aspx///web网站地址,如http://demo1/,为动态获取publicvoidSelectBindData(DropDownListselect,st... 阅读全文
摘要:
阅读全文
摘要:
protected void OkButton_Click(object sender, EventArgs e) { if (fileUpload.HasFile) { string strLoginName = HttpContext.Current.User.Identity.Name.ToS... 阅读全文
摘要:
SPList typeList = web.Lists["类别" ]; foreach (SPListItem type in typeList.Items) { ... 阅读全文
摘要:
"$" 是在jquery里面定义的。在一次项目中遇见这个错误:“$ is not defined error”.找了半天,网上都说是$没有定义,或者是js没有引入,但是我确实导入了。后来看到一片文章,才发现是js引入的时候顺序错了,给Jquery放在了后面引入,但是我前面已经用到jquery了。如果... 阅读全文
摘要:
1 2 3 4 5 6 7 提醒发送到手机 8 9 10 11 每天提醒... 阅读全文
摘要:
SPSecurity.RunWithElevatedPrivileges(delegate()) 阅读全文
摘要:
1 SPSecurity.RunWithElevatedPrivileges(delegate () 2 { 3 SPWebCollection sPWebCollection =... 阅读全文