<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/lenlenya</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; lenlenya]]></copyright><item><title><![CDATA[在MVC3中抛出错误页--HttpException]]></title><link>https://blog.youkuaiyun.com/lenlenya/article/details/8910592</link><guid>https://blog.youkuaiyun.com/lenlenya/article/details/8910592</guid><author>lenlenya</author><pubDate>Fri, 10 May 2013 14:42:56 +0800</pubDate><description><![CDATA[最近在用MVC实现一些权限管理方面的东西，大概思路是继承AuthorizeAttribute写了一个子类UserAuthorizeAttribute，在需要验证的Action或controller中引用该Attribute。重写了三个方法，依执行顺序分别是OnAuthorization -> AuthorizeCore -> HandleUnauthorizedRequest。



在O]]></description><category></category></item><item><title><![CDATA[屏保延迟启用密码保护]]></title><link>https://blog.youkuaiyun.com/lenlenya/article/details/8162111</link><guid>https://blog.youkuaiyun.com/lenlenya/article/details/8162111</guid><author>lenlenya</author><pubDate>Thu, 08 Nov 2012 14:42:35 +0800</pubDate><description><![CDATA[我们设置屏保为了保护屏幕，在一段时间后系统能启用密码保护程序，以保证离开后电脑数据安全。
可是怎么设置屏保后，延迟多少时间再启用密码保护呢？通俗举例说，我想10分钟后启用屏保，15分钟后启用密码保护，该怎么设置？
参考以下微软的方案：
分析
设置屏幕保护程序锁定计算机的时间和建立密码保护的时间之间的延迟。

解决方案



单击开始，单击运行，键入regedt32，然后单击确定]]></description><category></category></item><item><title><![CDATA[C#获取域名[/虚拟目录] 及物理目录]]></title><link>https://blog.youkuaiyun.com/lenlenya/article/details/7947496</link><guid>https://blog.youkuaiyun.com/lenlenya/article/details/7947496</guid><author>lenlenya</author><pubDate>Wed, 05 Sep 2012 17:28:34 +0800</pubDate><description><![CDATA[using System;
using System.Web;

namespace RTXEX.Common
{
    /// 
    /// 全局类，获取当前域名、物理路径
    /// 
    public class WebApplication
    {
        static string _appUrl = null;
        static string _a]]></description><category></category></item><item><title><![CDATA[ASP.NET正则实现表情替换为图片，如[hanx]替换为<img src="img/hanx.gif"/>]]></title><link>https://blog.youkuaiyun.com/lenlenya/article/details/7942268</link><guid>https://blog.youkuaiyun.com/lenlenya/article/details/7942268</guid><author>lenlenya</author><pubDate>Tue, 04 Sep 2012 15:16:49 +0800</pubDate><description><![CDATA[string pattern = @"\[/(\w+)\]";
string result = System.Text.RegularExpressions.Regex.Replace("owjfdsl聊天消息，表情[hanx]j1111lsjfs", pattern, "");
result 就是转换后的字符串。
另，附一个别处找来的，关键字正则替换的扩展方法：
public static]]></description><category></category></item><item><title><![CDATA[“添加UFT-8文件头并转换成ANSI编码”，无需添加BOM照样转换]]></title><link>https://blog.youkuaiyun.com/lenlenya/article/details/7931853</link><guid>https://blog.youkuaiyun.com/lenlenya/article/details/7931853</guid><author>lenlenya</author><pubDate>Sat, 01 Sep 2012 12:09:14 +0800</pubDate><description><![CDATA[set fso = CreateObject("Scripting.FileSystemObject")

'Files属性获取文件集合时，与CMD下的for遍历文件有相同的Bug：
'如果文件名有变动，可能会重复或多次遍历
'看来是某个API的Bug
'所以先获取文件列表再使用保险一点

FileList = ""
for each oFile in fso.GetFolder(".").Fil]]></description><category></category></item><item><title><![CDATA[在MsSQLServer2000上通过调用OLE创建二维条码]]></title><link>https://blog.youkuaiyun.com/lenlenya/article/details/7542417</link><guid>https://blog.youkuaiyun.com/lenlenya/article/details/7542417</guid><author>lenlenya</author><pubDate>Mon, 07 May 2012 14:57:52 +0800</pubDate><description><![CDATA[在运行MSSQLServer的服务上注册组件，"regsvr32  "........\QRBarcode.ocx""。

函数fn_CreateQRImage：

-- =================================================================
-- 根据字符串产生QR图片,保存到指定的路径中.
-- 返回值: 成功返回图片保存所有]]></description><category></category></item><item><title><![CDATA[Web三层开发中,dal类库如何得到当前网站运行的物理路径?]]></title><link>https://blog.youkuaiyun.com/lenlenya/article/details/7095340</link><guid>https://blog.youkuaiyun.com/lenlenya/article/details/7095340</guid><author>lenlenya</author><pubDate>Thu, 22 Dec 2011 14:40:46 +0800</pubDate><description><![CDATA[dal层主要是处理数据访问之类的操作,那么如何获取网站运行时根目录的物理路径呢?
//string xmlPath=@""D:\aa\bb\test.xml"

string xmlPath=AppDomain.CurrentDomain.BaseDirectory+"test.xml"



相看AppDomain 类.]]></description><category></category></item><item><title><![CDATA[Repeater 绑定List<string>]]></title><link>https://blog.youkuaiyun.com/lenlenya/article/details/7077857</link><guid>https://blog.youkuaiyun.com/lenlenya/article/details/7077857</guid><author>lenlenya</author><pubDate>Fri, 16 Dec 2011 16:01:50 +0800</pubDate><description><![CDATA[当Repeater的数据源为List类型时, 前台如何写代码呢?
在你想输出的地方写上:即可.]]></description><category></category></item><item><title><![CDATA[限制文本框中只能输入数字(+,-)的正则表达式写法]]></title><link>https://blog.youkuaiyun.com/lenlenya/article/details/7048566</link><guid>https://blog.youkuaiyun.com/lenlenya/article/details/7048566</guid><author>lenlenya</author><pubDate>Wed, 07 Dec 2011 09:40:11 +0800</pubDate><description><![CDATA[最近由于项目要求，要限制文本框中只能输入数字，在网上翻查了许多资料，但符合项目实际要求的比较少。
据分析总结得以下代码，经测试在IE6.0+，ff，chrome下有效：


$("input.number").live("keyup paste blur", function() {
    //1.该方法不能识别"+""-"，并管制多个小数点的输入。
    //this.value =]]></description><category></category></item><item><title><![CDATA[window.showModalDialog模态窗返回数据]]></title><link>https://blog.youkuaiyun.com/lenlenya/article/details/7010645</link><guid>https://blog.youkuaiyun.com/lenlenya/article/details/7010645</guid><author>lenlenya</author><pubDate>Fri, 25 Nov 2011 09:40:19 +0800</pubDate><description><![CDATA[var jsonData = {};
        jsonData.name = name;
        jsonData.sex = sex;
        jsonData.age = age;
        jsonData.height = height;
        jsonData.weight = weight;
        //alert(jsonData);]]></description><category></category></item><item><title><![CDATA[.net控制数据库事务:COM+事务]]></title><link>https://blog.youkuaiyun.com/lenlenya/article/details/7000105</link><guid>https://blog.youkuaiyun.com/lenlenya/article/details/7000105</guid><author>lenlenya</author><pubDate>Tue, 22 Nov 2011 13:48:17 +0800</pubDate><description><![CDATA[在分布式应用程序中，往往要同时操作多个数据库，使用数据库事务就不能满足业务的要求了。在COM+中，提供完整的事务处理服务。很方便处理多个数据库上的事务。
Demo:
COM+事务
///   
/// COM+事务  
///   
public void ComTran()  
{  
    SqlConnection conn = new SqlConnection("Data Sou]]></description><category></category></item><item><title><![CDATA[Keycode对照表]]></title><link>https://blog.youkuaiyun.com/lenlenya/article/details/6975648</link><guid>https://blog.youkuaiyun.com/lenlenya/article/details/6975648</guid><author>lenlenya</author><pubDate>Wed, 16 Nov 2011 09:34:28 +0800</pubDate><description><![CDATA[]]></description><category></category></item><item><title><![CDATA[让批处理文件(.bat)程序无窗口(隐藏/静默)运行]]></title><link>https://blog.youkuaiyun.com/lenlenya/article/details/6861243</link><guid>https://blog.youkuaiyun.com/lenlenya/article/details/6861243</guid><author>lenlenya</author><pubDate>Tue, 11 Oct 2011 08:26:41 +0800</pubDate><description><![CDATA[将下面的代码保存为.vbs 文件，把 test.bat 改成你的批处理文件，然后运行.vbs 文件
--------------------------------------------------------------
set GuWS=WScript.CreateOb]]></description><category></category></item><item><title><![CDATA[JavaScript获取页面宽度高度大全]]></title><link>https://blog.youkuaiyun.com/lenlenya/article/details/6782291</link><guid>https://blog.youkuaiyun.com/lenlenya/article/details/6782291</guid><author>lenlenya</author><pubDate>Fri, 16 Sep 2011 15:43:09 +0800</pubDate><description><![CDATA[网页可见区域宽：document.body.clientWidth
网页可见区域高：document.body.clientHeight
网页可见区域宽：document.body.offsetWidth(包括边线的宽)
网页可见区域高：document.body.offs]]></description><category></category></item><item><title><![CDATA[MSSQLServer 2008 作业失败 通过EMAIL通知]]></title><link>https://blog.youkuaiyun.com/lenlenya/article/details/6781671</link><guid>https://blog.youkuaiyun.com/lenlenya/article/details/6781671</guid><author>lenlenya</author><pubDate>Fri, 16 Sep 2011 13:18:03 +0800</pubDate><description><![CDATA[步骤如下：
1、在“管理”——》“数据库邮件” 中创建smtp服务器的邮件，相当于邮件客户端设置。如，邮件为12345@sina.com，服务器smtp.sina.com
2、启动“sqlserver代理”，在操作员中新建操作员，如dba，并提供邮件地址，如：888@sina]]></description><category></category></item><item><title><![CDATA[临时切换鼠标左右键]]></title><link>https://blog.youkuaiyun.com/lenlenya/article/details/6713610</link><guid>https://blog.youkuaiyun.com/lenlenya/article/details/6713610</guid><author>lenlenya</author><pubDate>Wed, 24 Aug 2011 08:41:41 +0800</pubDate><description><![CDATA[C#版:

using System;
using System.Collections.Generic;
using System.Text;

namespace swapMouseButton2
{
    class Program
    {
        pri]]></description><category></category></item><item><title><![CDATA[将ListView中的内容以Excel导出]]></title><link>https://blog.youkuaiyun.com/lenlenya/article/details/6709028</link><guid>https://blog.youkuaiyun.com/lenlenya/article/details/6709028</guid><author>lenlenya</author><pubDate>Mon, 22 Aug 2011 16:27:07 +0800</pubDate><description><![CDATA[HTML:

     
        
            
                
                    ' />]]></description><category></category></item><item><title><![CDATA[String.Format,DateTime日期时间格式化集锦，备忘录]]></title><link>https://blog.youkuaiyun.com/lenlenya/article/details/6689001</link><guid>https://blog.youkuaiyun.com/lenlenya/article/details/6689001</guid><author>lenlenya</author><pubDate>Mon, 15 Aug 2011 16:51:44 +0800</pubDate><description><![CDATA[//String.Format,DateTime日期时间格式化集锦，备忘录
DateTime dt = DateTime.Now;//2010年10月4日 17点05分
string str = "";
//str = string.Format("{0:y yy yyy yyy]]></description><category></category></item><item><title><![CDATA[通用分页存储过程]]></title><link>https://blog.youkuaiyun.com/lenlenya/article/details/6637703</link><guid>https://blog.youkuaiyun.com/lenlenya/article/details/6637703</guid><author>lenlenya</author><pubDate>Wed, 27 Jul 2011 14:28:05 +0800</pubDate><description><![CDATA[GO
-- =============================================
-- Author:		lenya
-- Create date: 2011/7/1
-- Description:	通用分页存储过程
-- =================]]></description><category></category></item><item><title><![CDATA[字符串分组聚合]]></title><link>https://blog.youkuaiyun.com/lenlenya/article/details/6563698</link><guid>https://blog.youkuaiyun.com/lenlenya/article/details/6563698</guid><author>lenlenya</author><pubDate>Thu, 23 Jun 2011 15:59:00 +0800</pubDate><description><![CDATA[with t  as( select Charles parent, William child union select Charles, Harry union select Anne, Peter union select Anne, Zara union select Andrew, Beatrice union select]]></description><category></category></item></channel></rss>