自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 AES/DES c加解密收藏

#1楼 得分:0回复于:2009-12-26 15:37:26加密有很多种方法.同时C#也提供了很多加密方法.你需要加密和解密在加密算法上需要使用对称加密.我给你提供一个简单的算法.在保存的时候可以使用二进制的方式来保存到文件. C# code <!--Code highlighting produced by Actipro CodeHighlighter (

2009-12-29 09:08:00 1275

原创 datagridcells(web)位数超长加 省略号的方法

          If System.Text.Encoding.Unicode.GetByteCount(e.Row.Cells(_TEXT + 1).Text) > 60 Then                e.Row.Cells(_TEXT + 1).ToolTip = Server.HtmlDecode(e.Row.Cells(_TEXT + 1).Text)            

2009-12-15 15:29:00 521

原创 工龄计算

 declare @beginDate datetime declare @endDate datetime set @beginDate=2009/12/02 set @endDate=2012/12/01 select  cast(case  when day(@beginDate)       then 0       else -1        end       +datedi

2009-11-10 10:54:00 515

原创 procedure

 set ANSI_NULLS ONset QUOTED_IDENTIFIER ONgo ALTER PROCEDURE [dbo].[INIT_VACATION]as begindeclare @empId varchar(20)declare @OutExprYear datetimedeclare @workDate datetimedeclare @tempworkDate d

2009-11-05 12:24:00 415

原创 httpwebrequest/httpwebresponse

using System;using System.Collections.Generic;using System.Text;using System.Web;using System.Threading;using System.Net;using System.IO; namespace WebRoob{    class Program    {        static voi

2009-10-28 17:06:00 438

原创 1,1,2,3,5,8,13....

using System;using System.Collections.Generic;using System.Text;using System.Collections ;namespace testForDIGUI{    class Program    {               static Hashtable hashvalue=new Hashtable () ;   

2009-08-13 13:45:00 982 1

原创 QUEUE ~

using System;using System.Collections.Generic;using System.Text;namespace consoleQueue{    class Program    {        static void Main(string[] args)        {            Queue pX = new Queue();      

2009-08-13 11:09:00 317

原创 DES 加密

// This sample demonstrates using a key based on the cryptographic service provider (CSP) version// of the Data Encryption Standard (DES)algorithm to encrypt a string to a byte array, and then // to d

2009-08-13 10:27:00 361

原创 socket 异步

using System;using System.Collections.Generic;using System.Text;using System.Threading;using System.Net.Sockets;using System.Net;using System.Configuration;namespace XMLSocket{    public class XmlSo

2009-08-13 09:24:00 660

原创 不对称加解密应用到注册码~C#

using System;using System.Collections.Generic;using System.Text;using System.Security.Cryptography;using System.Management;using Microsoft.Win32;using System.IO;namespace De_Encript{    class Progra

2009-08-13 08:42:00 908

原创 FtpUpDownLoad~

using System;using System.Collections.Generic;using System.Text;using System.Net;using System.IO;using System.Windows.Forms; namespace ConvertData{    class FtpUpDownLoad    {       

2009-08-12 15:25:00 498

原创 backup & restore database~

BACKUP DATABASE demo      TO DISK = c:/demo.bakWITH PASSWORD=A,INITRESTORE FILELISTONLY  FROM DISK = c:/demo.bakWITH PASSWORD=ARESTORE DATABASE TestDB  FROM DISK = c:/demo.bak  WITH  PAS

2009-08-12 15:11:00 438

原创 DBClass~

_Public Class clsDBConn      //REPETITION_KEY ="2627"    //REFERENCE_KEY ="547"    Private m_conn As System.Data.SqlClient.SqlConnection       Private m_da As System.Data.SqlClient.SqlDataAdapter  

2009-08-12 14:40:00 1042

原创 VB单例~

Imports Microsoft.VisualBasicImports System.Runtime.Serialization.FormatterImports System.Resources _Public Class HashPageCode    Private Shared _HashPageCode As New Hashtable    Private Shared _Obj

2009-08-12 14:24:00 489

原创 ValidateFunction~

 Public Shared Function ValidaterSummy(ByVal ctl As ArrayList, ByVal ErrLabel As HtmlImage, ByVal Title As String, ByVal VTyper As Long) As Boolean        Select Case VTyper            Case enumVali

2009-08-12 14:13:00 738 1

原创 CTE~

;WITH TEMP (GROUP_ID,GROUP_NAME,PARENT_GROUP_ID,GROUP_MEMO,VIEW_SORT,TYPE_KBN,CF_NAME)AS (SELECT GROUP_ID,GROUP_NAME,PARENT_GROUP_ID,GROUP_MEMO,VIEW_SORT,TYPE_KBN, CASE WHEN ISNULL(C.CUSTOMER_NAME,)

2009-08-12 14:07:00 449

原创 GridView~~

 Private Enum enumGvCloumns        ORDER_DAY        ORDER_NO        PROGRESS_ID        HtypeLink        USER_NAME        ORDER_END_DAY        PRODUCE_CLASS_NAME        CASE_STATE_NAME        REMARK   

2009-08-01 12:54:00 387

原创 CSS menu

  #navigation {width:182px; padding:0px; margin:0px; text-align:left}#navigation ul {list-style-type:none;margin:0px;padding:0px;}#navigation ul li { padding:0px; margin:0px; /* */}#navigation ul li a

2009-07-16 15:20:00 510

原创 水贴~

using System;using System.Collections.Generic;using System.Text;using System.IO;namespace MakeSql{    class Program    {        static void Main(string[] args)        {            bool boolFlag=true

2009-06-25 17:47:00 645 2

空空如也

空空如也

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

TA关注的人

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