摘要:
SPSecurity.RunWithElevatedPrivileges 可以提升权限 实现模拟管理员身份的功能 ,但是SPContext.Current.Site,SPContext.Current.Web 根据这些方法获得的对象都是以当前登录用户权限运作。SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite spSite... 阅读全文
摘要:
public class Node<T> { public T Data { get; set; } public Node<T> Next { get; set; } public void Append(Node<T> node) { if (this.Next == null) { this.Next = node; } else { Next.Appen... 阅读全文
摘要:
原因:所要获取的资源不能简单的包含在项目内 , 属性 ---->生成操作--->嵌入资源! 阅读全文
摘要:
sql日期函数 1.一个月第一天的 Select DATEADD(mm, DATEDIFF(mm,0,getdate()), 0) 2.本周的星期一 Select DATEADD(wk, DATEDIFF(wk,0,getdate()), 0) 3.一年的第一天 Select DATEADD(yy, DATEDIFF(yy,0,getdate()), 0) 4.季... 阅读全文
摘要:
在DLL中获取服务器路径 用这个:AppDomain.CurrentDomain.SetupInformation.ApplicationBase 阅读全文
摘要:
原来的连接 server=.;database=test;uid=sa;pwd=sa; 解决方案 "Data Source=数据库地址;Initial Catalog=数据库名;User ID=用户名;Password=密码"; 不知道原因,谁知道告诉我!谢谢! 阅读全文
摘要:
^(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[... 阅读全文
摘要:
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [dbo].[DelDataTable] AS BEGIN DECLARE @tablename VARCHAR(80) DECLARE @cSql VARCHAR(8000) SET @cSql = '' DECLARE cur_authors cur... 阅读全文
摘要:
/* Prototype JavaScript framework, version 1.4.0 * (c) 2005 Sam Stephenson * * Prototype is freely distributable under the terms of an MIT-style license. * For details, see the Prototype web ... 阅读全文