自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(37)
  • 收藏
  • 关注

原创 ASP.net构建大型网站

                                           ASP.net构建大型网站         记得很多朋友问过我如何构建一个大型的.net网站.这里值得讨论的问题是----多大 ,公司曾经需要我给他们做一个每天有1000万人次访问的门户网站.而我却一直都没有开始动手做...原因很简单,,做一个这样的网站,经费少于300万是不够的.因此需求分析和启动资金成为了

2008-02-02 18:34:00 3898 2

原创 C# DES TCP加密

using System;using System.Text;using System.Windows.Forms;using System.Security.Cryptography;using System.IO;namespace WindowsFormsApplication1{ public partial class Form1 : For

2012-02-18 10:31:38 660

原创 reportserver自己写查询控制件赋参数

protected void btn_Search_Click(object sender, ImageClickEventArgs e) { ReportViewer1.ServerReport.ReportPath = "/Report/XLGLTJ"; string strDT1 = (dt_work1.Text.Trim() != ""

2009-07-01 09:22:00 1460

原创 结合日历控件使用的强制输入时分秒的js

%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>html xmlns="http://www.w3.org/1999/xhtml" >head runat="server">    title

2008-12-23 15:56:00 1638 3

原创 我目前写过的最变态存储过程

set ANSI_NULLS ONset QUOTED_IDENTIFIER ONgo CREATE  PROCEDURE [dbo].[P_EveryMeterSTAT](@startIndex int,@endIndex int,@datetimes nvarchar(4))ASDECLARE @Months int,@Qcum int,@User_Name nvarchar(64),

2008-12-10 19:19:00 1947 7

原创 GDI+随便画画

 Bitmap bt = new Bitmap(820, 240);            Graphics g = Graphics.FromImage(bt);            Pen bluepen = new Pen(Color.Red, 1);            MemoryStream tempStream = new MemoryStream();            i

2008-11-11 15:16:00 1679

原创 C#任意上传下载byte到MSSQL

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data.SqlClient;using System.Data;namespace ConsoleApplication1{    class Program 

2008-10-23 18:06:00 1871

原创 不错的几个js

 a.html html xmlns="http://www.w3.org/1999/xhtml" >head>    title>无标题页title>script type="text/javascript"> function openstr() { window.open("b.html","","modal=yes,width=500,height=

2008-10-16 16:49:00 613

原创 ADOTestMSSQL

// ADOTest.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" using namespace std;int _tmain(int argc, _TCHAR* argv[]){    ::CoInitialize(NULL);                                           

2008-10-15 09:42:00 564

原创 MSSQL缓存方法

1.缓存依赖System.Web.Caching.SqlCacheDependencyAdmin.EnableTableForNotifications(System.Configuration.ConfigurationManager.ConnectionStrings["SQLConnString1"].ConnectionString, "T_USER");         

2008-10-07 16:07:00 2104

原创 C++,map和pair用法

#include "stdafx.h"using namespace std;int _tmain(int argc, _TCHAR* argv[]){ pair p[3]; p[0].first = "a"; p[0].second = 1; p[1].first = "b"; p[1].second = 2; p[2].first = "c"; p[

2008-07-25 14:48:00 7438

原创 DirectShow几篇不错的文章

http://blog.csdn.net/zhaoyawei/archive/2006/07/01/861076.aspxhttp://www.vckbase.com/document/viewdoc/?id=976http://www.microsoft.com/china/MSDN/library/Graphics/Graphics/grgrabbersample.mspx?mfr=tru

2008-07-16 14:53:00 583

原创 是谁愚弄了我的C#?

事因是这样的,前段时间想测量一下C#的效率,然后写了两段代码,我以前的Blog也贴过,这里再贴一次: //C++:void sort(int *a, int length){ for (int i = 1; i < length; i++) { int t = a[i]; int j = i;

2008-07-02 09:19:00 1534

原创 C#性能测试

看到很多新手对C#的执行效率抱有疑问.不禁自己亲手测试了一下.使用插入排序的办法对堆栈中的变量进行排序.考虑到泛型和摸版的效率差别不大.这里就暂时只考虑堆栈中变量的效率测试(我想高手会对我有点意见,但是就算是泛型的效率也应该很高吧).测试机器:P4 2.8GHz, RAM 768MB, windows xp professional sp2// C#class Program

2008-06-11 16:50:00 3645 1

原创 使用params传递多参数

public void ShoInfo(params object[] list) { string strinf = string.Empty; for (int i = 0; i < list.Length; i++) { strinf += lis

2008-06-10 22:09:00 1767

原创 C#实现所有经典排序算法

//选择排序 class SelectionSorter { private int min; public void Sort(int[] arr) { for (int i = 0; i < arr.Length - 1; ++i) {

2008-06-10 21:47:00 633

原创 Unsafe数组操作

using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{    class Test1    {        public unsafe void Test()        {            Int32[] a = 

2008-05-22 14:50:00 576

原创 Regex.Split和CheckBoxList1备忘

 using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;u

2008-04-15 17:26:00 568

原创 ref和out的用法

不说别的了,直接上原代码:(网上发现的) function killErrors() {return true;}window.onerror = killErrors;// -->TABLE { FONT-SIZE: 12px; CURSOR: hand; COLOR: #FFFFFF}TD { TEXT-ALIGN: center}.clicked { BORDER-RIGHT: #c

2008-03-28 09:20:00 900

原创 WinPE

 很酷的东西,微软的基本.

2008-03-24 23:34:00 475

原创 强命名程序集的概念

给你的程序集签名的过程,首先ildasm.exe打开一个dll或exe之类的程序集,然后保存为a.il文件,查看一下是否被签名,如果被签名就不能修改a.il因为修改了的il文件不能通过编译.需要的工具清单ildasm.exe,ilasm.exe,sn.exe,gacutil.exe

2008-03-20 16:50:00 716

原创 C#中TCP异步与应用层协议的开发.

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Net;using System.Net.Socket

2008-03-19 17:32:00 1498 2

原创 windowform多线程学习(委托安全线程)

 using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Thread

2008-03-18 14:37:00 719

原创 关于C#异步调用的2篇文章

 http://www.cnblogs.com/aierong/archive/2005/05/25/162181.htmlhttp://aierong.cnblogs.com/archive/2005/05/25/162308.html

2008-03-17 16:11:00 441

原创 C#事件学习

using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1...{    class Test1    ...{        public delegate void TitleChangeHendler();        pu

2008-03-07 09:05:00 538

原创 月薪5万,微软中国研究院最新面试题.

 月薪5万,微软中国研究院最新面试题. --------------------------------------------------------------------------------------- 小明和小强都是张老师的学生,张老师的生日是M月N日, 2人都知道张老师的生日是下列10组中的一天, 张老师把M值告诉了小明,把N值告诉了小强, 张老师问他们知道他的生日是那一天吗? 3

2008-02-28 17:17:00 820 1

原创 .net多线程入门

 首先我们引入using System.Threading; 然后我们编写一个方法:public static void SimpleWorkerThread()        ...{            for (int i = 0; ; i++)            ...{                try                ...{          

2008-02-21 10:24:00 647

原创 朋友们的生日...

李亮10-11小倩 7-06 http://www.lyclub.info/register.php?fromuid=2719975 

2007-08-22 10:45:00 718

原创 flash加密

第一种:在第一帧中加入如下代码: fscommand ("allowscale", "0"); url = "http://www.fllashbank.cn"; if (_url.substring(0, 22)gotoAndPlay (2); } else { gotoAndPlay (3); } actions for frame 2 stop (); actions for frame 3

2007-08-18 17:29:00 628

原创 ASP自动分页代码

%@LANGUAGE="VBSCRIPT"%>If Session("MM_Username")="" Thenresponse.redirect "index.asp"end if%>恒盛代练系统.unnamed1 { border: thin groove #666666;}body,td,th { font-size: 12px;}.STYLE1 {color: #FF0000}-->   

2007-05-11 10:18:00 2207

原创 好猛的一招

注册表中改法: 开始>>运行,输入regedit进入注册表,然后左侧进入到: HKEY_CURRENT_USER/SOFTWARE/MICROSOFT/WINDOWS/CURRENT VERSION/POLICIES/EXPLORER中 把RESTRICTRUN改为1,重启电脑,如果要解禁的话,改为0就可以了 

2007-05-02 14:57:00 714 1

原创 如何禁用注册表

 所以注册表不能够取消加载,只能禁用注册表,在注册表中: [HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Policies/System] 新建DWORD键值 "DisableRegistryTools"=dword:00000001 值改为1 如果想解开,可以利用超级兔子或者优化大师,比较方便

2007-05-02 14:35:00 957 1

原创 如何破解windows网页密码

1.打开“开始”菜单,单击“运行”,在运行框中输入regedit命令(这是打开注册表编辑表的命令)。  2.在注册表编辑器中有五个主要的键值,请您按照下面顺序一步一步打开下面的文件(在所指的文件夹上双击或单击在文件夹前面的十字符号)。  3.具体顺序是:  HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/CurrentVersion/Poli

2007-05-02 13:54:00 1928 1

原创 请教,在.net中,COM到底还有什么用?

1楼你在.net开发中会用到很多COM组件     sqldmo,owc11,excel和word的相关操作等,         我最初知道MFC大概是在1993年,那个时候Visual   C++还没面世,当时Microsoft的C++编译器还很弱,官方的名字是Microsoft   C/C++   7.0,MFC的版本是1.0,几乎没有引起什么反响,那个时期最好的C++开发环境是Bor

2007-04-08 16:27:00 1498 1

原创 算法

国际象棋有8行8列其中 两个皇后不能同时出现在同一行、同一列或者同一对角线上求 在棋盘上同时放置8个皇后的方法有多少种  

2007-04-06 15:48:00 568 4

原创 Request.QueryString

这是DREAMWEAVER自动生成的代码:     var   MM_editAction   =   Request.ServerVariables("SCRIPT_NAME");     if   (Request.QueryString)   {         MM_editAction   +=   "?"   +   Server.HTMLEncode(Request.QueryStr

2007-04-05 16:38:00 1185

原创 关于溢出漏洞的真实例子(原创)

下面是一个小妖投票系统3.30中的一个漏洞:当href到action=viewcolligate时执行下面的代码: case "viewcolligate"查看综合投票结果id=request.querystring("id")if not isnumeric(id) thenresponse.write "alert(操作提示:对不起,没有找到您要查看的信息!);history

2007-03-31 16:12:00 787

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除