原创 3DES加密算法
using System; using System.Collections.Generic; using System.Text; using System.Security.Cryptography; using System.IO;
原创 DataGridView相關
1獲取datagridview裏選中項的值 方法1:this.dbgrid2.CurrentRow.Cells[2].Value.ToString(); 方法2: this.dbgrid.CurrentRow.Cells[this.dbg
原创 Accordion控件的用法
//添加scriptManager和Accordion控件導入命明空間using AjaxControlToolkit; public void DisplayHotBooks() { List<Models.Cate
原创 sql 中IsNull(,)的使用
ISNULL使用指定的替換值替換 NULL。 語法ISNULL ( check_expression , replacement_value ) 參數check_expression 將被檢查是否爲 NULL的表達式。check_exp
原创 sql截取字符串
create FUNCTION [dbo].[split] ( @SourceSql varchar(8000), @StrSeprate varchar(10) ) returns @temp ta
原创 創建文件夾
string m_path = @"c:/Files"; //設置所要創建文件夾的絕對路徑 DirectoryInfo m_DirInfo = new
原创 窗體傳值
1、父窗口傳值給子窗口 Form1中代碼: private void button1_Click(object sender, EventArgs e) {