原创 SQLServer數據庫的備份與還原
//備份 private void btnBackUp_Click(object sender, System.EventArgs e) { DB db=new DB(); string backupName="SunWebEx
原创 [收藏]三層式開發中的層次劃分
先舉一個曾經在哪本書上看到的例子:現在你想在1米寬的小溪上建一座橋,你會在上面放塊木板就完了。如果想在寬一點的小河上建這橋,你就需要計算木材用料,價格等,如果需要別人幫忙,你還要多一些圖紙什麼的讓別人理解你
原创 加密解密類
using System;using System.IO;using System.Security.Cryptography;using System.Text;namespace MyTest{ ///
原创 [轉載收藏]asp.net中調用javascript函數實現多功能日期控件示例
asp.net中調用javascript函數實現多功能日期控件示例 作者:overred 來源:博客園 今天在網上看到一個功能非常強大的日期控件,但是人家需要money.在以前搞asp的時候曾經用過一個調用js的日期控件,所以就拿到
原创 利用FTPClient類實現文件的上傳下載功能
聲明:FTPClient類代碼可以在我的收藏中找到,這裏就不貼出來了。文中用到了其中的方法我會盡量註明。 FTPClient ftp=new FTPClient(); 一、新建一個FTP服務器。設置IP/端口,並且設置一個根文件夾exam
原创 個別打印
private void btnPrint_Click(object sender, System.EventArgs e) { try { string strCount="select count(xjh) from
原创 sql安裝部署
private const string SQL_NAME="sql.sql"; private string sqlPath = string.Empty;private string serverConn = string.Empty
原创 EXCEL導入導出
/// <summary> /// 導出考生基本信息到Excel文件 /// </summary> private void ExportToExcel() { try { string FileName=this.
原创 數據訪問類SqlClient
using System;using System.ComponentModel;using System.Collections;using System.Diagnostics;using System.Data;using Syst
原创 數據訪問類OleDb
using System;using System.Data;using System.Data.OleDb;using System.Windows.Forms; namespace Sun.WebExam{ /// <summary>