1 private static PagedDataSource pds = new PagedDataSource(); 2 protected void Page_Load(object sender, EventArgs e) 3 { 4 if (!Page.IsPostBack) 5 { 6 7 BindData(); 8 } 9 }10 private void BindDat... Read More
posted @ 2012-09-17 12:07 double_ed Views(188) Comments(0) Diggs(0) Edit
1 protected void btnOnLine_Click(object sender, EventArgs e) 2 { 3 try 4 { 5 6 //更新 7 string loginname; 8 loginname = SPContext.Current.Web.CurrentUser.Name; 9 int query... Read More
posted @ 2012-09-17 12:02 double_ed Views(150) Comments(0) Diggs(0) Edit
绑定 1 private static PagedDataSource pds = new PagedDataSource(); 2 3 protected void Page_Load(object sender, EventArgs e) 4 { 5 if (!IsPostBack) 6 { 7 BindData(); 8 } 9 }10 private void BindData()11 {1... Read More
posted @ 2012-09-17 11:55 double_ed Views(176) Comments(0) Diggs(0) Edit
View Code 1 protected void btnsub_Click(object sender, EventArgs e) 2 { 3 try 4 { 5 SPSecurity.RunWithElevatedPrivileges(delegate() 6 //提高权限 7 { 8 SPWeb web = SPContext.Current.Web; 9 ... Read More
posted @ 2012-09-17 11:44 double_ed Views(159) Comments(0) Diggs(0) Edit
使用SharePoint PowerShell 部署WSPUninstall-SPSolution Cbw_SinopecPortal_WebPart.wsp -AllWebApplicationsRemove-SPSolution Bossini.TWCPWF.Addin.wspAdd-SPSolution D:\TWCPWF\Bossini.TWCPWF.Addin.wspInstall-SPSolution -Identity Bossini.TWCPWF.Addin.wsp -GACDeployment -force -AllWebApplicationsInstall-SPSolut Read More
posted @ 2012-09-06 10:48 double_ed Views(137) Comments(0) Diggs(0) Edit
今天需要做个excel导入导出的,小弟先搞个导出的,感觉还蛮不错很方便详细看下文:1、引入org.in2bits.MyXls.dll 这个dll引入后什么问题都简单了前台code<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="导出EXCEL" />后台code protected void Button1_Click(object sender, EventArgs e) { NewsService servic Read More
posted @ 2012-08-01 10:53 double_ed Views(159) Comments(0) Diggs(0) Edit
首先创建一个log4net.config的文件,在文件里面设置如下:View Code <?xml version="1.0" encoding="utf-8"?><configuration> <configSections> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" /> </configSections> <l Read More
posted @ 2012-07-27 11:16 double_ed Views(473) Comments(0) Diggs(0) Edit
1.右击SQL Server 2000实例下的“数据库”文件夹。就是master等数据库上一级的那个图标。选择“所有任务”,“还原数据库”2.在“还原为数据库”中填上你希望恢复的数据库名字。这个名字应该与你的源码中使用的数据库名字一致。3.在弹出的对话框中,选“从设备”4.点击“选择设备”5.点击“添加”6.点击“文件名”文本框右侧的“...”按钮,选中你的“.BAK”文件,并点击确定回到“选择还原设备”对话框。7.点击确定回到“还原数据库”对话框。8.点击“选项”选项卡,勾选“在现有数据库上强制还原”9.将所有“移至物理文件名”下面的路径,改为你想还原后的将数据库文件保存到的路径。如果你不希 Read More
posted @ 2012-07-08 13:56 double_ed Views(173) Comments(0) Diggs(0) Edit