摘要: BaseDAO.cs using System; using System.Collections.Generic; using System.Text; using System.Data; using System.Data.SqlClient; using System.Xml; using Beyondbit.OADoc.Common; namespace Beyondbit.OADo... 阅读全文
posted @ 2009-04-29 15:54 袁晓平 阅读(911) 评论(2) 推荐(0) 编辑
摘要: 我妈:四月二十七 我爸:八月初三 她妈:三月十九 她爸:正月初四 阅读全文
posted @ 2009-04-29 15:41 袁晓平 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 发表时间:2006-4-1 0:11:00 CREATE TRIGGER trInsert ON dbo.Products FOR INSERT AS Update Products Set LastUpdate = GetDate() From Products p Inner Join Inserted i On p.ProductID = i.ProductID Where ... 阅读全文
posted @ 2009-04-29 15:39 袁晓平 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 发表时间:2006-4-2 16:41:00 SELECT TOP 页大小 * FROM TestTable WHERE (ID NOT IN (SELECT TOP 页大小*页数 id FROM 表 ORDER BY id)) ORDER BY ID 阅读全文
posted @ 2009-04-29 15:38 袁晓平 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 发表时间:2006-4-6 18:28:00 function getCurrentFactPageIndex() { var url = window.***.href; var currentPageIndex = 1; if(url.toLowerCase().indexOf('factindex='http://www.blog.com.cn/) != -1) { var te... 阅读全文
posted @ 2009-04-29 15:37 袁晓平 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 发表时间:2006-4-6 18:31:00 function returnFactPage(newIndex) { var pageCount = document.getElementById("FactNameControl_divPageCount").innerHTML; var newPage = "factindex="+newIndex; var pattern = /fac... 阅读全文
posted @ 2009-04-29 15:36 袁晓平 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 发表时间:2006-4-12 22:59:00 protected override void OnPaint(PaintEventArgs e) { base.OnPaint (e); FontFamily fontFamily = new FontFamily("Times New Roman"); Font font = new Font( fontFami... 阅读全文
posted @ 2009-04-29 15:35 袁晓平 阅读(662) 评论(0) 推荐(0) 编辑
摘要: 发表时间:2006-4-12 23:18:00 Class的定义 public class ComboBoxItem { private string _text=null; private object _value=null; public string Text { get{return this._text;} set{this._text=value;} ... 阅读全文
posted @ 2009-04-29 15:34 袁晓平 阅读(630) 评论(0) 推荐(0) 编辑
摘要: 发表时间:2006-4-13 10:16:00 字符 描述 " 将下一个字符标记为一个特殊字符、或一个原义字符、或一个 向后引用、或一个八进制转义符。例如,'n' 匹配字符 "n"。'"n' 匹配一个换行符。序列 '""' 匹配 """ 而 ""(" 则匹配 "("。 ^ ... 阅读全文
posted @ 2009-04-29 15:33 袁晓平 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 发表时间:2006-4-21 14:09:00 static public string IPAddress { get { string userIP; HttpRequest Request = HttpContext.Current.Request; // 如果使用代理,获取真实IP if (Request.S... 阅读全文
posted @ 2009-04-29 15:32 袁晓平 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 发表时间:2007-4-26 11:28:00 System.Configuration.Configuration config = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration("~"); System.Web.Configuration.PagesSection pagesS... 阅读全文
posted @ 2009-04-29 15:29 袁晓平 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 发表时间:2007-4-29 13:58:00 JSON劫持以及ASP.NET AJAX 1.0是如何避免这些攻击的 【原文地址】JSON Hijacking and How ASP.NET AJAX 1.0 Avoids these Attacks 【原文发表日期】 Wednesday, April 04, 2007 11:39 AM 最近,由安全研究人员发表的一些报告描述了一些方法,可以被黑客... 阅读全文
posted @ 2009-04-29 15:28 袁晓平 阅读(450) 评论(1) 推荐(0) 编辑
摘要: 发表时间:2007-5-23 11:41:00 函数调用约定和堆栈 1 什么是堆栈 编译器一般使用堆栈实现函数调用。堆栈是存储器的一个区域,嵌入式环境有时需要程序员自己定义一个数组作为堆栈。Windows为每个线程自动维护一个堆栈,堆栈的大小可以设置。编译器使用堆栈来堆放每个函数的参数、局部变量等信息。 函数调用经常是嵌套的,在同一时刻,堆栈中会有多个函数的信息,每个函数占用一个连续的区域。一个函... 阅读全文
posted @ 2009-04-29 15:26 袁晓平 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 发表时间:2007-6-4 9:03:00 C# 用户经常提出两个问题:“我为什么要另外编写代码来使用内置于 Windows 中的功能?在框架中为什么没有相应的内容可以为我完成这一任务?”当框架小组构建他们的 .NET 部分时,他们评估了为使 .NET 程序员可以使用 Win32 而需要完成的工作,结果发现 Win32 API 集非常庞大。他们没有足够的资源为所有 Win32 API 编写托管接口... 阅读全文
posted @ 2009-04-29 15:23 袁晓平 阅读(216) 评论(1) 推荐(0) 编辑
摘要: 发表时间:2007-6-25 17:31:00 FTP 协议命令实战 废话就不多说了,下面是用TELNET连接Serv-U测试成功的例子 下载文件 --------------------------------------------------------------------------- TELNET 127.0.0.1 21 220 Serv-U FTP Server v4.0 ... 阅读全文
posted @ 2009-04-29 15:22 袁晓平 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 发表时间:2007-6-25 17:37:00 function ReplaceQueryString(url,paramName,newValue) { var preUrl = ''; var paramUrl = ''; if(url.indexOf('?') != -1) { if(url.toLowerCase().indexOf(paramName.toLowerCas... 阅读全文
posted @ 2009-04-29 15:19 袁晓平 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 发表时间:2007-6-28 9:12:00 /// /// 单表分页 /// /// 查询条件 /// 排序字段 /// 是否顺序 /// 每页数据条数 /// 页索引(0开始) /// 总记录条数(传入值小于0时返回) /// p... 阅读全文
posted @ 2009-04-29 15:18 袁晓平 阅读(201) 评论(1) 推荐(0) 编辑
摘要: 发表时间:2007-7-3 14:41:00 WebService方法代码: [WebMethod] public string HelloWorld() { System.Threading.Thread.Sleep(3000); return "Hello World"; } 调用wsdl ****.asmx /o:d:"ServiceA.cs 生成WebService代理类,... 阅读全文
posted @ 2009-04-29 15:17 袁晓平 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 发表时间:2007-7-3 17:01:00 FlatEdit.h ======================================================== #pragma once #include "afxwin.h" class CFlatEdit : public CEdit { public: CFlatEdit(void); public: ~CFlatEd... 阅读全文
posted @ 2009-04-29 15:16 袁晓平 阅读(554) 评论(0) 推荐(0) 编辑
摘要: 发表时间:2007-7-3 17:11:00 XPButton.h =================================================== #if !defined(AFX_XPBUTTON_H__44CD5B2A_756E_4939_9261_E0034E0F2DEF__INCLUDED_) #define AFX_XPBUTTON_H__44CD5B2A_756... 阅读全文
posted @ 2009-04-29 15:15 袁晓平 阅读(1394) 评论(0) 推荐(0) 编辑