Time of Update: 2017-01-13
代碼如下複製代碼 <!--#include file="conn.asp"--><% Set xlApplication = Server.CreateObject("Excel.Application") '調用excel對象 xlApplication.Visible = False '無需開啟excel xlApplication.SheetsInNewWorkbook=1 '指定excel中表的數量
Time of Update: 2017-01-13
set conn=server.createobject("adodb.connection")connstr="provider=microsoft.jet.oledb.4.0;data source="&server.mappath("/www.111cn.net/data.mdb")conn.open connstr%><%response.buffer = trueconst
Time of Update: 2017-01-13
'visual foxpro 串連方法:set adocon=server.createobject("adodb.connection") adocon.open"driver={microsoft visual foxpro driver};sourcetype=dbc;sourcedb=*.dbc;exclusive=no;"'ms text 串連方法:set adocon=server.createobject("adodb.
Time of Update: 2017-01-13
sqlPS= "select * From Employee Left JOIN Department ON Employee.DepartmentID=Department.DepartmentID Order By
Time of Update: 2017-01-13
Public Function DbOpen() If IsObject(Conn) Then Exit Function Set Conn = Server.CreateObject(Cfg.nConnectionObject) If Conn.State = 1 Then Exit Function On Error Resume Next Conn.Open
Time of Update: 2017-01-13
隨便寫寫了.很簡單的.與accessda_path="**.mdb"set rs=server.CreateObject("adodb.recordset")set conn=server.CreateObject("adodb.connection")conn.connectionstring="provider=microsoft.jet.oledb.4.0; data
Time of Update: 2017-01-13
作者:Loster(OICQ:181306)
Time of Update: 2017-01-13
function strLength(str) ON ERROR RESUME NEXT dim WINNT_CHINESE WINNT_CHINESE =
Time of Update: 2017-01-13
Public Function DateToStr(DateTime,ShowType) Dim DateMonth,DateDay,DateHour,DateMinute,DateWeek,DateSecond Dim FullWeekday,shortWeekday,Fullmonth,Shortmonth,TimeZone1,TimeZone2 TimeZone1="+0800"
Time of Update: 2017-01-13
'函數名:ResponseCookies '作 用:寫入COOKIES '參 數:Key ----cookie名 ' value ----cookie值 ' expires ---- cookie到期時間 '**************
Time of Update: 2017-01-13
<%function table1(total,table_x,table_y,thickness,table_width,all_width,all_height,table_type)'參數含義(傳遞的數組,橫座標,縱座標,柱子的厚度,柱子的寬度,圖表的寬度,圖表的高度,圖表的類型)'純ASP代碼組建圖表函數1——柱狀圖'作者:龔鳴(Passwordgm) QQ:25968152 MSN:passwordgm@sina.com Email:passwordgm@
Time of Update: 2017-01-13
最近項目中有一個這樣的需求:匯出word 文檔,要求這個文檔的格式不是固定的,使用者可以隨便的調整,匯出內容中的資料表格列是動態,例如要求匯出姓名和性別,你就要匯出這兩列的資料,而且這個文檔不是匯出來之後再調整而是匯出來後已經是調整過了的。看到這裡,您也許馬上想到用模板匯出!而且.NET中內建有這個組件:Microsoft.Office.Interop.Word,暫且可以滿足需求吧。但這個組件也是有局限性的,例如用戶端必須裝
Time of Update: 2017-01-13
這是一款簡單的asp教程.net教程中文簡體轉換成繁體代碼哦,這款中文簡單轉換繁體的簡單代碼,挨過來繁體轉換成簡體也一樣。//Form1.Designer.cs namespace TestEnCode { partial class Form1 { /// <summary> /// 必需的設計器變數。 /// </summary> private System.ComponentModel.IContainer components = null; ///
Time of Update: 2017-01-13
這是一款超漂亮的ASP.NET 還原資料庫教程與 備份代碼哦,好了下面我們以執行個體來講一下關於.net教程還原與備份資料庫代碼吧。html代碼<table> <tr> <td style="width: 100px"><span style="font-size: 9pt">操 作 數 據 庫</span></td> <td><asp教程:DropDownList
Time of Update: 2017-01-13
主要功能: * 產生驗證碼 * 效驗驗證碼 基本原理: 根據一定的規則產生隨機的5為字元(由0—9的數字和A—Z的字母組成),並寫入Session。驗證的時候再從Session中取出進行比較。 前提知識: 關於ashx檔案 本質:缺少html檔案的asp教程x檔案。 使用情境: 適合產生動態映像或文本。 ashx輸出作為頁面元素img的背景(屬性src的值,eg:<img
Time of Update: 2017-01-13
asp.net中如何管理cache
Time of Update: 2017-01-13
asp.net亂碼解決方案在Web.comfig中配置 是一樣的: <globalization requestEncoding="gb2312" responseEncoding="gb2312"/> 頁面Header部分也都有 <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> 真是奇怪,
Time of Update: 2017-01-13
ASP.NET 2.0伺服器控制項概念:什麼是Web伺服器控制項 在asp.net
Time of Update: 2017-01-13
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestSQLInjection.aspx.cs" Inherits="SQLInjection_TestSQLInjection" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
Time of Update: 2017-01-13
<%@ WebHandler Language="c#" Class="ImgCropper_WebHandler" Debug="true" %>using System;using System.Web;using System.Drawing;using System.IO;public class ImgCropper_WebHandler : IHttpHandler{