原创 ExecuteTransaction

 public static bool ExecuteTransaction(ArrayList cmdList)
         {
                Database db = DatabaseFactory.Cre

原创 ImportExcelToDataTable

private DataTable importExcelToDT(string FilePath)    {        string strConn;        strConn = "Provider=Microsoft.Jet

原创 ReadCsvDataToDataTable

    private DataTable ImportCsvToDT(string FilePath)    {        DataTable dt = new DataTable();        StreamReader _R

原创 實現多國語言處理

using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.U

原创 ReadXML

TableConfig.xml:   <?xml version="1.0" encoding="utf-8" ?><DataFactory Desc="TableConfig" CreateUser="" CreateDate=""> 

原创 Asp.net 中文件以Binary 形式數據庫的保存和讀取

數據表部分         前臺- File_upload.aspx   <%@ Page Language="C#" AutoEventWireup="true" CodeFile="File_Upload.aspx.cs" Inhe

原创 window.showModalDialog

<html xmlns="http://www.w3.org/1999/xhtml" ><head runat="server">    <title>父模塊</title>    <script type="text/javascrip

原创 一個程序員的C#命名規則(挺不錯的)

1.用Pascal規則來命名方法和類型。public class DataGrid{public void DataBind(){ 2.用Camel規則來命名局部變量和方法的參數. public class Product{private

原创 Barcode條形碼及對圖片進行270翻轉

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.U

原创 SQL Server CONVERT() 函數

定義和用法 CONVERT() 函數是把日期轉換爲新數據類型的通用函數。 CONVERT() 函數可以用不同的格式顯示日期/時間數據。 語法 CONVERT(data_type(length),data_to_be_converted,

原创 GridView 自動編號

<asp:TemplateField HeaderText="No">                <ItemTemplate>                    <label id="Index" class="index">  

原创 在A窗口中打開B窗口,在B窗口中操作完以後關閉B窗口,同時自動刷新A窗口

function closeWin() {        hasClosed = true;         var frame=window.opener.parent.document.frames.item('mainFrame')

原创 rsweb:ReportViewer

           if (dt!=null && dt.Rows.Count > 0)            {                rvList.Visible = true;                 // 配置報

原创 ASP.NET裏的變量命名規則

變量命名規則:Array----arrBoolean----blnByte-----bytChar-----chrDatetime-----dtmDecimal-----decDouble-----dblInteger-----intLo

原创 導入Excel至數據庫中 "外部表不是預期格式"錯誤信息

 導入Excel到數據庫時出現“外部表不是預期格式”的錯誤信息,針對這個問題開始很糾結,如果導入的Excel是新建的就不會出現該問題,如果是在導出數據的基礎上進行導入,將會出現這樣的錯誤提示,也許很多朋友會問這是爲什麼呢?   因爲你的E