原创 創建datatable僞數據
static DataTable CreateSampleProductData() { DataTable tbl = new DataTable("Products"); tbl.Column
原创 訪問系統對象的 SQL 定義
若要訪問系統對象的 SQL 定義,請使用 OBJECT_DEFINITION 函數:例如 print OBJECT_DEFINITION(OBJECT_ID('sys.objects')); GO 就可打印關於'sys.objects'
原创 Common下MessageBox.cs
using System;using System.Text;namespace Common{ /// <summary> /// 顯示消息提示對話框。 /// </summary> public class MessageBox {
原创 DBUtility下AccessHelper.cs
using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.U
原创 Common下JsonHelper.cs
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.Collec
原创 ie加ff時間顯示
<script>setInterval("timenow.innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());",1000);
原创 Common下RegHelper.cs
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Text.RegularExpressions;